Skip to content

Commit

Permalink
Add json parser to kube audit logs colelctor pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Henri <joao.rocha@suse.com>
  • Loading branch information
jaehnri committed Aug 28, 2023
1 parent 391bd7a commit 99ef907
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/resources/collector/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ filelog/rke2:
warn: W
error: E
fatal: F
- type: move
from: body
to: attributes.message
- type: json_parser
if: '$matches "^{.*}$"'
- type: add
field: attributes.log_type
value: controlplane
Expand Down

0 comments on commit 99ef907

Please sign in to comment.