Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Created November 24, 2014 13:58
Show Gist options
  • Save tuki0918/0f1517ed2bfdb7886d3b to your computer and use it in GitHub Desktop.
Save tuki0918/0f1517ed2bfdb7886d3b to your computer and use it in GitHub Desktop.
Fluentd: apache.log
<source>
type tail
format apache
path /var/log/httpd/access_log
pos_file /var/log/td-agent/access_log.pos
tag apache.log
</source>
<match apache.log>
type elasticsearch
host localhost
port 9200
index_name apache
type_name apache_log
include_tag_key true
tag_key @log_name
logstash_format true
time_format %Y-%m-%d %H:%M:%S
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment