Hi Buziak,
I fixed your decoders, take into account that sibling decoders must all have the same name (you can use the parent’s name as well).
Here are the decoders:
<decoder name="ilo">
<prematch type="pcre2">iLO \d+: [^:]+:</prematch>
</decoder>
<decoder name="ilo_child">
<parent>ilo</parent>
<regex offset="after_parent">(\S+) - (\d+.\d+.\d+.\d+)</regex>
<order>user, srcip</order>
</decoder>
<decoder name="ilo_child">
<parent>ilo</parent>
<regex offset="after_parent">(\d+.\d+.\d+.\d+)</regex>
<order>srcip</order>
</decoder>
And here is the output after evaluating the decoders with our wazuh-logtest tool:
# /var/ossec/bin/wazuh-logtest
Starting wazuh-logtest v4.3.10
Type one log per line
11/18/2022 22:19:25 iLO 5: SSH login failure from: 192.168.9.137(DNS name not found).
**Phase 1: Completed pre-decoding.
full event: '11/18/2022 22:19:25 iLO 5: SSH login failure from: 192.168.9.137(DNS name not found).'
**Phase 2: Completed decoding.
name: 'ilo'
srcip: '192.168.9.137'
**Phase 3: Completed filtering (rules).
id: '2501'
level: '5'
description: 'syslog: User authentication failure.'
groups: '['syslog', 'access_control', 'authentication_failed']'
firedtimes: '1'
gdpr: '['IV_35.7.d', 'IV_32.2']'
gpg13: '['7.8']'
hipaa: '['164.312.b']'
mail: 'False'
nist_800_53: '['AU.14', 'AC.7']'
pci_dss: '['10.2.4', '10.2.5']'
tsc: '['CC6.1', 'CC6.8', 'CC7.2', 'CC7.3']'
**Alert to be generated.
07/29/2022 14:55:25 iLO 5: SSH login: administrator - 192.168.9.100(DNS name not found).
**Phase 1: Completed pre-decoding.
full event: '07/29/2022 14:55:25 iLO 5: SSH login: administrator - 192.168.9.100(DNS name not found).'
**Phase 2: Completed decoding.
name: 'ilo'
dstuser: 'administrator'
srcip: '192.168.9.100'
Best regards,
Mariano Koremblum
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/3a1ca59d-c08a-4473-b45a-93e3ffe80e46n%40googlegroups.com.