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

[ecs] Upgrade panw module to ecs 1.8 #23931

Merged
merged 2 commits into from
Feb 10, 2021
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Upgrade Zeek to ECS 1.8.0. {issue}23118[23118] {pull}23847[23847]
- Updated azure module to ECS 1.8. {issue}23118[23118] {pull}23927[23927]
- Update aws/s3access to ECS 1.8. {issue}23118[23118] {pull}23920[23920]
- Upgrade panw module to ecs 1.8 {issue}23118[23118] {pull}23931[23931]

*Heartbeat*

Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/panw/panos/config/input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ processors:
- add_fields:
target: ''
fields:
ecs.version: 1.7.0
ecs.version: 1.8.0
12 changes: 12 additions & 0 deletions x-pack/filebeat/module/panw/panos/ingest/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,21 +385,25 @@ processors:
- append:
if: 'ctx?.source?.ip != null'
field: related.ip
allow_duplicates: false
value:
- '{{source.ip}}'
- append:
if: 'ctx?.destination?.ip != null'
field: related.ip
allow_duplicates: false
value:
- '{{destination.ip}}'
- append:
if: 'ctx?.source?.nat?.ip != null'
field: related.ip
allow_duplicates: false
value:
- '{{source.nat.ip}}'
- append:
if: 'ctx?.destination?.nat?.ip != null'
field: related.ip
allow_duplicates: false
value:
- '{{destination.nat.ip}}'

Expand Down Expand Up @@ -528,43 +532,51 @@ processors:

- append:
field: related.user
allow_duplicates: false
value: "{{client.user.name}}"
if: "ctx?.client?.user?.name != null"

- append:
field: related.user
allow_duplicates: false
value: "{{source.user.name}}"
if: "ctx?.source?.user?.name != null"

- append:
field: related.user
allow_duplicates: false
value: "{{server.user.name}}"
if: "ctx?.server?.user?.name != null"

- append:
field: related.user
allow_duplicates: false
value: "{{destination.user.name}}"
if: "ctx?.destination?.user?.name != null"

- append:
field: related.user
allow_duplicates: false
value: "{{url.username}}"
if: "ctx?.url?.username != null && ctx?.url?.username != ''"
allow_duplicates: false

- append:
field: related.hash
allow_duplicates: false
value: "{{panw.panos.file.hash}}"
if: "ctx?.panw?.panos?.file?.hash != null"

- append:
field: related.hosts
allow_duplicates: false
value: "{{observer.hostname}}"
if: "ctx?.observer?.hostname != null && ctx.observer?.hostname != ''"
allow_duplicates: false

- append:
field: related.hosts
allow_duplicates: false
value: "{{url.domain}}"
if: "ctx?.url?.domain != null && ctx.url?.domain != ''"
allow_duplicates: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -803,11 +803,9 @@
"related.ip": [
"192.168.0.2",
"204.232.231.46",
"0.0.0.0",
"0.0.0.0"
],
"related.user": [
"crusher",
"crusher"
],
"rule.name": "rule1",
Expand Down
Loading