Hi Christian,
first of all:
- N: Number
- L: Letter
- Str: String
- after every ',' there is no space in the real log this is just for READABLITY here.
Now the log format is:
N-N-NLN:N:N+N:N, N, Str-Str, Str, Str, N.NLN - N, N.N.N.N, N.N, Str, , , , N.N.N, Str
No line-break all in one line each time.
Trying to attach my new decoder to system_integrity_changed as a parent throws an error since system_integrity_changed already is a child decoder.
I did write my decoder in local_decoder. But as far as i understand Wazuh stops checking for other decoders once one matched and system_integrity_changed seems to match first every time.
My decoder has a parent with a prematch:
^\d\d\d\d-\d\d-\d\d\w\d\d:\d\d:\d\d
and then an actual decoder with the <regex> like:
(\d+-\d+-\d+\w\d+:\d+:\d+\p\d+:\d+),(\d+),(\w+-?\w*),(\w+),(\w*),(\w*\.\w*\s-\s\w*),(\d+\.?\d*\.?\d*\.?\d*),(\d+\.?\d*\.?\d*),(\w*),,,,(\d+\.?\d*\.?\d*\.?\d*),(.*)
Thanks a lot
Sebastian