All Apps and Add-ons

Getting Palo Alto firewall rules into splunk

dgosselin
New Member

I'm looking to get a list of firewall rules from Panorama into splunk to be able to query against traffic logs, is there any way to do this through the Palo Alto app for splunk?

0 Karma

mnatkin_splunk
Splunk Employee
Splunk Employee

< disclaimer > I haven't yet had the chance to test this on a live system, so YMMV < /disclaimer >

The way I know of to pull the rules is via the PAN-OS XML API. You'll want to use the Xpath parameter to target just the rule base itself, so Xpath=/config/devices/entry/vsys/entry/rulebase/security should do the trick.

Your API call will look something like this:

https://{PANORAMA_IP_or_HOST}/api/?type=config&action=show&key=apikey&xpath=/config/devices/entry/vs...

You're most interested in the "Rule Name" field, as my understanding is that this is the unique identifier in the traffic log that you can correlate against.

For more information, reference the PAN API usage guide (available here): https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api

Good luck, and Happy Splunking!

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...