From eb0d63e871b9aa24f8ac4e3a94d3f50b673eadf6 Mon Sep 17 00:00:00 2001 From: daemon <19921207pq@gmail.com> Date: Thu, 19 Jul 2018 05:30:53 +0800 Subject: [PATCH] Fix some error about fluentd config file (#9528) 1.Fix error about source path is not equal to autdit-log-path 2.Fix error about filter type set Signed-off-by: pengdake <19921207pq@gmail.com> --- content/en/docs/tasks/debug-application-cluster/audit.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/docs/tasks/debug-application-cluster/audit.md b/content/en/docs/tasks/debug-application-cluster/audit.md index f941c16d17..d71f7a3635 100644 --- a/content/en/docs/tasks/debug-application-cluster/audit.md +++ b/content/en/docs/tasks/debug-application-cluster/audit.md @@ -215,7 +215,7 @@ In this example, we will use fluentd to split audit events by different namespac @type tail # audit log path of kube-apiserver - path /var/log/audit + path /var/log/kube-audit pos_file /var/log/audit.pos format json time_key time @@ -225,10 +225,10 @@ In this example, we will use fluentd to split audit events by different namespac #https://github.com/fluent/fluent-plugin-rewrite-tag-filter/issues/13 - type record_transformer + @type record_transformer enable_ruby - namespace ${record["objectRef"].nil? ? "none":(record["objectRef"]["namespace"].nil? ? "none":record["objectRef"]["namespace"])} + namespace ${record["objectRef"].nil? ? "none":(record["objectRef"]["namespace"].nil? ? "none":record["objectRef"]["namespace"])}