Skip to content

Instantly share code, notes, and snippets.

@oranie
Created May 10, 2012 04:01
Show Gist options
  • Save oranie/2650965 to your computer and use it in GitHub Desktop.
Save oranie/2650965 to your computer and use it in GitHub Desktop.
correct server conf
<source>
type forward
port 24224
</source>
<match apache.access.**>
type copy
<store>
compress gzip
type file
path /var/log/td-agent/access_log
</store>
<store>
type forward
#standby yes
<server>
name count_server
host 192.168.1.100
port 24224
weight 60
</server>
retry_limit 50
flush_interval 1s
</store>
<store>
type flowcounter
count_keys *
aggregate all
tag fluent.traffic.apache.agg1
</store>
<store>
type flowcounter
count_keys *
aggregate tag
tag fluent.traffic.apache.agg1
</store>
</match>
<match tomcat_log.**>
type copy
<store>
compress gzip
type file
path /var/log/td-agent/tomcat_log
</store>
<store>
type forward
#standby yes
<server>
name count_server
host 192.168.1.100
port 24224
weight 60
</server>
retry_limit 50
flush_interval 1s
</store>
<store>
type flowcounter
count_keys *
aggregate all
tag fluent.traffic.tomcat.agg1
</store>
<store>
type flowcounter
count_keys *
aggregate tag
tag fluent.traffic.tomcat.agg1
</store>
</match>
<match apache_result.**>
type copy
<store>
type file
time_slice_format %Y_%m_%d
compress gzip
path /var/log/td-agent/apache_result
</store>
<store>
type forward
#standby yes
<server>
name count_server
host 192.168.1.100
port 24224
weight 60
</server>
retry_limit 50
flush_interval 1s
</store>
</match>
<match tomcat_result.**>
type copy
<store>
type file
time_slice_format %Y_%m_%d
compress gzip
path /var/log/td-agent/tomcat_result
</store>
<store>
type forward
#standby yes
<server>
name count_server
host 192.168.1.100
port 24224
weight 60
</server>
retry_limit 50
flush_interval 1s
</store>
</match>
<match fluent.**>
type copy
<store>
type file
time_slice_format %Y_%m_%d
compress gzip
path /var/log/td-agent/fluent-app
</store>
<store>
type forward
#standby yes
<server>
name count_server
host 192.168.1.100
port 24224
weight 60
</server>
retry_limit 50
flush_interval 1s
</store>
</match>
<match *.**>
type copy
<store>
type file
time_slice_format %Y_%m_%d
compress gzip
path /var/log/td-agent/other_log
</store>
<store>
type forward
#standby yes
<server>
name count_server
host 192.168.1.100
port 24224
weight 60
</server>
retry_limit 50
flush_interval 1s
</store>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment