Palo Alto PAN-OS SNMP v3 and Syslog
SNMPv3 with an authentication/privacy user, syslog server profiles, log forwarding profiles attached to security rules, and NTP - including the detail that traffic logs only forward when a rule references the profile.
What is it?
SNMP and syslog give you the two views of a Palo Alto firewall: polled counters and pushed events. PAN-OS differs from most platforms in how syslog is wired. There are two distinct objects. A syslog server profile says WHERE logs go - the collector address, transport and port. A log forwarding profile says WHAT gets forwarded, and it must then be attached to individual security rules. System and configuration logs forward on their own, but traffic, threat and URL logs stay on the firewall until a rule references the log forwarding profile. A firewall can therefore be fully configured for syslog and still send no traffic logs at all.
When to use
- ·Every PAN-OS firewall at deployment, as part of the base build
- ·Forwarding threat and URL logs to a SIEM - this is usually the whole point of running the NGFW
- ·Configuration auditing: PAN-OS config logs record every commit with the administrator who made it
- ·Capacity planning: session count, throughput and dataplane CPU polled over time predict when the platform needs upgrading
- ·Alerting on HA state changes and certificate expiry, which arrive as system logs
When NOT to use
- ·SNMPv2c on an internet-facing management interface - the community string is cleartext
- ·Forwarding all traffic logs over UDP from a high-throughput firewall. UDP drops silently under load, so the logs you most need during an incident are exactly the ones most likely to be missing. Use TCP or SSL where volume is high
- ·Forwarding `All Logs` for traffic without estimating volume first - a busy firewall generates enormous quantities and SIEM licensing is usually billed on it
- ·Instead of Panorama in a multi-firewall estate. Panorama aggregates logs natively and provides correlation that plain syslog cannot
- ·Relying on local log storage for retention. PAN-OS log partitions are finite and roll over, sometimes faster than expected under load
How it compares
Prerequisites
- →Management interface reachable to the NMS and the syslog collector
- →NTP configured first - SNMPv3 authentication is time-sensitive and timestamps must be correct
- →Security rules already defined, since the log forwarding profile has to be attached to them
- →SNMPv3 credentials stored in a secrets manager, not in the repository
- →An estimate of log volume before enabling traffic log forwarding, and a decision on UDP versus TCP
Config Generator
SHA authentication. Never commit the real value
AES encryption. Use a different value from the auth password
UDP, TCP or SSL. TCP and SSL survive restarts without losing messages
This is what security rules reference. Without it, traffic logs stay on the firewall
Used as the syslog source address so the collector sees a stable sender
Verification commands
show system info | match snmpConfirm the SNMP service is enabled on the management interface
ExpectedSNMP shown as enabled. If the management interface profile disables it, polls never reach the agent regardless of the SNMP configuration.
show log system direction equal backward | match syslogCheck for syslog delivery errors in the system log
ExpectedNo connection errors. Messages about an unreachable syslog server point to routing or firewall problems between the management interface and the collector.
show logging-statusShow log forwarding state and counters per destination
ExpectedCounts of logs forwarded and any that failed. This is the quickest way to tell whether the firewall believes it is sending anything at all.
show ntpConfirm NTP synchronisation before trusting any timestamp
ExpectedSynchronised status against the configured server. PAN-OS will not authenticate SNMPv3 reliably with significant clock skew.
Debug commands
tail follow yes mp-log ms.logWatch management plane logging in real time while reproducing an issue
WarningVerbose. Stop with Ctrl-C. This is a management plane log and does not show dataplane traffic processing.
debug log-receiver statisticsShow detailed log receiver and forwarding statistics, including drops
WarningOutput is long and version-dependent. Useful for confirming whether logs are being generated but not forwarded, which distinguishes a policy problem from a transport problem.
test log-forwarding profile <name>Send a test message through a log forwarding profile
WarningConfirms the profile and the syslog server profile resolve correctly. It does NOT confirm that any security rule references the profile, which is the more common failure.
Common mistakes & fixes
Further learning
Recommended books to go deeper on this topic.
CCNP Enterprise Core ENCOR 350-401 Official Cert Guide
Brad Edgeworth et al. · Cisco Press · Network management: SNMP v1/v2c/v3, syslog levels, NTP, NetFlow