Hi,
I am using the 0064-cisco-asa_decoders.xml for my cisco asa. Today I just realized that one specific sibling decoder is not working as expected, this is what is in the original cisco-asa decoder:
<decoder name="cisco-asa">
<prematch>%ASA-|\w\w\w \d\d \d\d\d\d \d\d:\d\d:\d\d: %ASA-</prematch>
</decoder>
<!--
%ASA-6-106015: Deny TCP (no connection) from
192.168.0.1/11 to
192.168.0.2/22 flags tcp_flags on interface interface_name
-->
<decoder name="cisco-asa-fw6">
<parent>cisco-asa</parent>
<prematch offset="after_parent">6-106015</prematch>
<regex offset="after_parent">(\w+): (\w+) (\w+) \.+ from (\S+)/(\S+) to (\S+)/(\S+) flags (\S+) on interface (\S+)</regex>
<order>id, action, protocol, srcip, srcport, dstip, dstport, flags, interface</order>
</decoder>
my log file from cisco asa is:
Nov 01 2023 15:50:23: %ASA-6-106015: Deny TCP (no connection) from 10.50.20.XX/39204 to 8.XX.XX.1/443 flags RST on interface inside
the decoder result is:
**Messages:
WARNING: (7003): '89b81e6f' token expires
INFO: (7202): Session initialized with token 'c2481d76'
**Phase 1: Completed pre-decoding.
full event: 'Nov 01 2023 15:50:23: %ASA-6-106015: Deny TCP (no connection) from 10.50.20.XX/39204 to 8.XX.XX.1/443 flags RST on interface inside'
**Phase 2: Completed decoding.
name: 'cisco-asa'
parent: 'cisco-asa'
**Phase 3: Completed filtering (rules).
id: '100002'
level: '3'
description: 'Raw JSON event Cisco - '
groups: '["local"]'
firedtimes: '1'
mail: 'false'
**Alert to be generated.
so the decoder is not decoding properly for %ASA-6-106015. But it seems "most" of other sibling decoders are working fine.
What am I missing here?