forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Filebeat Enhancement] Pattern for Cisco Message 734001. (elastic#16612)
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 elastic#16212 Co-authored-by: MarcusCaepio <7324088+MarcusCaepio@users.noreply.github.com> (cherry picked from commit ac2b333)
- Loading branch information
1 parent
f951a29
commit f8eef3d
Showing
8 changed files
with
112 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 firsname.lastname@domain.net, 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 firsname.lastname@domain.net, 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": "firsname.lastname@domain.net" | ||
} | ||
] |
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