Skip to content

Instantly share code, notes, and snippets.

@fukata
Created March 13, 2014 05:26
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 fukata/9522304 to your computer and use it in GitHub Desktop.
Save fukata/9522304 to your computer and use it in GitHub Desktop.
norikra + fluentd + mongodb
<source>
type forward
</source>
<match data.**>
type copy
<store>
type norikra
norikra 127.0.0.1:26571
target_map_tag true
remove_tag_prefix data
<default>
auto_field false
</default>
</store>
# <store>
# type stdout
# </store>
</match>
<source>
type norikra
norikra 127.0.0.1:26571
<fetch>
method sweep
tag query_name
tag_prefix norikra.event
interval 10s
</fetch>
</source>
<match norikra.event.**>
type copy
<store>
type mongo
database norikra
tag_mapped
capped
capped_size 100m
remove_tag_prefix norikra.event
</store>
<store>
type stdout
</store>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment