Skip to content

Commit

Permalink
[ECS] Adds related.hosts to capture all hostnames and host identifie…
Browse files Browse the repository at this point in the history
…rs on an event. (#21160) (#21257)

* Add related.hosts to panos

* Add related.hosts to osquery

* Add related.hosts to system

* Add related.hosts to defender atp

* Add related.hosts to cisco

* Add related.hosts to suricata

* Use allow_duplicates: false to remove duplicate hosts

* Add related.hosts to rsa2elk modules

* Add changelog entry

* Add checks to avoid empty strings

(cherry picked from commit 3fb01e3)
  • Loading branch information
marc-gr authored Sep 29, 2020
1 parent a98d839 commit 72de6d7
Show file tree
Hide file tree
Showing 126 changed files with 9,460 additions and 1,517 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ field. You can revert this change by configuring tags for the module and omittin
- Added new module for Zoom webhooks {pull}20414[20414]
- Add type and sub_type to panw panos fileset {pull}20912[20912]
- Always attempt community_id processor on zeek module {pull}21155[21155]
- Add related.hosts ecs field to all modules {pull}21160[21160]

*Heartbeat*

Expand Down
2 changes: 1 addition & 1 deletion filebeat/module/osquery/result/config/result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ processors:
- add_fields:
target: ''
fields:
ecs.version: 1.5.0
ecs.version: 1.6.0
8 changes: 8 additions & 0 deletions filebeat/module/osquery/result/ingest/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@
"value": "{{osquery.result.name}}",
"ignore_empty_value": true
}
},
{
"append": {
"field": "related.hosts",
"value": "{{host.hostname}}",
"if": "ctx?.host?.hostname != null && ctx.host?.hostname != ''",
"allow_duplicates": false
}
}
],
"on_failure" : [{
Expand Down
Loading

0 comments on commit 72de6d7

Please sign in to comment.