Skip to content

Instantly share code, notes, and snippets.

@masayuki5160
Created March 18, 2014 09:14
Show Gist options
  • Save masayuki5160/9616397 to your computer and use it in GitHub Desktop.
Save masayuki5160/9616397 to your computer and use it in GitHub Desktop.
fuentdの設定作成なう
<source>
type tail
tag apache.access
format apache
path /var/log/httpd/access_log
pos_file /var/log/httpd/access_log
</source>
<match apache.access>
type s3
aws_key_id key
aws_sec_key sec_key
s3_bucket masayuki.tanaka.s3test
s3_endpoint hoge.amazonaws.com
s3_object_key_format %{path}%{time_slice}_%{index}_%{hostname}.%{file_extension}
path log/
buffer_path /var/log/fluentd/s3
time_slice_format %Y-%m-%d/%H
time_slice_wait 10m
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment