diff options
Diffstat (limited to 'logging/fluentd/systemd.conf')
-rw-r--r-- | logging/fluentd/systemd.conf | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/logging/fluentd/systemd.conf b/logging/fluentd/systemd.conf new file mode 100644 index 0000000..0203734 --- /dev/null +++ b/logging/fluentd/systemd.conf @@ -0,0 +1,53 @@ +# AUTOMATICALLY GENERATED +# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/conf/systemd.conf.erb + +# Logs from systemd-journal for interesting services. +<source> + @type systemd + @id in_systemd_kubelet + matches [{ "_SYSTEMD_UNIT": "kubelet.service" }] + <storage> + @type local + persistent true + path /var/log/fluentd-journald-kubelet-cursor.json + </storage> + <entry> + fields_strip_underscores true + </entry> + read_from_head true + tag kubelet +</source> + +# Logs from docker-systemd +<source> + @type systemd + @id in_systemd_docker + matches [{ "_SYSTEMD_UNIT": "docker.service" }] + <storage> + @type local + persistent true + path /var/log/fluentd-journald-docker-cursor.json + </storage> + <entry> + fields_strip_underscores true + </entry> + read_from_head true + tag docker.systemd +</source> + +# Logs from systemd-journal for interesting services. +<source> + @type systemd + @id in_systemd_bootkube + matches [{ "_SYSTEMD_UNIT": "bootkube.service" }] + <storage> + @type local + persistent true + path /var/log/fluentd-journald-bootkube-cursor.json + </storage> + <entry> + fields_strip_underscores true + </entry> + read_from_head true + tag bootkube +</source> |