Skip to content
5 changes: 5 additions & 0 deletions packages/panw/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "5.3.6"
changes:
- description: Prefer set with copy_from and ignore_empty_value.
type: enhancement
link: https://github.com/elastic/integrations/pull/15800
- version: "5.3.5"
changes:
- description: Generate processor tags and normalize error handler.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ processors:
- set:
tag: set_event_timezone_ab6989dd
field: event.timezone
value: '{{{_conf.tz_offset}}}'
copy_from: _conf.tz_offset
if: ctx._conf?.tz_offset instanceof String && !ctx._conf.tz_offset.equalsIgnoreCase('local')

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

# Remove NAT fields when translation was not done.
- remove:
Expand Down Expand Up @@ -1852,7 +1852,7 @@ processors:
- set:
tag: set_rule_name_809e7c7b
field: rule.name
value: '{{{panw.panos.ruleset}}}'
copy_from: panw.panos.ruleset
ignore_empty_value: true
if: ctx.rule?.name == null
- append:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,132 +209,132 @@ processors:
tag: set_panw_panos_destination_location_b4a8aa0b
field: panw.panos.destination.location
copy_from: _temp_.dstloc
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_destination_ip_07b53525
field: destination.ip
copy_from: panw.panos.destination.ip
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_destination_nat_ip_3718bfe7
field: destination.nat.ip
copy_from: panw.panos.destination.nat.ip
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_destination_nat_port_ed3fbecb
field: destination.nat.port
copy_from: panw.panos.destination.nat.port
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_destination_port_f95b8fc9
field: destination.port
copy_from: panw.panos.destination.port
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_destination_user_email_a9ced2d1
field: destination.user.email
copy_from: panw.panos.recipient
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_file_type_3b47313f
field: file.type
copy_from: panw.panos.file.type
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_http_request_method_ee026d61
field: http.request.method
copy_from: panw.panos.http_method
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_http_request_referrer_d49699ae
field: http.request.referrer
copy_from: panw.panos.referrer
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_log_level_ed3c9f74
field: log.level
copy_from: panw.panos.severity
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_network_application_5ae7266b
field: network.application
copy_from: panw.panos.network.application
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_panw_panos_network_direction_7b1610d9
field: panw.panos.network.direction
copy_from: _temp_.direction
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_panw_panos_forwarded_ip_869ae961
field: panw.panos.forwarded_ip
copy_from: network.forwarded_ip
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_network_transport_860fbbd0
field: network.transport
copy_from: panw.panos.protocol
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_observer_egress_interface_name_a7cd428a
field: observer.egress.interface.name
copy_from: panw.panos.outbound_interface
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_observer_egress_zone_1c62484c
field: observer.egress.zone
copy_from: panw.panos.destination.zone
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_observer_hostname_5bc96c94
field: observer.hostname
copy_from: panw.panos.device_name
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_observer_ingress_interface_name_0cf960b9
field: observer.ingress.interface.name
copy_from: panw.panos.inbound_interface
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_observer_ingress_zone_99ce4399
field: observer.ingress.zone
copy_from: panw.panos.source.zone
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_rule_uuid_5478ecb2
field: rule.uuid
copy_from: panw.panos.rule_uuid
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_panw_panos_source_location_3344cd6f
field: panw.panos.source.location
copy_from: _temp_.srcloc
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_source_ip_c1b0f423
field: source.ip
copy_from: panw.panos.source.ip
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_source_nat_ip_c6ea5d2f
field: source.nat.ip
copy_from: panw.panos.source.nat.ip
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_source_port_ed14489b
field: source.port
copy_from: panw.panos.source.port
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_source_nat_port_dcfd151f
field: source.nat.port
copy_from: panw.panos.source.nat.port
ignore_failure: true
ignore_empty_value: true
- set:
tag: set_source_user_email_1f28b2dc
field: source.user.email
copy_from: panw.panos.sender
ignore_failure: true
ignore_empty_value: true
- set:
if: 'ctx.panw?.panos?.sub_type == "url" && ctx.panw?.panos?.misc instanceof String'
tag: set_url
Expand Down Expand Up @@ -362,7 +362,7 @@ processors:
field: url.original
copy_from: panw.panos.misc
# Crude implementation of `uri_parts` as its not working well due to lack of scheme.
# When the scheme of the URL is absent, this script parses the URL in `ctx.panw.panos.misc` into components namely
# When the scheme of the URL is absent, this script parses the URL in `ctx.panw.panos.misc` into components namely
# `url.original`, `url.domain`, `url.port`, `url.path`, `url.query`, `url.extension`
- script:
tag: script_fe76de17
Expand Down Expand Up @@ -412,14 +412,14 @@ processors:
}

ctx.url = url;


- set:
tag: set_file_path_7598b8ca
if: ctx.panw?.panos?.sub_type == 'file' && (ctx.panw?.panos?.misc instanceof String) && (ctx.panw.panos.misc.contains('/') || ctx.panw.panos.misc.contains('\\'))
field: file.path
copy_from: panw.panos.misc
ignore_failure: true
ignore_empty_value: true
- script:
tag: script_b7379098
if: ctx.file?.path instanceof String
Expand All @@ -436,19 +436,19 @@ processors:
if: '["file", "virus", "vulnerability", "wildfire", "wildfire-virus"].contains(ctx.panw?.panos?.sub_type) && (ctx.panw?.panos?.misc instanceof String) && !(ctx.panw.panos.misc.contains("/") || ctx.panw.panos.misc.contains("\\"))'
field: file.name
copy_from: panw.panos.misc
ignore_failure: true
ignore_empty_value: true

# vulnerability can be either file or url. If it's a file, remove all url fields it was parsed into
- remove:
if: '"vulnerability" == ctx.panw?.panos?.sub_type && ctx.file?.name != null'
tag: remove_url
field: url
ignore_failure: true
ignore_missing: true
- set:
tag: set_panw_panos_user_agent_f4b744c1
field: panw.panos.user_agent
copy_from: _temp_.user_agent
ignore_failure: true
ignore_empty_value: true
- trim:
tag: trim_panw_panos_url_category_list_e818fc56
if: ctx.panw?.panos?.url_category_list != null
Expand Down
Loading