Skip to content

Commit

Permalink
Fix cisco amp @metadata._id calculation (elastic#24718)
Browse files Browse the repository at this point in the history
The detection_id wasn't sufficient to uniquely identify documents.

Closes elastic#24717
  • Loading branch information
leehinman authored Mar 24, 2021
1 parent 9a5f5d0 commit 82a210a
Show file tree
Hide file tree
Showing 7 changed files with 5,981 additions and 629 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix Cisco ASA parser for message 722051. {pull}24410[24410]
- Fix `google_workspace` pagination. {pull}24668[24668]
- Fix Cisco ASA parser for message 302022. {issue}24405[24405] {pull}24697[24697]
- Fix Cisco AMP `@metadata._id` calculation {issue}24717[24717] {pull}24718[24718]
- Fix gcp/vpcflow module error where input type was defaulting to file. {pull}24719[24719]
- Fix date parsing in GSuite/login and Google Workspace/login filesets. {issue}24694[24694]
- Fix date parsing in GSuite/login fileset. {issue}24694[24694]
Expand Down
20 changes: 10 additions & 10 deletions x-pack/filebeat/module/cisco/amp/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ processors:
- decode_json_fields:
fields: [message]
target: json
- if:
has_fields: ["json.data.detection_id"]
then:
- fingerprint:
fields: ["json.data.detection_id"]
target_field: "@metadata._id"
else:
- fingerprint:
fields: ["json.data.timestamp", "json.data.timestamp_nanoseconds", "json.data.event_type_id", "json.data.connector_guid"]
target_field: "@metadata._id"
- fingerprint:
fields:
- "json.data.timestamp"
- "json.data.timestamp_nanoseconds"
- "json.data.event_type_id"
- "json.data.connector_guid"
- "json.data.id"
- "json.data.detection_id"
target_field: "@metadata._id"
ignore_missing: true
- add_fields:
target: ''
fields:
Expand Down
Loading

0 comments on commit 82a210a

Please sign in to comment.