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

21 lines
346 B
Plaintext
Raw Normal View History

2019-03-03 08:50:49 +00:00
<source>
@type tail
path /var/log/apt/history.log
pos_file /var/log/td-agent/aptitude.pos
format none
tag aptitude
</source>
<filter aptitude>
@type record_transformer
<record>
hostname ${hostname}
message ${hostname}: ${record["message"]}
</record>
</filter>
<match aptitude>
@type relabel
@label @forward
</match>