Skip to content

Commit 003fbf6

Browse files
committed
tag audit logs
1 parent c4d42b6 commit 003fbf6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/otelcol/config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ receivers:
4141
field: attributes.timestamp
4242
- type: remove
4343
field: attributes.syslogseverity
44+
- type: add
45+
field: attributes.audit
46+
value: true
47+
if: 'body startsWith "[AUDIT] "'
4448
- type: regex_parser
4549
regex: ' JSON=(?P<json_payload>\{.*\})$'
4650
if: 'body matches " JSON=\\{.*\\}$"'

0 commit comments

Comments
 (0)