Skip to content

Instantly share code, notes, and snippets.

@seikoudoku2000
Last active December 12, 2015 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seikoudoku2000/4730138 to your computer and use it in GitHub Desktop.
Save seikoudoku2000/4730138 to your computer and use it in GitHub Desktop.
<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