Skip to content

Commit b01de9c

Browse files
authored
[Cisco FTD] Fix the handling of spaces in 113005 messages (#8798)
This PR fixes the parsing of a 113005 Cisco FTD message
1 parent 30ecfe4 commit b01de9c

File tree

5 files changed

+68
-2
lines changed

5 files changed

+68
-2
lines changed

packages/cisco_ftd/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "3.0.2"
3+
changes:
4+
- description: Fix the handling of spaces in 113005 messages.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/8798
27
- version: "3.0.1"
38
changes:
49
- description: Fix exclude_files pattern.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
<166>Sep 29 2022 15:00:15 hosty : %FTD-6-602303: IPSEC: An outbound LAN-to-LAN SA (SPI= 0xF0079F5A) between 192.168.0.139 and 192.168.0.38 (user= 192.168.0.38) has been created.
22
<166>Sep 29 2022 15:00:15 hosty : %FTD-6-602304: IPSEC: An inbound LAN-to-LAN SA (SPI= 0xEAEE970F) between 192.168.0.38 and 192.168.0.139 (user= 192.168.0.38) has been deleted.
3+
<166>ACA1a-FW-FTDV01 %FTD-6-113005: AAA user authentication Rejected : reason = AAA failure : server = 192.168.0.38 : user = scan : user IP = 192.168.0.139

packages/cisco_ftd/data_stream/log/_dev/test/pipeline/test-ftd-fix.log-expected.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,66 @@
146146
"user": {
147147
"name": "192.168.0.38"
148148
}
149+
},
150+
{
151+
"destination": {
152+
"address": "192.168.0.38",
153+
"ip": "192.168.0.38"
154+
},
155+
"ecs": {
156+
"version": "8.11.0"
157+
},
158+
"event": {
159+
"action": "logon-failed",
160+
"code": "113005",
161+
"original": "<166>ACA1a-FW-FTDV01 %FTD-6-113005: AAA user authentication Rejected : reason = AAA failure : server = 192.168.0.38 : user = scan : user IP = 192.168.0.139",
162+
"outcome": "failure",
163+
"severity": 6,
164+
"timezone": "UTC"
165+
},
166+
"host": {
167+
"hostname": "ACA1a-FW-FTDV01"
168+
},
169+
"log": {
170+
"level": "informational",
171+
"syslog": {
172+
"facility": {
173+
"code": 20
174+
},
175+
"priority": 166,
176+
"severity": {
177+
"code": 6
178+
}
179+
}
180+
},
181+
"observer": {
182+
"hostname": "ACA1a-FW-FTDV01",
183+
"product": "ftd",
184+
"type": "idps",
185+
"vendor": "Cisco"
186+
},
187+
"related": {
188+
"hosts": [
189+
"ACA1a-FW-FTDV01"
190+
],
191+
"ip": [
192+
"192.168.0.139",
193+
"192.168.0.38"
194+
],
195+
"user": [
196+
"scan"
197+
]
198+
},
199+
"source": {
200+
"address": "192.168.0.139",
201+
"ip": "192.168.0.139",
202+
"user": {
203+
"name": "scan"
204+
}
205+
},
206+
"tags": [
207+
"preserve_original_event"
208+
]
149209
}
150210
]
151211
}

packages/cisco_ftd/data_stream/log/elasticsearch/ingest_pipeline/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ processors:
357357
description: "113005"
358358
field: "message"
359359
patterns:
360-
- "AAA user authentication Rejected: reason = %{REASON}: server = %{IP:destination.address} : user = ?%{CISCO_USER:source.user.name}: user IP = %{IP:source.address}"
360+
- "AAA user authentication Rejected(%{SPACE})?: reason = %{REASON}(%{SPACE})?: server = %{IP:destination.address}(%{SPACE})?: user = ?%{CISCO_USER:source.user.name}(%{SPACE})?: user IP = %{IP:source.address}"
361361
pattern_definitions:
362362
REASON: (AAA failure|Account has been disabled)
363363
CISCO_USER: ((LOCAL\\)?(%{HOSTNAME}\\)?%{USERNAME}(@%{HOSTNAME})?(, *%{NUMBER})?)

packages/cisco_ftd/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: "3.0.0"
22
name: cisco_ftd
33
title: Cisco FTD
4-
version: "3.0.1"
4+
version: "3.0.2"
55
description: Collect logs from Cisco FTD with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)