made a few decoders + rules and all of them are working but 1 isn't
However, when I use the logtest, it show it should work, please help me see what the problem is, I can find the logs in archives/alerts, but they are not visible on the wazuh dashboard (neither the opensearch plugin dashboard or the security events dashboard)
This is the log from archives.log:
May 17 10:47:39 FW-111-DD-11 1/111IT/FW-111-DD-11/srv_FW-111-111_FW-111-DD-11VPNNN: Notice FW-111-DD-11 Session PGRP-AUTH-DDDDDD-5aff-4569-87ba-jfzfzoo222-MNMTGK: Accounting LOGIN - user=
te...@test.com client=Vanilla IP=111.111.111.111 start="2024/05/17 10:47:39" VirtualIP="111.111.111.111"
This is my decoder:
<decoder name="BarracudaVPN">
<program_name type="pcre2">1/111IT/FW-111-DD-11/srv_FW-111-111_FW-111-DD-11VPNNN:</program_name>
</decoder>
<decoder name="Barracuda-child">
<parent>BarracudaVPN</parent>
<regex offset="after_parent"> (\w+)\s+(\S+)\s\w+ </regex>
<order>severityy,devicee</order>
</decoder>
<decoder name="Barracuda-child">
<parent>BarracudaVPN</parent>
<regex offset="after_parent">(\S+:\s\w+\s\w+)\s-\s\w+=(\S+)\s\w+=(\S+)\s</regex>
<order>descriptionn, userr, clientt</order>
</decoder>
<decoder name="Barracuda-child">
<parent>BarracudaVPN</parent>
<regex offset="after_parent">(\d+.\d+.\d+.\d+)\s\w+="(\S+\s\S+)"\s\w+="(\d+.\d+.\d+.\d+)"</regex>
<order>ip-addresss, timestampp, virtual-ipp</order>
</decoder>
This is the rule:
<group name="Barracudavpnlogin">
<rule id="911111" level="11">
<decoded_as>BarracudaVPN</decoded_as>
<match>Accounting LOGIN</match>
<description>VPN login</description>
</rule>
</group>
This is the logtest oucome
**Phase 2: Completed decoding.
name: 'BarracudaVPN'
clientt: 'Vanilla'
descriptionn: 'PGRP-AUTH-DDDDDD-5aff-4569-87ba-jfzfzoo222-MNMTGK: Accounting LOGIN'
devicee: 'FW-111-DD-11'
ip-addresss: '111.111.111.111'
severityy: 'Notice'
timestampp: '2024/05/17 10:47:39'
userr: '
te...@test.com'
virtual-ipp: '111.111.111.111'
**Phase 3: Completed filtering (rules).
id: '911111'
level: '11'
description: 'VPN login'
groups: '['Barracudavpnlogin']'
firedtimes: '1'
mail: 'False'
**Alert to be generated.
I don't get the problem, because for other decoders everything works perfectly fine.
Best regards