Created the grok parser for EXECVE using CHATGPT and applied it to the pipeline now EXECVE is working properly

This commit is contained in:
Mosiur Rahman
2026-08-19 05:40:01 +00:00
parent 12ef293314
commit ba0fd1d736
2 changed files with 21 additions and 1 deletions

View File

@@ -1 +1 @@
I have added second parsing pattern for SYSCALL because in the first pattern if the key is null then the full parser fails. So I have disabled break_on_match and added second parser for key=(null)
Created the grok parser for EXECVE using CHATGPT and applied it to the pipeline now EXECVE is working properly

View File

@@ -257,6 +257,26 @@ pipelineConfig:
FSUID=\"%{GREEDYDATA:FSUID}\"
EGID=\"%{GREEDYDATA:EGID}\" SGID=\"%{GREEDYDATA:SGID}\" FSGID=\"%{GREEDYDATA:FSGID}\"
target_key: syscall
- grok:
break_on_match: false
grok_when: '/audit/log_type == "EXECVE"'
target_key: execve
match:
/audit/msg:
- '^argc=%{INT:arg_count} %{GREEDYDATA:args_raw}$'
- key_value:
key_value_when: '/audit/log_type == "EXECVE"'
source: /execve/args_raw
destination: /execve/args
field_delimiter_regex: '\s+'
field_split_characters: ""
value_split_characters: "="
delete_value_regex: '^"|"$'
- date:
match:
- key: /audit/timestamp_seconds