Skip to content

Instantly share code, notes, and snippets.

@matsumana
Created April 19, 2012 18:17
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/2422761 to your computer and use it in GitHub Desktop.
Save matsumana/2422761 to your computer and use it in GitHub Desktop.
APサーバの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 forward and write to file
<match myapp.**>
type copy
<store>
type tcp
host sl6101
buffer_type file
buffer_path /var/log/fluent/myapp-forward
retry_limit 50
flush_interval 10s
</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