Last active
December 12, 2015 06:38
-
-
Save seikoudoku2000/4730138 to your computer and use it in GitHub Desktop.
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 | |
tag apache.access | |
pos_file /tmp/fluent.log.pos | |
</source> | |
<match apache.access> | |
type exec_filter | |
command ruby /path_to_file/parse.rb | |
in_format json | |
out_format msgpack | |
tag apache.parsed | |
flush_interval 10s | |
</match> | |
<match apache.parsed> | |
type mongo | |
database fluent | |
collection test | |
flush_interval 10s | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment