Skip to content

Commit

Permalink
Add nginx.ingress_controller.upstream.ip to related.ip (#34645) (#34672)
Browse files Browse the repository at this point in the history
* Add nginx.ingress_controller.upstream.ip to related.ip (#34645)

* Added pull id

* Added "allow_duplicates: false"

* Added "allow_duplicates: false" for all related.ip appends

---------

Co-authored-by: Giuseppe Santoro <[email protected]>
  • Loading branch information
2 people authored and chrisberkhout committed Jun 1, 2023
1 parent 1e70bf1 commit 5eceee8
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ automatic splitting at root level, if root level element is an array. {pull}3415
- Add support for Okta debug attributes, `risk_reasons`, `risk_behaviors` and `factor`. {issue}33677[33677] {pull}34508[34508]
- Fill okta.request.ip_chain.* as a flattened object in Okta module. {pull}34621[34621]
- Fixed GCS log format issues. {pull}34659[34659]
- Add nginx.ingress_controller.upstream.ip to related.ip {issue}34645[34645] {pull}34672[34672]

*Auditbeat*

Expand Down
7 changes: 7 additions & 0 deletions filebeat/module/nginx/ingress_controller/ingest/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,17 @@ processors:
field: related.ip
value: "{{source.ip}}"
if: "ctx?.source?.ip != null"
allow_duplicates: false
- append:
field: related.ip
value: "{{destination.ip}}"
if: "ctx?.destination?.ip != null"
allow_duplicates: false
- append:
field: related.ip
value: "{{nginx.ingress_controller.upstream.ip}}"
if: "ctx?.nginx?.ingress_controller?.upstream?.ip != null"
allow_duplicates: false
- append:
field: related.user
value: "{{user.name}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -107,7 +108,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -167,7 +169,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -227,7 +230,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -365,7 +369,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -425,7 +430,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -489,7 +495,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -553,7 +560,8 @@
"172.17.0.6:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.6"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -617,7 +625,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -681,7 +690,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -745,7 +755,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -809,7 +820,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -872,7 +884,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -936,7 +949,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -1000,7 +1014,8 @@
"172.17.0.6:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.6"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -1064,7 +1079,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -1128,7 +1144,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -1189,7 +1206,8 @@
"172.17.0.6:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.6"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -1252,7 +1270,8 @@
"172.17.0.5:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.5"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -1316,7 +1335,8 @@
"172.17.0.6:8080"
],
"related.ip": [
"192.168.64.1"
"192.168.64.1",
"172.17.0.6"
],
"service.type": "nginx",
"source.address": "192.168.64.1",
Expand Down Expand Up @@ -1383,7 +1403,8 @@
"172.17.0.7:8080"
],
"related.ip": [
"192.168.64.14"
"192.168.64.14",
"172.17.0.7"
],
"service.type": "nginx",
"source.address": "192.168.64.14",
Expand Down Expand Up @@ -1450,7 +1471,8 @@
"172.17.0.7:8080"
],
"related.ip": [
"192.168.64.14"
"192.168.64.14",
"172.17.0.7"
],
"service.type": "nginx",
"source.address": "192.168.64.14",
Expand Down Expand Up @@ -1681,4 +1703,4 @@
"user_agent.os.version": "10.15.7",
"user_agent.version": "104.0.0.0"
}
]
]

0 comments on commit 5eceee8

Please sign in to comment.