Created
April 19, 2012 18:19
-
-
Save matsumana/2422773 to your computer and use it in GitHub Desktop.
LOGサーバのFluentd設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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