Open kai-hier opened 9 months ago
Hey! After working with your example a bit I was able to accomplish this.
<!--
%ASA-6-113005: AAA user authentication Rejected : reason = AAA failure : server = 10.1.1.1 : user = htothek : user IP = 8.8.8.8
-->
<decoder name="cisco-asa-aaa">
<parent>cisco-asa</parent>
<prematch offset="after_parent">6-113005</prematch>
<regex offset="after_parent">(6-113005): (AAA user authentication Rejected) : reason = (AAA failure) : server = (\S+) : user = (\w+) : user IP = (\S+)</regex>
<order>id, description, reason, server, user, userpublic</order>
</decoder>
Apr 4 18:57:27 10.1.1.2 %ASA-6-113005: AAA user authentication Rejected : reason = AAA failure : server = 10.1.1.1 : user = htothek : user IP = 8.8.8.8
**Phase 1: Completed pre-decoding.
full event: 'Apr 4 18:57:27 10.1.1.2 %ASA-6-113005: AAA user authentication Rejected : reason = AAA failure : server = 10.1.1.1 : user = htothek : user IP = 8.8.8.8'
timestamp: 'Apr 4 18:57:27'
hostname: '10.1.1.2'
**Phase 2: Completed decoding.
name: 'cisco-asa'
parent: 'cisco-asa'
description: 'AAA user authentication Rejected'
dstuser: 'htothek'
id: '6-113005'
reason: 'AAA failure'
server: '10.1.1.1'
userpublic: '8.8.8.8'
**Phase 3: Completed filtering (rules).
id: '64018'
level: '5'
description: 'ASA: AAA (VPN) authentication failed.'
groups: '['syslog', 'cisco', 'cisco-asa', 'authentication_failed']'
firedtimes: '2'
gdpr: '['IV_35.7.d', 'IV_32.2']'
gpg13: '['7.1']'
mail: 'False'
pci_dss: '['10.2.4', '10.2.5']'
tsc: '['CC6.1', 'CC6.8', 'CC7.2', 'CC7.3']'
**Alert to be generated.
As of today all cisco "AAA user authentication Rejected" events are handled by the generic fallback cisco-asa decoder:
I would like to have another decoder added which can extract the server- and user-ip for further use in the dashboards. I made one like the following and added it to custom decoders, but it is ignored.