itamae/cookbooks/fluentd/files/etc/td-agent/conf.d/forwarder.conf

39 lines
737 B
Plaintext

<label @forward>
<match **>
@type copy
<store>
@type forward
send_timeout 60s
recover_wait 10s
transport tcp
heartbeat_interval 1s
phi_threshold 16
hard_timeout 60s
buffer_type file
buffer_path /var/log/td-agent/buffer/forward*.buffer
<server>
name primary.td-agent.service.consul
host primary.td-agent.service.consul
port 24224
weight 60
</server>
<server>
name backup.td-agent.service.consul
host backup.td-agent.service.consul
port 24224
weight 60
standby
</server>
</store>
<store>
@type file
path /tmp/forward.log
</store>
</match>
</label>