Skip to main content

PAN-OS-AnalyzeRuleHitCounts

This Script is part of the PAN-OS by Palo Alto Networks Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

Processes the context output from !pan-os-get-rulehitcounts and returns data about unused local rules, unused rules from Panorama, and rules from Panorama that have hits on some firewalls but not all.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.10.0

Inputs#


There are no inputs for this script.

Outputs#


PathDescriptionType
PANOS.UnusedRules.TotalLocalRulesAnalyzedThe total number of local rules analyzed.Number
PANOS.UnusedRules.TotalPanoramaRulesAnalyzedThe total number of rules pushed from Panorama analyzed.Number
PANOS.UnusedRules.UsedPanoramaRules.from_dg_nameName of the device group the rule is inherited from.String
PANOS.UnusedRules.UsedPanoramaRules.hostids_with_hitsHost IDs of firewalls where this rule has hits.String
PANOS.UnusedRules.UsedPanoramaRules.hostnames_with_hitsHostnames of firewalls where this rule has hits.String
PANOS.UnusedRules.UsedPanoramaRules.hostids_with_zero_hitsHost IDs of firewalls where this rule has zero hits.Unknown
PANOS.UnusedRules.UsedPanoramaRules.hostnames_with_zero_hitsHostnames of firewalls where this rule has zero hits.Unknown
PANOS.UnusedRules.UsedPanoramaRules.instanceNameName of the PAN-OS Integration Instance used to collect rule hitcount data.String
PANOS.UnusedRules.UsedPanoramaRules.nameThe name of the rule.String
PANOS.UnusedRules.UsedPanoramaRules.positionThe position of the rule within the Panorama device-group rulebase (pre-rulebase or post-rulebase).String
PANOS.UnusedRules.UsedPanoramaRules.rulebaseThe rulebase where the rule is configured (e.g. "Security", "NAT", etc).String
PANOS.UnusedRules.UnusedLocalRules.activeHAPeerIf the firewall where this rule data comes from is in an HA pair, contains the hostid of the active device in the pair.Unknown
PANOS.UnusedRules.UnusedLocalRules.hostidHost ID of the firewall where the rule is configured.String
PANOS.UnusedRules.UnusedLocalRules.hostnameHostname of the firewall where this rule is configured.String
PANOS.UnusedRules.UnusedLocalRules.vsysThe virtual system (vsys) where the rule is configured.String
PANOS.UnusedRules.UnusedLocalRules.instanceNameName of the PAN-OS Integration Instance used to collect rule hitcount data.String
PANOS.UnusedRules.UnusedLocalRules.nameThe name of the rule.String
PANOS.UnusedRules.UnusedLocalRules.positionThe position of the rule within the Panorama device-group rulebase (pre-rulebase or post-rulebase).String
PANOS.UnusedRules.UnusedLocalRules.rulebaseThe rulebase where the rule is configured (e.g. "Security", "NAT", etc).String
PANOS.UnusedRules.UnusedPanoramaRules.from_dg_nameThe rulebase where the rule is configured (e.g. "Security", "NAT", etc).String
PANOS.UnusedRules.UnusedPanoramaRules.instanceNameName of the PAN-OS Integration Instance used to collect rule hitcount data.String
PANOS.UnusedRules.UnusedPanoramaRules.nameThe name of the rule.String
PANOS.UnusedRules.UnusedPanoramaRules.positionThe position of the rule within the Panorama device-group rulebase (pre-rulebase or post-rulebase).String
PANOS.UnusedRules.UnusedPanoramaRules.rulebaseThe rulebase where the rule is configured (e.g. "Security", "NAT", etc).String
PANOS.UnusedRules.ignore_auto_extractInstructs the system not to perform indicator extraction on returned data.Boolean