From c73cb05a7eb88e1057d28ed78cba04abe69cdc70 Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Thu, 5 Apr 2018 23:10:14 -0700 Subject: [PATCH] Capture kernel logs in example fluentd.conf I find it useful to have the kernel logs available for searching, for example that's the only place you can see processes killed when they hit memory limits. --- .../fluentd-es-configmap.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml b/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml index 84cf79f3334..5b861084da0 100644 --- a/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml +++ b/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml @@ -367,6 +367,22 @@ data: read_from_head true tag node-problem-detector + + + @id kernel + @type systemd + filters [{ "_TRANSPORT": "kernel" }] + + @type local + persistent true + + + fields_strip_underscores true + fields_lowercase true + + read_from_head true + tag kernel + forward.input.conf: |- # Takes the messages sent over TCP