Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Filebeat] Enhancement - Pattern for Cisco Message 734001. #16543

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4859,6 +4859,26 @@ type: short

--

*`cisco.asa.connection_type`*::
+
--
The VPN connection type


type: keyword

--

*`cisco.asa.dap_records`*::
+
--
The assigned DAP records


type: keyword

--

[float]
=== ftd

Expand Down Expand Up @@ -5037,6 +5057,26 @@ type: object

--

*`cisco.ftd.connection_type`*::
+
--
The VPN connection type


type: keyword

--

*`cisco.ftd.dap_records`*::
+
--
The assigned DAP records


type: keyword

--

[float]
=== ios

Expand Down
10 changes: 10 additions & 0 deletions x-pack/filebeat/module/cisco/asa/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,13 @@
type: short
description: >
ICMP code.

- name: connection_type
type: keyword
description: >
The VPN connection type

- name: dap_records
type: keyword
description: >
The assigned DAP records
18 changes: 18 additions & 0 deletions x-pack/filebeat/module/cisco/asa/test/dap_records-expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"source": {
"ip": "1.2.3.4"
},
"user": {
"email": "[email protected]"
},
"cisco": {
"connection_type": "AnyConnect",
"dap_records": [
"dap_1",
"dap_2"
],
"asa": {
"message_id": "734001"
}
}
}
1 change: 1 addition & 0 deletions x-pack/filebeat/module/cisco/asa/test/dap_records.log
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
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/cisco/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions x-pack/filebeat/module/cisco/ftd/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,13 @@
type: object
description:
Raw fields for Security Events.

- name: connection_type
type: keyword
description: >
The VPN connection type

- name: dap_records
type: keyword
description: >
The assigned DAP records
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,14 @@ processors:
if: "ctx._temp_.cisco.message_id == '338301'"
field: "server.port"
value: "{{source.port}}"

- dissect:
if: "ctx._temp_.cisco.message_id == '734001'"
field: "message"
pattern: "DAP: User %{user.email}, Addr %{source.ip}, Connection %{cisco.connection_type}: The following DAP records were selected for this connection: %{cisco.dap_records->}"
- split:
field: "cisco.dap_records"
separator: ",\\s+"

#
# Handle 302xxx messages (Flow expiration a.k.a "Teardown")
#
Expand Down