diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-07-28 06:58:17 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-07-28 06:58:17 +0200 |
commit | d0104a31198e542b81e540a3abe1ad34d2272873 (patch) | |
tree | dc67b6ce92a093c6939bcc3d78d5d37f2e642ec3 /logging/fluentd/systemd.conf | |
parent | f3e7c542cd87a91ee07c703e5bea23887d6c5569 (diff) | |
download | k8s-sandbox-d0104a31198e542b81e540a3abe1ad34d2272873.tar.gz k8s-sandbox-d0104a31198e542b81e540a3abe1ad34d2272873.tar.bz2 k8s-sandbox-d0104a31198e542b81e540a3abe1ad34d2272873.tar.xz k8s-sandbox-d0104a31198e542b81e540a3abe1ad34d2272873.zip |
wip
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> |