-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick #16612 to 7.x: [Filebeat Enhancement] Pattern for Cisco M…
…essage 734001. (#17128) The split part is needed, because one has to be able to search for an explicit dap_record. As the records order and number can vary a lot, just saving the whole string makes no sense. I chose "user.email", "source.ip" as ECS fields and "cisco.connection_type", "cisco.dap_records", as looking to the syslog messages docs,they also call it like that. I made "make update" in /beats/x.pack/filebeat and /beats/filebeat. Hopefully the pipeline succeeds now. Fixes #16212 (cherry picked from commit ac2b333) Co-authored-by: MarcusCaepio <[email protected]>
- Loading branch information
1 parent
6373f79
commit eaa0b6d
Showing
8 changed files
with
110 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Feb 20 2020 16:11:11: %ASA-6-734001: DAP: User [email protected], Addr 1.2.3.4, Connection AnyConnect: The following DAP records were selected for this connection: dap_1, dap_2 |
35 changes: 35 additions & 0 deletions
35
x-pack/filebeat/module/cisco/asa/test/dap_records.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,35 @@ | ||
[ | ||
{ | ||
"cisco.asa.connection_type": "AnyConnect", | ||
"cisco.asa.dap_records": [ | ||
"dap_1", | ||
"dap_2" | ||
], | ||
"cisco.asa.message_id": "734001", | ||
"event.action": "firewall-rule", | ||
"event.code": 734001, | ||
"event.dataset": "cisco.asa", | ||
"event.module": "cisco", | ||
"event.original": "%ASA-6-734001: DAP: User [email protected], Addr 1.2.3.4, Connection AnyConnect: The following DAP records were selected for this connection: dap_1, dap_2", | ||
"event.severity": 6, | ||
"event.timezone": "-02:00", | ||
"fileset.name": "asa", | ||
"input.type": "log", | ||
"log.level": "informational", | ||
"log.offset": 0, | ||
"service.type": "cisco", | ||
"source.address": "1.2.3.4", | ||
"source.geo.city_name": "Moscow", | ||
"source.geo.continent_name": "Europe", | ||
"source.geo.country_iso_code": "RU", | ||
"source.geo.location.lat": 55.7527, | ||
"source.geo.location.lon": 37.6172, | ||
"source.geo.region_iso_code": "RU-MOW", | ||
"source.geo.region_name": "Moscow", | ||
"source.ip": "1.2.3.4", | ||
"tags": [ | ||
"cisco-asa" | ||
], | ||
"user.email": "[email protected]" | ||
} | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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