Skip to content

Commit 4adb496

Browse files
committed
Prefer set with copy_from
because copy_from is faster than value (when the value is a mustache template that merely does field access).
1 parent e2b91b0 commit 4adb496

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ processors:
2020
- set:
2121
tag: set_event_timezone_ab6989dd
2222
field: event.timezone
23-
value: '{{{_conf.tz_offset}}}'
23+
copy_from: _conf.tz_offset
2424
if: ctx._conf?.tz_offset instanceof String && !ctx._conf.tz_offset.equalsIgnoreCase('local')
2525

2626
# Collects the first few parts of the message to be used for conditional parsing later
@@ -370,7 +370,7 @@ processors:
370370
tag: set_session_start_time_ee5db372
371371
if: ctx.panw?.panos?.parent_session?.start_time != null
372372
field: session.start_time
373-
value: '{{{panw.panos.parent_session.start_time}}}'
373+
copy_from: panw.panos.parent_session.start_time
374374

375375
# Remove NAT fields when translation was not done.
376376
- remove:
@@ -1852,7 +1852,7 @@ processors:
18521852
- set:
18531853
tag: set_rule_name_809e7c7b
18541854
field: rule.name
1855-
value: '{{{panw.panos.ruleset}}}'
1855+
copy_from: panw.panos.ruleset
18561856
ignore_empty_value: true
18571857
if: ctx.rule?.name == null
18581858
- append:

0 commit comments

Comments
 (0)