Skip to content

Instantly share code, notes, and snippets.

@y-ken
Last active August 29, 2015 14:02
Show Gist options
  • Save y-ken/62fe5b0af727cace9d5c to your computer and use it in GitHub Desktop.
Save y-ken/62fe5b0af727cace9d5c to your computer and use it in GitHub Desktop.
How do you plan for using Filter for Fluentd v1?
<match apache.access>
type record_reformer
enable_ruby false
tag reform.apache.access
<record>
hostname ${hostname}
</record>
</match>
<match reform.apache.access>
type geoip
tag geoip.apache.access
<record>
location [#{lontitude}, #{latitude}]
</record>
</match>
<match geoip.apache.access>
type anonymizer
ipaddr_mask_keys host
tag td.apache.access
</match>
<match td.apache.access>
type tdlog
#...snip...
</match>
<match apache.access>
type record_reformer
enable_ruby false
tag reform.apache.access
<record>
hostname ${hostname}
</record>
<match **>
type geoip
tag geoip.apache.access
<record>
location [#{lontitude}, #{latitude}]
</record>
<match **>
type anonymizer
ipaddr_mask_keys host
tag td.apache.access
<match td.*.*>
type tdlog
#...snip...
</match>
</match>
</match>
</match>
@y-ken
Copy link
Author

y-ken commented Jun 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment