Palo Alto firewall filter generator
Form-driven PAN-OS filter generator. Build log filter expressions for Monitor → Logs (Traffic / Threat / URL / WildFire / System), CLI session lookups (show session all filter …), and packet-capture command sequences (debug dataplane packet-diag …). Browser-only. Tested against PAN-OS 10.x and 11.x syntax.
⚠ Disclaimer
This tool is provided as-is, for educational and planning purposes only. Generated filters and debug commands should only be used on firewalls you are authorised to operate.
debug dataplane packet-diag can impact dataplane performance — never enable in production without change control and a clear off-procedure. The Tech Space makes no warranty and accepts no liability. Full disclaimer →
Traffic log filter
Build a Monitor → Logs → Traffic filter expression.
Inputs
Generated output Updated just now
PAN-OS filter
Notes & tips
PAN-OS filter reference
Operators (log filter)
eq— equalneq— not equallt/leq— less than / ≤ (numeric)gt/geq— greater than / ≥in/notin— in subnet (IP fields) or in listcontains/notcontains— substring matchand,or— boolean combinators (parens around each clause)
Common Traffic fields
addr.src/addr.dstIPs, accept CIDR withinport.src/port.dstnumeric, 1–65535zone.src/zone.dstzone namesappApp-ID (e.g.web-browsing)protoe.g.tcp,udp,icmpactionsee actions listrulesecurity policy name (quote if has spaces)user.srcUser-ID identified userbytes/packetsnumeric, useful forgeqsrcloc/dstloccountry codes (ISO 3166-1)
Threat / URL fields
severityinformational/low/medium/high/criticalsubtypevulnerability,virus,spyware,url,file,data,wildfire-virus,wildfire-spywarecategoryURL category (e.g.social-networking) or threat categorydirectionclient-to-server/server-to-clientthreatthreat name (signature)threatidnumeric threat IDmiscURL hit (URL filtering logs)
Action values
allow— permitted by policydeny— denied by policy (no reset)drop— silently dropped (no reset)reset-client/reset-server/reset-both— TCP RST sentdrop-icmp/drop-icmp-allblock-url— URL filtering blockblock-continue/block-override— URL response page actions
CLI session filter (show session)
source <ip>/destination <ip>source-port <n>/destination-port <n>protocol <n>6=TCP, 17=UDP, 1=ICMPapplication <app>state <active|closing|discard|init>type <flow|predict|predict-discard>from <zone>/to <zone>rule <name>/nat-rule <name>count yesreturn matching session count instead of detail
Packet capture stages
receiveingress (before security checks)transmitegress (after security checks)firewallforwarded between zonesdropdropped by firewall
PCAP files saved to /var/log/pan/pcap/. View with view-pcap follow no filter-pcap <file> or export via Web UI: Monitor → Packet Capture.
Important — PCAP impact
debug dataplane packet-diag incurs dataplane overhead. Always set a tight filter before enabling capture, never capture in production without change control, and always run the off-procedure (set capture off → set filter off → clear all) when done. Forgetting to disable can degrade throughput indefinitely.