Skip to content

Instantly share code, notes, and snippets.

@y-ken
Created October 15, 2017 07:14
Show Gist options
  • Save y-ken/dd49cca504c2c971e4b8ba1b5630dd86 to your computer and use it in GitHub Desktop.
Save y-ken/dd49cca504c2c971e4b8ba1b5630dd86 to your computer and use it in GitHub Desktop.
FluentdからS3に1日単位のファイルと1時間単位のファイルで書き出したい時
#
<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