-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cisco ASA] Loosen time parsing and add group and session type capture (
- Loading branch information
Showing
9 changed files
with
368 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
184 changes: 95 additions & 89 deletions
184
...s/cisco_asa/data_stream/log/_dev/test/pipeline/test-additional-messages.log-expected.json
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/cisco_asa/data_stream/log/_dev/test/pipeline/test-asa-missing-groups.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Jun 08 2020 12:59:57: %ASA-4-113019: Group = TheBeatles, Username = Ringo, IP = 234.56.12.87, Session disconnected. Session Type: AnyConnect-Parent, Duration: 0h:01m:52s, Bytes xmt: 32452, Bytes rcv: 0, Reason: User Requested | ||
Oct 20 2019 15:42:53: %ASA-4-113019: Group = TheBeatles, Username = John, IP = 234.28.45.42, Session disconnected. Session Type: SSL, Duration: 2h:27m:34s, Bytes xmt: 45323434, Bytes rcv: 43252324, Reason: Idle Timeout | ||
Oct 20 2019 15:42:54: %ASA-4-722037: Group <GroupPolicy_TheBeatles> User <Paul> IP <83.212.241.149> SVC closing connection: DPD failure. | ||
Aug 6 2020 11:01:37: %ASA-4-722037: Group <GroupPolicy_TheBeatles> User <Brian> IP <234.63.56.32> SVC closing connection: Transport closing. | ||
Aug 6 2020 11:01:38: %ASA-4-722051: Group <GroupPolicy_TheBeatles> User <George> IP <234.24.156.94> IPv4 Address <234.56.47.98> IPv6 address <::> assigned to session |
250 changes: 250 additions & 0 deletions
250
...es/cisco_asa/data_stream/log/_dev/test/pipeline/test-asa-missing-groups.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,250 @@ | ||
{ | ||
"expected": [ | ||
{ | ||
"log": { | ||
"level": "warning" | ||
}, | ||
"destination": { | ||
"bytes": 0, | ||
"address": "234.56.12.87", | ||
"ip": "234.56.12.87" | ||
}, | ||
"source": { | ||
"user": { | ||
"name": "Ringo", | ||
"group": { | ||
"name": "TheBeatles" | ||
} | ||
}, | ||
"bytes": 32452 | ||
}, | ||
"tags": [ | ||
"preserve_original_event" | ||
], | ||
"observer": { | ||
"type": "firewall", | ||
"product": "asa", | ||
"vendor": "Cisco" | ||
}, | ||
"@timestamp": "2020-06-08T12:59:57.000Z", | ||
"ecs": { | ||
"version": "1.12.0" | ||
}, | ||
"related": { | ||
"user": [ | ||
"Ringo" | ||
], | ||
"ip": [ | ||
"234.56.12.87" | ||
] | ||
}, | ||
"event": { | ||
"severity": 4, | ||
"duration": 112000000000, | ||
"reason": "User Requested", | ||
"ingested": "2021-10-11T11:16:23.841932100Z", | ||
"original": "Jun 08 2020 12:59:57: %ASA-4-113019: Group = TheBeatles, Username = Ringo, IP = 234.56.12.87, Session disconnected. Session Type: AnyConnect-Parent, Duration: 0h:01m:52s, Bytes xmt: 32452, Bytes rcv: 0, Reason: User Requested", | ||
"code": "113019", | ||
"kind": "event", | ||
"start": "2020-06-08T12:58:05.000Z", | ||
"action": "firewall-rule", | ||
"end": "2020-06-08T12:59:57.000Z", | ||
"category": [ | ||
"network" | ||
], | ||
"type": [ | ||
"info" | ||
] | ||
}, | ||
"cisco": { | ||
"asa": { | ||
"session_type": "AnyConnect-Parent" | ||
} | ||
} | ||
}, | ||
{ | ||
"log": { | ||
"level": "warning" | ||
}, | ||
"destination": { | ||
"bytes": 43252324, | ||
"address": "234.28.45.42", | ||
"ip": "234.28.45.42" | ||
}, | ||
"source": { | ||
"user": { | ||
"name": "John", | ||
"group": { | ||
"name": "TheBeatles" | ||
} | ||
}, | ||
"bytes": 45323434 | ||
}, | ||
"tags": [ | ||
"preserve_original_event" | ||
], | ||
"observer": { | ||
"type": "firewall", | ||
"product": "asa", | ||
"vendor": "Cisco" | ||
}, | ||
"@timestamp": "2019-10-20T15:42:53.000Z", | ||
"ecs": { | ||
"version": "1.12.0" | ||
}, | ||
"related": { | ||
"user": [ | ||
"John" | ||
], | ||
"ip": [ | ||
"234.28.45.42" | ||
] | ||
}, | ||
"event": { | ||
"severity": 4, | ||
"duration": 8854000000000, | ||
"reason": "Idle Timeout", | ||
"ingested": "2021-10-11T11:16:23.841946100Z", | ||
"original": "Oct 20 2019 15:42:53: %ASA-4-113019: Group = TheBeatles, Username = John, IP = 234.28.45.42, Session disconnected. Session Type: SSL, Duration: 2h:27m:34s, Bytes xmt: 45323434, Bytes rcv: 43252324, Reason: Idle Timeout", | ||
"code": "113019", | ||
"kind": "event", | ||
"start": "2019-10-20T13:15:19.000Z", | ||
"action": "firewall-rule", | ||
"end": "2019-10-20T15:42:53.000Z", | ||
"category": [ | ||
"network" | ||
], | ||
"type": [ | ||
"info" | ||
] | ||
}, | ||
"cisco": { | ||
"asa": { | ||
"session_type": "SSL" | ||
} | ||
} | ||
}, | ||
{ | ||
"observer": { | ||
"type": "firewall", | ||
"product": "asa", | ||
"vendor": "Cisco" | ||
}, | ||
"@timestamp": "2019-10-20T15:42:54.000Z", | ||
"ecs": { | ||
"version": "1.12.0" | ||
}, | ||
"log": { | ||
"level": "warning" | ||
}, | ||
"event": { | ||
"severity": 4, | ||
"ingested": "2021-10-11T11:16:23.841954400Z", | ||
"original": "Oct 20 2019 15:42:54: %ASA-4-722037: Group \u003cGroupPolicy_TheBeatles\u003e User \u003cPaul\u003e IP \u003c83.212.241.149\u003e SVC closing connection: DPD failure.", | ||
"code": "722037", | ||
"kind": "event", | ||
"action": "firewall-rule", | ||
"category": [ | ||
"network" | ||
], | ||
"type": [ | ||
"info" | ||
] | ||
}, | ||
"cisco": { | ||
"asa": {} | ||
}, | ||
"tags": [ | ||
"preserve_original_event" | ||
] | ||
}, | ||
{ | ||
"observer": { | ||
"type": "firewall", | ||
"product": "asa", | ||
"vendor": "Cisco" | ||
}, | ||
"@timestamp": "2020-08-06T11:01:37.000Z", | ||
"ecs": { | ||
"version": "1.12.0" | ||
}, | ||
"log": { | ||
"level": "warning" | ||
}, | ||
"event": { | ||
"severity": 4, | ||
"ingested": "2021-10-11T11:16:23.841961900Z", | ||
"original": "Aug 6 2020 11:01:37: %ASA-4-722037: Group \u003cGroupPolicy_TheBeatles\u003e User \u003cBrian\u003e IP \u003c234.63.56.32\u003e SVC closing connection: Transport closing.", | ||
"code": "722037", | ||
"kind": "event", | ||
"action": "firewall-rule", | ||
"category": [ | ||
"network" | ||
], | ||
"type": [ | ||
"info" | ||
] | ||
}, | ||
"cisco": { | ||
"asa": {} | ||
}, | ||
"tags": [ | ||
"preserve_original_event" | ||
] | ||
}, | ||
{ | ||
"observer": { | ||
"type": "firewall", | ||
"product": "asa", | ||
"vendor": "Cisco" | ||
}, | ||
"@timestamp": "2020-08-06T11:01:38.000Z", | ||
"ecs": { | ||
"version": "1.12.0" | ||
}, | ||
"related": { | ||
"user": [ | ||
"George" | ||
], | ||
"ip": [ | ||
"234.24.156.94" | ||
] | ||
}, | ||
"log": { | ||
"level": "warning" | ||
}, | ||
"source": { | ||
"user": { | ||
"name": "George" | ||
}, | ||
"address": "234.24.156.94", | ||
"ip": "234.24.156.94" | ||
}, | ||
"event": { | ||
"severity": 4, | ||
"ingested": "2021-10-11T11:16:23.841969400Z", | ||
"original": "Aug 6 2020 11:01:38: %ASA-4-722051: Group \u003cGroupPolicy_TheBeatles\u003e User \u003cGeorge\u003e IP \u003c234.24.156.94\u003e IPv4 Address \u003c234.56.47.98\u003e IPv6 address \u003c::\u003e assigned to session", | ||
"code": "722051", | ||
"kind": "event", | ||
"action": "firewall-rule", | ||
"category": [ | ||
"network" | ||
], | ||
"type": [ | ||
"info" | ||
] | ||
}, | ||
"cisco": { | ||
"asa": { | ||
"webvpn": { | ||
"group_name": "GroupPolicy_TheBeatles" | ||
}, | ||
"assigned_ip": "234.56.47.98" | ||
} | ||
}, | ||
"tags": [ | ||
"preserve_original_event" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters