Skip to content

Commit

Permalink
Fix some error about fluentd config file
Browse files Browse the repository at this point in the history
1.Fix error about source path is not equal to autdit-log-path
2.Fix error about filter type set

Signed-off-by: pengdake <[email protected]>
  • Loading branch information
pengdake committed Jul 18, 2018
1 parent ae9c6fd commit bede043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/en/docs/tasks/debug-application-cluster/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ In this example, we will use fluentd to split audit events by different namespac
<source>
@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
Expand All @@ -225,10 +225,10 @@ In this example, we will use fluentd to split audit events by different namespac
<filter audit>
#https://github.com/fluent/fluent-plugin-rewrite-tag-filter/issues/13
type record_transformer
@type record_transformer
enable_ruby
<record>
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"])}
</record>
</filter>
Expand Down

0 comments on commit bede043

Please sign in to comment.