Created
November 24, 2014 13:58
-
-
Save tuki0918/0f1517ed2bfdb7886d3b to your computer and use it in GitHub Desktop.
Fluentd: apache.log
This file contains hidden or 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 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