Skip to content

Commit

Permalink
fortinet_fortigate: Include NAT and firewall IPs in related.ip (#5389)
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Mar 20, 2023
1 parent 500d6c8 commit 28e998b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/fortinet_fortigate/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.8.0"
changes:
- description: Include NAT and firewall IPs in `related.ip`.
type: enhancement
link: https://github.com/elastic/integrations/pull/5389
- version: "1.7.0"
changes:
- description: Handle broader range of timezone formats.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1906,6 +1906,9 @@
"vendor": "Fortinet"
},
"related": {
"ip": [
"172.16.0.2"
],
"user": [
"elastico"
]
Expand Down Expand Up @@ -2064,7 +2067,8 @@
},
"related": {
"ip": [
"67.43.156.13"
"67.43.156.13",
"10.10.10.10"
],
"user": [
"someuser"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,31 @@ processors:
value: "{{destination.nat.ip}}"
if: "ctx.destination?.nat?.ip != null"
allow_duplicates: false
- append:
field: related.ip
value: "{{source.nat.ip}}"
allow_duplicates: false
if: "ctx.source?.nat?.ip != null"
- append:
field: related.ip
value: "{{destination.nat.ip}}"
allow_duplicates: false
if: "ctx.destination?.nat?.ip != null"
- append:
field: related.ip
value: "{{fortinet.firewall.ip}}"
allow_duplicates: false
if: "ctx.fortinet?.firewall?.ip != null"
- append:
field: related.ip
value: "{{fortinet.firewall.assignip}}"
allow_duplicates: false
if: "ctx.fortinet?.firewall?.assignip != null"
- append:
field: related.ip
value: "{{fortinet.firewall.tunnelip}}"
allow_duplicates: false
if: "ctx.fortinet?.firewall?.tunnelip != null"
- append:
field: related.user
value: "{{source.user.name}}"
Expand Down
2 changes: 1 addition & 1 deletion packages/fortinet_fortigate/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fortinet_fortigate
title: Fortinet FortiGate Firewall Logs
version: "1.7.0"
version: "1.8.0"
release: ga
description: Collect logs from Fortinet FortiGate firewalls with Elastic Agent.
type: integration
Expand Down

0 comments on commit 28e998b

Please sign in to comment.