Merge "Fluentd: Update kernel and auth inputs to use systemd"

This commit is contained in:
Zuul 2020-01-31 22:20:22 +00:00 committed by Gerrit Code Review
commit 3dd0eb0cdf

View File

@ -90,23 +90,16 @@ conf:
</source> </source>
<source> <source>
@type tail @type systemd
tag kernel
path /var/log/kern.log
read_from_head true
<parse>
@type none
</parse>
</source>
<source>
@type tail
tag auth tag auth
path /var/log/auth.log path /var/log/journal
matches [{ "SYSLOG_FACILITY":"10" }]
read_from_head true read_from_head true
<parse>
@type none <entry>
</parse> fields_strip_underscores true
fields_lowercase true
</entry>
</source> </source>
<source> <source>
@ -135,6 +128,19 @@ conf:
</entry> </entry>
</source> </source>
<source>
@type systemd
tag kernel
path /var/log/journal
matches [{ "_TRANSPORT": "kernel" }]
read_from_head true
<entry>
fields_strip_underscores true
fields_lowercase true
</entry>
</source>
<filter kubernetes.**> <filter kubernetes.**>
@type kubernetes_metadata @type kubernetes_metadata
</filter> </filter>
@ -155,22 +161,6 @@ conf:
</record> </record>
</filter> </filter>
<filter kernel>
@type record_transformer
<record>
hostname "#{ENV['NODE_NAME']}"
fluentd_pod "#{ENV['POD_NAME']}"
</record>
</filter>
<filter auth>
@type record_transformer
<record>
hostname "#{ENV['NODE_NAME']}"
fluentd_pod "#{ENV['POD_NAME']}"
</record>
</filter>
<match fluent.**> <match fluent.**>
@type null @type null
</match> </match>