From 9aa481fa56e53ecc5168e75fb6af1d91274409de Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 12 Oct 2020 18:08:58 +0900 Subject: [PATCH] Deploy `rsyslog` config for `loki` logs. --- cookbooks/loki/files/etc/rsyslog.d/30-loki.conf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cookbooks/loki/files/etc/rsyslog.d/30-loki.conf diff --git a/cookbooks/loki/files/etc/rsyslog.d/30-loki.conf b/cookbooks/loki/files/etc/rsyslog.d/30-loki.conf new file mode 100644 index 0000000..980eef9 --- /dev/null +++ b/cookbooks/loki/files/etc/rsyslog.d/30-loki.conf @@ -0,0 +1,7 @@ +# Log kernel generated promtail log messages to file +:syslogtag,contains,"loki" /var/log/loki.log + +# Uncomment the following to stop logging anything that matches the last rule. +# Doing this will stop logging kernel generated UFW log messages to the file +# normally containing kern.* messages (eg, /var/log/kern.log) +& stop