forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
out_s3: added sequential index feature
Specify $INDEX in s3_key_format to add an index that increments every time it uploads a file. Sequential indexing is compatible with all other s3_key_format features, so $UUID and $TAG can be specified at the same time as $INDEX. When $INDEX is specified but $UUID is not, a random string will not be appended to the end of the key name. If FluentBit crashes or fails to upload, the index will be preserved in the filesystem in a metadata file located in ${store_dir}/index_metadata and reused on startup. This configuration option uses native C functions so is incompatible with multi-threading. Tested through unit testing and various input plugins (exec, random, etc). Signed-off-by: Stephen Lee <[email protected]>
- Loading branch information
1 parent
b0c4efd
commit e93fe4d
Showing
2 changed files
with
219 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters