Skip to content

Commit 1ae5d91

Browse files
fix(panw/panos): revert to original append processor and disallow duplicates
1 parent 1669b60 commit 1ae5d91

File tree

1 file changed

+9
-5
lines changed
  • packages/panw/data_stream/panos/elasticsearch/ingest_pipeline

1 file changed

+9
-5
lines changed

packages/panw/data_stream/panos/elasticsearch/ingest_pipeline/default.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,20 +1168,24 @@ processors:
11681168
field: event.action
11691169
value: flow_dropped
11701170
if: ctx.panw?.panos?.sub_type == 'drop'
1171+
- append:
1172+
field: event.type
1173+
allow_duplicates: false
1174+
value:
1175+
- denied
1176+
- connection
1177+
if: ctx.panw?.panos?.sub_type == 'drop'
11711178
- set:
11721179
field: event.action
11731180
value: flow_denied
11741181
if: ctx.panw?.panos?.sub_type == 'deny'
11751182
- append:
11761183
field: event.type
1184+
allow_duplicates: false
11771185
value:
11781186
- denied
1179-
if: "['deny', 'drop'].contains(ctx.panw?.panos?.sub_type) && !ctx.event.type?.contains('denied')"
1180-
- append:
1181-
field: event.type
1182-
value:
11831187
- connection
1184-
if: "['deny', 'drop'].contains(ctx.panw?.panos?.sub_type)"
1188+
if: ctx.panw?.panos?.sub_type == 'deny'
11851189

11861190
# event.action for threat and global-protect logs.
11871191
- set:

0 commit comments

Comments
 (0)