Instantly share code, notes, and snippets.

Embed
What would you like to do?
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