diff --git a/tools/deployment/common/fluentd-daemonset.sh b/tools/deployment/common/fluentd-daemonset.sh index 432120d41..985a2a5f4 100755 --- a/tools/deployment/common/fluentd-daemonset.sh +++ b/tools/deployment/common/fluentd-daemonset.sh @@ -90,23 +90,16 @@ conf: - @type tail - tag kernel - path /var/log/kern.log - read_from_head true - - @type none - - - - - @type tail + @type systemd tag auth - path /var/log/auth.log + path /var/log/journal + matches [{ "SYSLOG_FACILITY":"10" }] read_from_head true - - @type none - + + + fields_strip_underscores true + fields_lowercase true + @@ -135,6 +128,19 @@ conf: + + @type systemd + tag kernel + path /var/log/journal + matches [{ "_TRANSPORT": "kernel" }] + read_from_head true + + + fields_strip_underscores true + fields_lowercase true + + + @type kubernetes_metadata @@ -155,22 +161,6 @@ conf: - - @type record_transformer - - hostname "#{ENV['NODE_NAME']}" - fluentd_pod "#{ENV['POD_NAME']}" - - - - - @type record_transformer - - hostname "#{ENV['NODE_NAME']}" - fluentd_pod "#{ENV['POD_NAME']}" - - - @type null