Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@matsumana
Created April 19, 2012 18:19
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 matsumana/2422773 to your computer and use it in GitHub Desktop.
Save matsumana/2422773 to your computer and use it in GitHub Desktop.
LOGサーバのFluentd設定
## built-in TCP input
## $ echo <json> | fluent-cat <tag>
<source>
type tcp
</source>
## match tag=debug.** and dump to console
<match debug.**>
type stdout
</match>
## match tag=myapp.** and mongo and write to file
<match myapp.**>
type copy
<store>
type mongo
database fluent
collection myapp
</store>
<store>
type file
path /var/log/fluent/myapp
</store>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment