Created
October 15, 2017 07:14
-
-
Save y-ken/dd49cca504c2c971e4b8ba1b5630dd86 to your computer and use it in GitHub Desktop.
FluentdからS3に1日単位のファイルと1時間単位のファイルで書き出したい時
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
# | |
<match apache.**> | |
@type copy | |
<store> | |
@type s3 | |
...snip... | |
buffer_path /var/log/fluent/s3_hourly | |
time_slice_format %Y%m%d%h | |
</store> | |
<store> | |
@type s3 | |
...snip... | |
buffer_path /var/log/fluent/s3_daily | |
time_slice_format %Y%m%d | |
# buffer_queue_limitやbuffer_chunk_limitを大きくする必要がある | |
</store> | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment