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

21 lines
328 B
Plaintext

<source>
@type tail
path /var/log/monit.log
pos_file /var/log/td-agent/monit.pos
format none
tag monit
</source>
<filter monit>
@type record_transformer
<record>
hostname ${hostname}
message ${hostname}: ${record["message"]}
</record>
</filter>
<match monit>
@type relabel
@label @forward
</match>