Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
fix(addon): CDL threat_name field more robust
Browse files Browse the repository at this point in the history
Fixes #234

The threat_name field can now pull from the ThreatName field if it
exists, or the ThreatID field as a backup.
  • Loading branch information
btorresgil committed Oct 7, 2022
1 parent af609bc commit 6f290d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Splunk_TA_paloalto/default/props.conf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ FIELDALIAS-fwcloud_src_zone = FromZone as src_zone
FIELDALIAS-fwcloud_start_time = SessionStartTime as start_time
FIELDALIAS-fwcloud_threat_category = ThreatCategory as threat_category
FIELDALIAS-fwcloud_threat = ThreatID as threat
FIELDALIAS-fwcloud_threat_name = ThreatName as threat_name
EVAL-threat_name = coalesce(ThreatName, ThreatNameFromID)
FIELDALIAS-fwcloud_transport = Protocol as transport
FIELDALIAS-fwcloud_type = LogType as type
FIELDALIAS-fwcloud_log_type = LogType as log_type
Expand Down
2 changes: 1 addition & 1 deletion Splunk_TA_paloalto/default/transforms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ REGEX = \((?<threat_id>\d+)\)

[extract_threat_name_cloud]
SOURCE_KEY = ThreatID
REGEX = ^(?<threat_name>[^(]*)
REGEX = ^(?<ThreatNameFromID>[^(]*)

[extract_dest_hostname_cloud]
SOURCE_KEY = URL
Expand Down

0 comments on commit 6f290d0

Please sign in to comment.