Created
September 28, 2013 08:09
-
-
Save mryoshio/6739751 to your computer and use it in GitHub Desktop.
fluent sample conf for s3 plugin
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
<source> | |
type tail | |
format apache2 | |
path /var/log/apache2/access_log | |
pos_file /var/log/fluent/tmp/apache2.access_log.pos | |
tag s3.apache.access | |
</source> | |
# S3 plugin test | |
<match s3.*.*> | |
type s3 | |
aws_key_id <key id> | |
aws_sec_key <secret key> | |
s3_bucket <bucket name> | |
s3_endpoint s3-ap-northeast-1.amazonaws.com | |
s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension} | |
path fluent_logs/ | |
buffer_path /var/log/fluent/td-agent/s3 | |
buffer_chunk_limit 100k | |
time_slice_format %Y%m%d%H%M | |
time_slice_wait 3m | |
utc | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment