Hello Mark! hope you're doing well.
I have good news.
As I commented before I was noticing the same issue with other logs examples.
The solution to that is to add this option, so you can see the child decoder name.
https://documentation.wazuh.com/current/user-manual/ruleset/ruleset-xml-syntax/decoders.html#use-own-nameBut also, there was something about the regex that was not capturing anything after "Group". I thought there was something else beyond your configuration in that case.
And, in fact, that's because in the default decoder file I mentioned before.
https://github.com/wazuh/wazuh/blob/master/ruleset/decoders/0064-cisco-asa_decoders.xmlthe generic decoder was capturing your log. And there was nothing left to be captured by your decoder.
The solution
From this section of the documentation.
https://documentation.wazuh.com/current/user-manual/ruleset/custom.html#changing-an-existing-decoderWe can exclude the default decoders. Basically you must include in the ossec.conf file this line.
<decoder_exclude>ruleset/decoders/0064-cisco-asa_decoders.xml</decoder_exclude>
Inside <ruleset></ruleset>
Now, copy the /var/ossec/ruleset/decoders/0064-cisco-asa_decoders.xml file into the /var/ossec/etc/decoders directory.
And right before the generic decoder add yours. So the log will be captured first by your decoder.
The motivation to do this is because any modification to the files in /var/ossec/ruleset/decoders/ directoy will be lost after an update.Complete configuration.
<decoder name="cisco-asa-vpn">
<parent>cisco-asa</parent>
<prematch offset="after_parent">5-722033</prematch>
<regex offset="after_parent">(\w+): Group (\S+) User (\S+) IP (\S+) (\.+)</regex>
<order>id,group,username,src_ip,description</order>
<use_own_name>true</use_own_name>
</decoder>
<decoder name="cisco-asa-generic">
<parent>cisco-asa</parent>
<prematch>%ASA-\d-\d+</prematch>
<regex>%ASA-(\d-\d+):</regex>
<order>id</order>
</decoder>
Notice your configuration before
cisco-asa-generic and the addition of the option
<use_own_name>true</use_own_name>
The result
Mar 31 2021 17:39:05: %ASA-5-722033: Group <xxx_xxx> User <xxx-xxxxx> IP <x.x.x.x> First TCP SVC connection established for SVC session.
**Phase 1: Completed pre-decoding.
full event: 'Mar 31 2021 17:39:05: %ASA-5-722033: Group <xxx_xxx> User <xxx-xxxxx> IP <x.x.x.x> First TCP SVC connection established for SVC session.'
**Phase 2: Completed decoding.
name: 'cisco-asa-vpn'
parent: 'cisco-asa'
description: 'First TCP SVC connection established for SVC session.'
group: '<xxx_xxx>'
id: '5-722033'
src_ip: '<x.x.x.x>'
username: '<xxx-xxxxx>'
**Phase 3: Completed filtering (rules).
id: '100010'
level: '0'
description: 'User logged'
groups: '['local', 'syslog', 'sshd']'
firedtimes: '1'
mail: 'False'
Especial thanks to Julian Morales for helping with this. I hope this was useful for you, have a great day!