Skip to content

Commit 4158fee

Browse files
committed
check for json category
1 parent f293933 commit 4158fee

File tree

1 file changed

+1
-1
lines changed
  • packages/azure/data_stream/firewall_logs/elasticsearch/ingest_pipeline

1 file changed

+1
-1
lines changed

packages/azure/data_stream/firewall_logs/elasticsearch/ingest_pipeline/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ processors:
339339
- set:
340340
field: network.protocol
341341
value: "{{azure.firewall.protocol}}"
342-
if: "ctx?.network?.transport == null && ['AZFWDnsQuery', 'AZFWApplicationRule', 'AZFWNetworkRule', 'AZFWNatRule'].contains(ctx.json.category)"
342+
if: "ctx.network?.transport == null && ctx.json?.category != null && ['AZFWDnsQuery', 'AZFWApplicationRule', 'AZFWNetworkRule', 'AZFWNatRule'].contains(ctx.json.category)"
343343
- remove:
344344
field:
345345
- azure.firewall.protocol

0 commit comments

Comments
 (0)