--- fluent.conf.sample.orig 2017-01-06 21:42:28 UTC +++ fluent.conf.sample @@ -0,0 +1,100 @@ + +## built-in TCP input +## $ echo | fluent-cat + + type forward + + +## built-in UNIX socket input +# +# type unix +# + +# HTTP input +# http://localhost:8888/?json= + + type http + port 8888 + + +## File input +## read apache logs with tag=apache.access +# +# type tail +# format apache +# path /var/log/httpd-access.log +# tag apache.access +# + +# Listen HTTP for monitoring +# http://localhost:24220/api/plugins +# http://localhost:24220/api/plugins?type=TYPE +# http://localhost:24220/api/plugins?tag=MYTAG + + type monitor_agent + port 24220 + + +# Listen DRb for debug + + type debug_agent + bind 127.0.0.1 + port 24230 + + + +## match tag=apache.access and write to file +# +# type file +# path /var/log/fluent/access +# + +## match tag=debug.** and dump to console + + type stdout + + +# match tag=system.** and forward to another fluent server + + type forward + + host 192.168.0.11 + + + + host 192.168.0.12 + + + + +## match tag=myapp.** and forward and write to file +# +# type copy +# +# type forward +# buffer_type file +# buffer_path /var/log/fluent/myapp-forward +# retry_limit 50 +# flush_interval 10s +# +# host 192.168.0.13 +# +# +# +# type file +# path /var/log/fluent/myapp +# +# + +## match fluent's internal events +# +# type null +# + +## match not matched logs and write to file +# +# type file +# path /var/log/fluent/else +# compress gz +# +