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

21 lines
328 B
Plaintext
Raw Normal View History

2019-03-03 08:50:49 +00:00
<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>