---
title: Palo Alto Networks Firewall
description: Monitor Palo Alto Networks firewall metrics, network device metadata, and logs
breadcrumbs: Docs > Integrations > Palo Alto Networks Firewall
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Palo Alto Networks Firewall
Supported OS Integration version4.0.0
{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}
  Palo Alto Networks Firewall Overview dashboard (light mode)Palo Alto Networks Firewall Overview dashboard (dark mode)
## Overview{% #overview %}

This check monitors [Palo Alto Networks firewalls](https://www.paloaltonetworks.com/network-security/next-generation-firewall) through the Datadog Agent.

Palo Alto Networks next-generation firewalls run PAN-OS and enforce security policy, threat prevention, and VPN connectivity at the network edge and in the data center. This check polls the PAN-OS XML API of each firewall to collect health and performance metrics, and reports the firewalls and their interfaces to Network Device Monitoring (NDM). The Agent finds the firewalls from a static list or from the firewalls that a Panorama server manages. It also parses the threat, traffic, authentication, and other logs that PAN-OS forwards through syslog.

### What this integration monitors{% #what-this-integration-monitors %}

The check collects the following data:

- **Firewall inventory**: Discovers firewalls from a static list or from Panorama, and reports them to NDM with their serial number, model, and software version.
- **High availability**: On firewalls with high availability (HA) enabled, reports the HA state and traffic, receive error, and receive drop counters for the HA1 and HA2 links.
- **System resources**: Reports management-plane CPU, memory, swap, and disk usage, and data-plane CPU utilization, so you can detect overloaded firewalls. Hardware firewalls also report power and temperature sensor readings.
- **Network interfaces**: Reports traffic, error, drop, and attack counters per interface. Reports each interface to NDM with its description and admin status.
- **IPsec tunnels**: Reports tunnel state and traffic, and the number of active, inactive, and initializing tunnels.
- **Routing**: Reports BGP peer state and prefix counts, and optionally OSPF neighbor state (set `collect_ospf` to `true`), so you can detect a routing peer going down. Works with both the legacy routing engine and the Advanced Routing Engine. On the Advanced Routing Engine, it also reports established and dropped BGP connections and OSPF neighbor state changes. See [metadata.csv](https://github.com/DataDog/integrations-core/blob/master/pan_firewall/metadata.csv) for the metrics each engine sends.
- **Licenses**: Reports expiration status and days left for each subscription.
- **Security rules**: Reports hit counts per security rule.
- **Global counters and reports** (optional): Set `collect_global_counters` or `collect_reports` to `true` to collect PAN-OS global counters, dropped packets by aspect, and top-N reports for applications, application and technology categories, sources, destinations, countries, zones, and rules.

**Minimum Agent version:** 7.86.0

## Setup{% #setup %}

Follow the instructions below to install and configure this check for an Agent running on a host. For containerized environments, see the [Autodiscovery integration templates](https://docs.datadoghq.com/containers/kubernetes/integrations.md) for guidance on applying these instructions.

### Installation{% #installation %}

The Palo Alto Networks Firewall check is included in the [Datadog Agent](https://app.datadoghq.com/account/settings/agent/latest) package. No additional installation is needed on your server.

### Configuration{% #configuration %}

#### Metric collection{% #metric-collection %}

1. Prepare each firewall:

   1. Enable HTTPS in the management profile of the management interface. If you restrict management access, add the Agent host to the **Permitted IP Addresses** list.
   1. In PAN-OS, go to **Device > Admin Roles** and add a role profile.
   1. In the **XML API** tab, enable **Operational Requests**. If you set `collect_reports` to `true`, also enable **Report**. The role does not need **Configuration** permission. To report interface descriptions and admin status to NDM, the role must also be able to run `show config running`.
   1. Go to **Device > Administrators**, add an account that uses this role, and commit the changes.

**Note**: For Panorama discovery, also create an account on Panorama with a role that allows **Operational Requests** in the XML API tab. The Agent uses this account only to list the managed firewalls. It polls each firewall with the firewall credentials you configure in step 2.

1. Edit the `pan_firewall.d/conf.yaml` file, in the `conf.d/` folder at the root of your Agent's configuration directory. See the [sample pan_firewall.d/conf.yaml](https://github.com/DataDog/integrations-core/blob/master/pan_firewall/datadog_checks/pan_firewall/data/conf.yaml.example) for all available options.

Choose how the Agent finds the firewalls: list their IP addresses in `firewalls`, or set `panorama_host` with `panorama_username` and `panorama_password` (or `panorama_api_key`) to discover every firewall Panorama manages. Set one or the other, not both. With Panorama discovery, set `firewall_ips.include` to the CIDR ranges of your known firewalls so that the check connects only to expected firewalls. Add a `firewall_credentials` entry for your firewalls: the Agent uses the first entry whose `cidr` contains the firewall IP, and an entry without `cidr` matches every firewall.

By default, the check sends one security rule hit series per security rule and virtual system, which can add up to thousands of series on a large rulebase. To limit this, set `security_rule_filter` to report only matching rules, or set `collect_rule_hits` to `false`.

A virtual system with no interfaces is not detected automatically, so list it in `vsys`.

1. [Restart the Agent](https://docs.datadoghq.com/agent/configuration/agent-commands.md#start-stop-and-restart-the-agent).

#### Log collection{% #log-collection %}

The Agent must run on a host that the firewall can reach on the syslog port and that can send data to Datadog. Allow inbound TCP traffic on the syslog port you choose (10518 in the example) on the Agent host.

1. Enable log collection in your `datadog.yaml` file:

   ```yaml
   logs_enabled: true
   ```

1. Edit the logs configuration block in your `pan_firewall.d/conf.yaml` file. For example:

   ```yaml
   logs:
     - type: tcp
       port: 10518
       source: pan.firewall
       service: <SERVICE>
       tags:
         - ndm_syslog:true
   ```

Keep `source: pan.firewall` so that the integration's log pipeline parses the logs. The `ndm_syslog:true` tag lets NDM show the firewall's logs on its device page.

1. In PAN-OS, go to **Device > Server Profiles > Syslog** and add a server profile with the IP address of the Agent host, transport **TCP**, the port you set in the logs block (**10518** in the example), and format **BSD**.

1. In the **Custom Log Format** tab of the server profile, configure the format for each log type you want to collect. The formats below map the fields listed in the [PAN-OS syslog field descriptions](https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/monitoring/use-syslog-for-monitoring/syslog-field-descriptions) to the attribute names that the log pipeline expects.

| Log type                                  | Format                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Traffic log                               | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, subtype=$subtype, time_generated=$time_generated, network.client.ip=$src, network.destination.ip=$dst, natsrc=$natsrc, natdst=$natdst, rule=$rule, usr.id=$srcuser, dstuser=$dstuser, app=$app, vsys=$vsys, source_zone=$from, destination_zone=$to, inbound_if=$inbound_if, outbound_if=$outbound_if, logset=$logset, sessionid=$sessionid, repeatcnt=$repeatcnt, network.client.port=$sport, network.destination.port=$dport, natsport=$natsport natdport=$natdport, flags=$flags, proto=$proto, evt.name=$action, bytes=$bytes, network.bytes_read=$bytes_sent, network.bytes_written=$bytes_received, start=$start, elapsed=$elapsed, category=$category, seqno=$seqno, actionflags=$actionflags, network.client.geoip.country.name=$srcloc, dstloc=$dstloc, pkts_sent=$pkts_sent, pkts_received=$pkts_received, session_end_reason=$session_end_reason, device_name=$device_name, action_source=$action_source, src_uuid=$src_uuid, dst_uuid=$dst_uuid, tunnelid=$tunnelid, imsi= $imsi, monitortag=$monitortag, imei=$imei, parent_session_id=$parent_session_id, parent_start_time=$parent_start_time, tunnel=$tunnel, assoc_id=$assoc_id, chunks=$chunks chunks_sent=$chunks_sent chunks_received=$chunks_received, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Threat log (and WildFire Submissions log) | {% collapsible-section %}
     View payload
`timestamp=$receive_time, serial=$serial, type=$type, subtype=$subtype, time_generated=$time_generated, network.client.ip=$src, network.destination.ip=$dst, natsrc=$natsrc, natdst=$natdst, rule=$rule, usr.id=$srcuser, dstuser=$dstuser, app=$app, vsys=$vsys, source_zone=$from, destination_zone=$to, inbound_if=$inbound_if, outbound_if=$outbound_if, logset=$logset, sessionid=$sessionid, repeatcnt=$repeatcnt, network.client.port=$sport, network.destination.port=$dport, natsport=$natsport, natdport=$natdport, flags=$flags, proto=$proto, evt.name=$action, misc=$misc, threatid="$threatid", category=$category, severity=$severity, direction=$direction, seqno=$seqno, actionflags=$actionflags, network.client.geoip.country.name=$srcloc, dstloc=$dstloc, contenttype=$contenttype, pcap_id=$pcap_id, filedigest=$filedigest, cloud=$cloud, url_idx=$url_idx, http.useragent="$user_agent", filetype=$filetype, xff=$xff referer=$referer, sender=$sender, subject=$subject, recipient=$recipient, reportid=$reportid, vsys_name=$vsys_name, device_name=$device_name, src_uuid=$src_uuid, dst_uuid=$dst_uuid, http_method=$http_method, tunnel_id=$tunnel_id, imsi=$imsi, monitortag=$monitortag, imei=$imei, parent_session_id=$parent_session_id, parent_start_time=$parent_start_time, tunnel=$tunnel, thr_category=$thr_category, contentver=$contentver, assoc_id=$assoc_id, ppid=$ppid, http_headers=$http_headers, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Authentication log                        | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, subtype=$subtype, vsys=$vsys, network.client.ip=$ip, usr.id=$user, normalize_user=$normalize_user, object=$object, authpolicy=$authpolicy, repeatcnt=$repeatcnt, authid=$authid, vendor=$vendor , logset=$logset, serverprofile=$serverprofile, message="$desc" ,clienttype=$clienttype, evt.outcome=$event, factorno=$factorno, seqno=$seqno, actionflags=$actionflags, vsys_name=$vsys_name, device_name=$device_name, vsys_id=$vsys_id, evt.name=$authproto, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| HIP Match log                             | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, subtype=$subtype, time_generated=$time_generated, usr.id=$srcuser, vsys=$vsys, machinename=$machinename, os=$os, network.client.ip=$src, matchname=$matchname, repeatcnt=$repeatcnt, matchtype=$matchtype, seqno=$seqno, actionflags=$actionflags, vsys_name=$vsys_name, device_name=$device_name, vsys_id=$vsys_id, srcipv6=$srcipv6, hostid=$hostid, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| User-ID log                               | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, subtype=$subtype, vsys=$vsys, network.client.ip=$ip, usr.id=$user, datasourcename=$datasourcename, evt.name=$eventid, repeatcnt=$repeatcnt, timeout=$timeout, network.client.port=$beginport, network.destination.port=$endport, datasource=$datasource, datasourcetype=$datasourcetype, seqno=$seqno, actionflags=$actionflags, vsys_name=$vsys_name, device_name=$device_name, vsys_id=$vsys_id, factortype=$factortype, factorcompletiontime=$factorcompletiontime,, factorno=$factorno, ugflags=$ugflags, userbysource=$userbysource, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Tunnel Inspection log                     | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, subtype=$subtype, network.client.ip=$src, network.destination.ip=$dst, natsrc=$natsrc, natdst=$natdst, rule=$rule, usr.id=$srcuser, dstuser=$dstuser, app=$app, vsys=$vsys, source_zone=$from, destination_zone=$to, inbound_if=$inbound_if, outbound_if=$outbound_if, logset=$logset, sessionid=$sessionid, repeatcnt=$repeatcnt, network.client.port=$sport, network.destination.port=$dport, natsport=$natsport, natdport=$natdport, flags=$flags, proto=$proto, evt.outcome=$action, severity=$severity, seqno=$seqno, actionflags=$actionflags, srcloc=$srcloc, dstloc=$dstloc, vsys_name=$vsys_name, device_name=$device_name, tunnelid=$tunnelid, monitortag=$monitortag, parent_session_id=$parent_session_id, parent_start_time=$parent_start_time, tunnel=$tunnel, bytes=$bytes, network.bytes_read=$bytes_sent, network.bytes_written=$bytes_received, packets=$packets, pkts_sent=$pkts_sent, pkts_received=$pkts_received, max_encap=$max_encap, unknown_proto=$unknown_proto, strict_check=$strict_check, tunnel_fragment=$tunnel_fragment, sessions_created=$sessions_created, sessions_closed=$sessions_closed, session_end_reason=$session_end_reason, evt.name=$action_source, start=$start, elapsed=$elapsed, tunnel_insp_rule=$tunnel_insp_rule, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| SCTP log                                  | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, network.client.ip=$src, network.destination.ip=$dst, rule=$rule, vsys=$vsys, source_zone=$from, destination_zone=$to, inbound_if=$inbound_if, outbound_if=$outbound_if, logset=$logset, sessionid=$sessionid, repeatcnt=$repeatcnt, network.client.port=$sport, network.destination.port=$dport, proto=$proto, action=$action, vsys_name=$vsys_name, device_name=$device_name, seqno=$seqno, assoc_id=$assoc_id, ppid=$ppid, severity=$severity, sctp_chunk_type=$sctp_chunk_type, sctp_event_type=$sctp_event_type, verif_tag_1=$verif_tag_1, verif_tag_2=$verif_tag_2, sctp_cause_code=$sctp_cause_code, diam_app_id=$diam_app_id, diam_cmd_code=$diam_cmd_code, diam_avp_code=$diam_avp_code, stream_id=$stream_id, assoc_end_reason=$assoc_end_reason, op_code=$op_code, sccp_calling_ssn=$sccp_calling_ssn, sccp_calling_gt=$sccp_calling_gt, sctp_filter=$sctp_filter, chunks=$chunks, chunks_sent=$chunks_sent, chunks_received=$chunks_received, packets=$packets, pkts_sent=$pkts_sent, pkts_received=$pkts_received, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Config log                                | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, subtype=$subtype, network.client.ip=$host, vsys=$vsys, evt.name=$cmd, usr.id=$admin, client=$client, evt.outcome=$result, path="$path", before_change_detail="$before_change_detail", after_change_detail="$after_change_detail", seqno=$seqno, actionflags=$actionflags, vsys_name=$vsys_name, device_name=$device_name, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| System log                                | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, subtype=$subtype, vsys=$vsys, evt.name=$eventid, object=$object, module=$module, severity=$severity, opaque="$opaque", seqno=$seqno, actionflags=$actionflags, vsys_name=$vsys_name, device_name=$device_name, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Correlated Events log                     | {% collapsible-section %}
     View payload
`timestamp=$time_generated, serial=$serial, type=$type, subtype=$subtype, time_generated=$time_generated, network.client.ip=$src, usr.id=$srcuser, vsys=$vsys, category=$category, severity=$severity, vsys_name=$vsys_name, device_name=$device_name, vsys_id=$vsys_id, objectname=$objectname, object_id=$object_id, evidence="$evidence"`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| GTP log                                   | {% collapsible-section %}
     View payload
`timestamp=$start, serial=$serial, type=$type, subtype=$subtype, network.client.ip=$src, network.destination.ip=$dst, rule=$rule, app=$app, vsys=$vsys, source_zone=$from, destination_zone=$to, inbound_if=$inbound_if, outbound_if=$outbound_if, logset=$logset, sessionid=$sessionid, network.client.port=$sport, network.destination.port=$dport, proto=$proto, evt.name=$action, event_type=$event_type, msisdn=$msisdn, apn=$apn, rat=$rat, msg_type=$msg_type, end_ip_adr=$end_ip_adr, teid1=$teid1, teid2=$teid2, gtp_interface=$gtp_interface, cause_code=$cause_code, severity=$severity, mcc=$mcc, mnc=$mnc, area_code=$area_code, cell_id=$cell_id, event_code=$event_code, srcloc=$srcloc, dstloc=$dstloc, imsi=$imsi, imei=$imei, start=$start, elapsed=$elapsed, tunnel_insp_rule=$tunnel_insp_rule, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Data Filtering log                        | {% collapsible-section %}
     View payload
`timestamp=$receive_time, serial=$serial, type=$type, subtype=$subtype, time_generated=$time_generated, network.client.ip=$src, network.destination.ip=$dst, natsrc=$natsrc, natdst=$natdst, rule=$rule, usr.id=$srcuser, dstuser=$dstuser, app=$app, vsys=$vsys, source_zone=$from, destination_zone=$to, inbound_if=$inbound_if, outbound_if=$outbound_if, logset=$logset, sessionid=$sessionid, repeatcnt=$repeatcnt, network.client.port=$sport, network.destination.port=$dport, natsport=$natsport, natdport=$natdport, flags=$flags, proto=$proto, evt.name=$action, misc=$misc, threatid="$threatid", category=$category, severity=$severity, direction=$direction, seqno=$seqno, actionflags=$actionflags, network.client.geoip.country.name=$srcloc, dstloc=$dstloc, contenttype=$contenttype, pcap_id=$pcap_id, filedigest=$filedigest, cloud=$cloud, url_idx=$url_idx, http.useragent="$user_agent", filetype=$filetype, xff=$xff, referer=$referer, sender=$sender, subject=$subject, recipient=$recipient, reportid=$reportid, vsys_name=$vsys_name, device_name=$device_name, src_uuid=$src_uuid, dst_uuid=$dst_uuid, http_method=$http_method, tunnel_id=$tunnel_id, imsi=$imsi, monitortag=$monitortag, imei=$imei, parent_session_id=$parent_session_id, parent_start_time=$parent_start_time, tunnel=$tunnel, thr_category=$thr_category, contentver=$contentver, assoc_id=$assoc_id, ppid=$ppid, http_headers=$http_headers, url_category_list=$url_category_list, rule_uuid=$rule_uuid, http2_connection=$http2_connection, dynusergroup_name=$dynusergroup_name, xff_ip=$xff_ip, src_osfamily=$src_osfamily, src_osversion=$src_osversion, src_host=$src_host, src_mac=$src_mac, dst_osfamily=$dst_osfamily, dst_osversion=$dst_osversion, dst_host=$dst_host, dst_mac=$dst_mac, container_id=$container_id, pod_namespace=$pod_namespace, pod_name=$pod_name, src_edl=$src_edl, dst_edl=$dst_edl, hostid=$hostid, serialnumber=$serialnumber, domain_edl=$domain_edl, src_dag=$src_dag, dst_dag=$dst_dag, partial_hash=$partial_hash, high_res_timestamp=$high_res_timestamp, reason=$reason, justification=$justification`
     {% /collapsible-section %} |
| URL Filtering log                         | {% collapsible-section %}
     View payload
`timestamp=$receive_time, serial=$serial, type=$type, subtype=$subtype, time_generated=$time_generated, network.client.ip=$src, network.destination.ip=$dst, natsrc=$natsrc, natdst=$natdst, rule=$rule, usr.id=$srcuser, dstuser=$dstuser, app=$app, vsys=$vsys, source_zone=$from, destination_zone=$to, inbound_if=$inbound_if, outbound_if=$outbound_if, logset=$logset, sessionid=$sessionid, repeatcnt=$repeatcnt, network.client.port=$sport, network.destination.port=$dport, natsport=$natsport, natdport=$natdport, flags=$flags, proto=$proto, evt.name=$action, misc=$misc, threatid="$threatid", category=$category, severity=$severity, direction=$direction, seqno=$seqno, actionflags=$actionflags, network.client.geoip.country.name=$srcloc, dstloc=$dstloc, contenttype=$contenttype, pcap_id=$pcap_id, filedigest=$filedigest, cloud=$cloud, url_idx=$url_idx, http.useragent="$user_agent", filetype=$filetype, xff=$xff, referer=$referer, sender=$sender, subject=$subject, recipient=$recipient, reportid=$reportid, vsys_name=$vsys_name, device_name=$device_name, src_uuid=$src_uuid, dst_uuid=$dst_uuid, http_method=$http_method, tunnel_id=$tunnel_id, imsi=$imsi, monitortag=$monitortag, imei=$imei, parent_session_id=$parent_session_id, parent_start_time=$parent_start_time, tunnel=$tunnel, thr_category=$thr_category, contentver=$contentver, assoc_id=$assoc_id, ppid=$ppid, http_headers=$http_headers, url_category_list=$url_category_list, rule_uuid=$rule_uuid, http2_connection=$http2_connection, dynusergroup_name=$dynusergroup_name, xff_ip=$xff_ip, src_osfamily=$src_osfamily, src_osversion=$src_osversion, src_host=$src_host, src_mac=$src_mac, dst_osfamily=$dst_osfamily, dst_osversion=$dst_osversion, dst_host=$dst_host, dst_mac=$dst_mac, container_id=$container_id, pod_namespace=$pod_namespace, pod_name=$pod_name, src_edl=$src_edl, dst_edl=$dst_edl, hostid=$hostid, serialnumber=$serialnumber, domain_edl=$domain_edl, src_dag=$src_dag, dst_dag=$dst_dag, partial_hash=$partial_hash, high_res_timestamp=$high_res_timestamp, reason=$reason, justification=$justification`
     {% /collapsible-section %} |
| GlobalProtect log                         | {% collapsible-section %}
     View payload
`timestamp=$receive_time, serial=$serial, type=$type, subtype=$subtype, time_generated=$time_generated, vsys=$vsys, evt.name=$eventid, stage=$stage, auth_method=$auth_method, tunnel_type=$tunnel_type, usr.id=$srcuser, srcregion=$srcregion, machinename=$machinename, public_ip=$public_ip, public_ipv6=$public_ipv6, private_ip=$private_ip, private_ipv6=$private_ipv6, hostid=$hostid, serialnumber=$serialnumber, client_ver=$client_ver, client_os=$client_os, client_os_ver="$client_os_ver", repeatcnt=$repeatcnt, reason=$reason, error="$error", opaque="$opaque", status=$status, location=$location, login_duration=$login_duration, connect_method=$connect_method, error_code=$error_code, portal=$portal, seqno=$seqno, actionflags=$actionflags, selection_type=$selection_type, response_time=$response_time, priority=$priority, attempted_gateways=$attempted_gateways, gateway=$gateway, dg_hier_level_1=$dg_hier_level_1, dg_hier_level_2=$dg_hier_level_2, dg_hier_level_3=$dg_hier_level_3, dg_hier_level_4=$dg_hier_level_4, vsys_name=$vsys_name, device_name=$device_name, vsys_id=$vsys_id, high_res_timestamp=$high_res_timestamp`
     {% /collapsible-section %}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

**Notes**:

   - The formats wrap free-text fields such as `threatid`, `http.useragent`, `opaque`, `path`, `before_change_detail`, `after_change_detail`, `error`, `message`, `client_os_ver`, and `evidence` in double quotes so that commas and `=` inside them parse correctly. The formats don't wrap `misc` because PAN-OS always encloses it in double quotes.
   - The pipeline uses `high_res_timestamp` as the log date because it's the only time field with a time zone offset. If your format doesn't include it or your PAN-OS version doesn't populate it, logs keep the time Datadog received them. PAN-OS doesn't provide `high_res_timestamp` for Correlated Events logs. The pipeline interprets `time_generated` and `timestamp` as UTC and uses them for `ocsf.time` when `high_res_timestamp` is missing.
   - The pipeline also parses formats copied from earlier versions of this page. In those formats, free-text values that aren't quoted can be cut off at a comma or a `key=value` pair. Update to the formats in the preceding table to parse those values in full.

1. Go to **Objects > Log Forwarding** and add a log forwarding profile that sends the log types you configured in step 4 to the syslog server profile. Attach the profile to your security policy rules. For system and configuration logs, select the server profile in **Device > Log Settings**.

1. [Restart the Agent](https://docs.datadoghq.com/agent/configuration/agent-commands.md#start-stop-and-restart-the-agent).

### Validation{% #validation %}

[Run the Agent's status subcommand](https://docs.datadoghq.com/agent/configuration/agent-commands.md#agent-status-and-information) and look for `pan_firewall` under the Checks section. Confirm that it reports no errors.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **pan_firewall.api.authentication.status**(gauge)             | Whether the API rejected the credentials (1 = invalid credentials, 0 = OK).                                                                                     |
| **pan_firewall.bgp.peer.connections.dropped**(count)          | BGP connections dropped. Sent only by the Advanced Routing Engine.*Shown as connection*                                                                         |
| **pan_firewall.bgp.peer.connections.established**(count)      | BGP connections established. Sent only by the Advanced Routing Engine.*Shown as connection*                                                                     |
| **pan_firewall.bgp.peer.prefix_limit**(gauge)                | Configured maximum prefixes. The Advanced Routing Engine reports a limit per address family (`afi_safi`); the legacy routing engine reports one limit per peer. |
| **pan_firewall.bgp.peer.prefix_limit.utilization**(gauge)    | Accepted prefixes as a percentage of the configured limit.*Shown as percent*                                                                                    |
| **pan_firewall.bgp.peer.prefixes.incoming.accepted**(gauge)   | Prefixes accepted from the peer.                                                                                                                                |
| **pan_firewall.bgp.peer.prefixes.incoming.rejected**(gauge)   | Prefixes rejected. Not sent by the Advanced Routing Engine.                                                                                                     |
| **pan_firewall.bgp.peer.prefixes.incoming.total**(gauge)      | Prefixes received. Not sent by the Advanced Routing Engine.                                                                                                     |
| **pan_firewall.bgp.peer.prefixes.outgoing.advertised**(gauge) | Prefixes advertised.                                                                                                                                            |
| **pan_firewall.bgp.peer.prefixes.outgoing.total**(gauge)      | Prefixes to send. Not sent by the Advanced Routing Engine.                                                                                                      |
| **pan_firewall.bgp.peer.restart**(gauge)                      | Whether the BGP peer came up in the last 30 minutes (1 = came up, 0 = did not come up).                                                                         |
| **pan_firewall.bgp.peer.status**(gauge)                       | Whether the BGP peer is established (1 = established, 0 = not established).                                                                                     |
| **pan_firewall.bgp.peer.status_duration**(gauge)             | Time in the current state.*Shown as second*                                                                                                                     |
| **pan_firewall.bgp.peer.updates.in**(count)                   | Update messages received.*Shown as message*                                                                                                                     |
| **pan_firewall.bgp.peer.updates.out**(count)                  | Update messages sent.*Shown as message*                                                                                                                         |
| **pan_firewall.can_connect**(gauge)                          | Whether the firewall API responded during the last check run (1 = responded, 0 = did not respond).                                                              |
| **pan_firewall.counter.global**(count)                        | Increase of the PAN-OS global counter, tagged by counter name, category, and aspect.                                                                            |
| **pan_firewall.dataplane.cpu.utilization**(gauge)             | Data-plane CPU utilization per core.*Shown as percent*                                                                                                          |
| **pan_firewall.disk.used_pct**(gauge)                        | Percentage of file system space used, reported every 30 minutes. Not sent for the `none`, `tmpfs`, or `cgroup_root` file systems.*Shown as percent*             |
| **pan_firewall.dropped_packets**(count)                      | Dropped packets by aspect. Known aspects report 0 when they have no drops. Other aspects, such as `mgmt`, are reported when present.*Shown as packet*           |
| **pan_firewall.ha.interface.rx.bytes**(count)                 | HA link bytes received.*Shown as byte*                                                                                                                          |
| **pan_firewall.ha.interface.rx.drops**(count)                 | HA link receive drops.*Shown as packet*                                                                                                                         |
| **pan_firewall.ha.interface.rx.errors**(count)                | HA link receive errors.*Shown as packet*                                                                                                                        |
| **pan_firewall.ha.interface.rx.packets**(count)               | HA link packets received.*Shown as packet*                                                                                                                      |
| **pan_firewall.ha.interface.tx.bytes**(count)                 | HA link bytes sent.*Shown as byte*                                                                                                                              |
| **pan_firewall.ha.interface.tx.packets**(count)               | HA link packets sent.*Shown as packet*                                                                                                                          |
| **pan_firewall.interface.attack.ip_spoof**(count)            | IP-spoofed packets.*Shown as packet*                                                                                                                            |
| **pan_firewall.interface.attack.land**(count)                 | LAND attack packets.*Shown as packet*                                                                                                                           |
| **pan_firewall.interface.attack.mac_spoof**(count)           | MAC-spoofed packets.*Shown as packet*                                                                                                                           |
| **pan_firewall.interface.attack.ping_of_death**(count)      | Ping-of-death packets.*Shown as packet*                                                                                                                         |
| **pan_firewall.interface.attack.teardrop**(count)             | Teardrop packets.*Shown as packet*                                                                                                                              |
| **pan_firewall.interface.flow_state**(count)                 | Packets dropped by flow state check.*Shown as packet*                                                                                                           |
| **pan_firewall.interface.forward_errors**(count)             | Forwarding errors.*Shown as packet*                                                                                                                             |
| **pan_firewall.interface.rx.bytes**(count)                    | Bytes received.*Shown as byte*                                                                                                                                  |
| **pan_firewall.interface.rx.drops**(count)                    | Receive drops.*Shown as packet*                                                                                                                                 |
| **pan_firewall.interface.rx.errors**(count)                   | Receive errors.*Shown as packet*                                                                                                                                |
| **pan_firewall.interface.rx.packets**(count)                  | Packets received.*Shown as packet*                                                                                                                              |
| **pan_firewall.interface.speed**(gauge)                       | Interface speed, reported every 30 minutes. Not sent when the speed is `ukn` or `[n/a]`.*Shown as bit*                                                          |
| **pan_firewall.interface.tx.bytes**(count)                    | Bytes sent.*Shown as byte*                                                                                                                                      |
| **pan_firewall.interface.tx.packets**(count)                  | Packets sent.*Shown as packet*                                                                                                                                  |
| **pan_firewall.ipsec.gateways.total**(gauge)                  | IKE gateways configured.                                                                                                                                        |
| **pan_firewall.ipsec.tunnel.rx.bytes**(count)                 | Bytes received through the IPsec tunnel.*Shown as byte*                                                                                                         |
| **pan_firewall.ipsec.tunnel.rx.packets**(count)               | Packets received through the IPsec tunnel.*Shown as packet*                                                                                                     |
| **pan_firewall.ipsec.tunnel.state**(gauge)                    | IPsec tunnel state (0 = inactive, 1 = active, 2 = initializing). Unknown states are not sent.                                                                   |
| **pan_firewall.ipsec.tunnel.tx.bytes**(count)                 | Bytes sent through the IPsec tunnel.*Shown as byte*                                                                                                             |
| **pan_firewall.ipsec.tunnel.tx.packets**(count)               | Packets sent through the IPsec tunnel.*Shown as packet*                                                                                                         |
| **pan_firewall.ipsec.tunnels.active**(gauge)                  | Tunnels active.                                                                                                                                                 |
| **pan_firewall.ipsec.tunnels.inactive**(gauge)                | Tunnels inactive.                                                                                                                                               |
| **pan_firewall.ipsec.tunnels.init**(gauge)                    | Tunnels initializing.                                                                                                                                           |
| **pan_firewall.ipsec.tunnels.total**(gauge)                   | IPsec tunnels configured.                                                                                                                                       |
| **pan_firewall.license.days_left**(gauge)                    | Days until the license expires, reported every 24 hours. Not sent for perpetual or expired licenses.*Shown as day*                                              |
| **pan_firewall.license.expired**(gauge)                       | Whether the license has expired (1 = expired, 0 = not expired), reported every 24 hours.                                                                        |
| **pan_firewall.mgmt.cpu.hardirq**(gauge)                      | Management-plane CPU, hardware interrupts.*Shown as percent*                                                                                                    |
| **pan_firewall.mgmt.cpu.idle**(gauge)                         | Management-plane CPU, idle.*Shown as percent*                                                                                                                   |
| **pan_firewall.mgmt.cpu.iowait**(gauge)                       | Management-plane CPU, I/O wait.*Shown as percent*                                                                                                               |
| **pan_firewall.mgmt.cpu.nice**(gauge)                         | Management-plane CPU, nice.*Shown as percent*                                                                                                                   |
| **pan_firewall.mgmt.cpu.softirq**(gauge)                      | Management-plane CPU, software interrupts.*Shown as percent*                                                                                                    |
| **pan_firewall.mgmt.cpu.steal**(gauge)                        | CPU stolen by the hypervisor (VM-Series).*Shown as percent*                                                                                                     |
| **pan_firewall.mgmt.cpu.system**(gauge)                       | Management-plane CPU, system.*Shown as percent*                                                                                                                 |
| **pan_firewall.mgmt.cpu.used**(gauge)                         | Management-plane CPU used.*Shown as percent*                                                                                                                    |
| **pan_firewall.mgmt.cpu.user**(gauge)                         | Management-plane CPU, user.*Shown as percent*                                                                                                                   |
| **pan_firewall.mgmt.memory.available**(gauge)                 | Memory available for new processes without swapping.*Shown as byte*                                                                                             |
| **pan_firewall.mgmt.memory.buff_cache**(gauge)               | Buffers and cache.*Shown as byte*                                                                                                                               |
| **pan_firewall.mgmt.memory.free**(gauge)                      | Free memory.*Shown as byte*                                                                                                                                     |
| **pan_firewall.mgmt.memory.total**(gauge)                     | Total memory.*Shown as byte*                                                                                                                                    |
| **pan_firewall.mgmt.memory.used**(gauge)                      | Used memory.*Shown as byte*                                                                                                                                     |
| **pan_firewall.mgmt.memory.used_pct**(gauge)                 | Percentage of management-plane memory in use.*Shown as percent*                                                                                                 |
| **pan_firewall.mgmt.swap.free**(gauge)                        | Free swap.*Shown as byte*                                                                                                                                       |
| **pan_firewall.mgmt.swap.total**(gauge)                       | Total swap.*Shown as byte*                                                                                                                                      |
| **pan_firewall.mgmt.swap.used**(gauge)                        | Used swap.*Shown as byte*                                                                                                                                       |
| **pan_firewall.mgmt.swap.used_pct**(gauge)                   | Percentage of management-plane swap in use.*Shown as percent*                                                                                                   |
| **pan_firewall.ospf.neighbor.state_changes**(count)          | OSPF neighbor state changes. Sent only by the Advanced Routing Engine.                                                                                          |
| **pan_firewall.ospf.neighbor.status**(gauge)                  | Whether the OSPF neighbor is in the `full` state (1 = full, 0 = not full).                                                                                      |
| **pan_firewall.panorama.can_connect**(gauge)                 | Whether the Panorama discovery call succeeded (1 = succeeded, 0 = failed).                                                                                      |
| **pan_firewall.power.alarm**(gauge)                           | Whether the power sensor is in alarm, regardless of direction (1 = in alarm, 0 = not in alarm).                                                                 |
| **pan_firewall.power.alarm.high**(gauge)                      | Whether the power sensor is in alarm above the maximum (1 = in alarm, 0 = not in alarm).                                                                        |
| **pan_firewall.power.alarm.low**(gauge)                       | Whether the power sensor is in alarm below the minimum (1 = in alarm, 0 = not in alarm).                                                                        |
| **pan_firewall.power.voltage**(gauge)                         | Current voltage.*Shown as volt*                                                                                                                                 |
| **pan_firewall.power.voltage.max**(gauge)                     | Maximum voltage threshold.*Shown as volt*                                                                                                                       |
| **pan_firewall.power.voltage.min**(gauge)                     | Minimum voltage threshold.*Shown as volt*                                                                                                                       |
| **pan_firewall.report.top.bytes**(gauge)                      | Traffic in the last 24 hours, reported every 30 minutes.*Shown as byte*                                                                                         |
| **pan_firewall.report.top.bytes_per_session**(gauge)        | Average traffic per session, reported every 30 minutes.*Shown as byte*                                                                                          |
| **pan_firewall.report.top.sessions**(gauge)                   | Sessions in the last 24 hours, reported every 30 minutes.*Shown as session*                                                                                     |
| **pan_firewall.security_rule.hits**(count)                   | Hits per security rule.*Shown as hit*                                                                                                                           |
| **pan_firewall.temperature.alarm**(gauge)                     | Whether the temperature sensor is in alarm (1 = in alarm, 0 = not in alarm).                                                                                    |
| **pan_firewall.temperature.current**(gauge)                   | Current temperature.*Shown as degree celsius*                                                                                                                   |
| **pan_firewall.temperature.max**(gauge)                       | Maximum threshold.*Shown as degree celsius*                                                                                                                     |
| **pan_firewall.temperature.min**(gauge)                       | Minimum threshold.*Shown as degree celsius*                                                                                                                     |

The check collects metrics on different schedules and submits each gauge only when its collection runs, so a gauge series has one point per collection interval. Set monitor evaluation windows to at least the interval for the metric:

- Every 2 minutes: BGP peer metrics, data-plane CPU utilization, `pan_firewall.can_connect`, and `pan_firewall.api.authentication.status`
- Every 3 minutes: interface counters, IPsec tunnel metrics, HA link metrics, security rule hits, global counters, OSPF neighbor metrics, and management-plane CPU, memory, and swap usage
- Every 5 minutes: power and temperature sensors
- Every 30 minutes: disk usage, interface speed, and top-N report metrics
- Every 24 hours: license days left and expiration

With Panorama discovery, the check sends `pan_firewall.panorama.can_connect` on every run.

If a collection fails, the check retries it within 5 minutes. Collection pauses for up to 10 minutes while the firewall runs a commit or a content, antivirus, or WildFire update, so expect gaps of that length.

### Logs{% #logs %}

The Palo Alto Networks Firewall integration collects the logs that PAN-OS forwards through syslog, as described in [Configure syslog monitoring](https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/monitoring/use-syslog-for-monitoring/configure-syslog-monitoring) in the PAN-OS documentation. See Log collection for setup.

### Events{% #events %}

The Palo Alto Networks Firewall integration does not include any events.

### Service Checks{% #service-checks %}

The Palo Alto Networks Firewall integration does not include any service checks.

## Troubleshooting{% #troubleshooting %}

If `pan_firewall.api.authentication.status` is `1`, the firewall rejected the username and password or the API key in the matching `firewall_credentials` entry. Check them, and check that the firewall has not locked the account.

If the status is `0` but metrics are missing, the role probably lacks a permission. Check the Agent logs for `not authorized for user role`, and enable **Operational Requests**, and **Report** if `collect_reports` is `true`.

If `pan_firewall.can_connect` is `0`, the Agent cannot reach the firewall or the firewall rejected the connection.

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).

## Further Reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Palo Alto Networks Firewall documentation](https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-admin/monitoring/use-syslog-for-monitoring/syslog-field-descriptions)
- [Log Collection and Integrations](https://docs.datadoghq.com/logs/log_collection.md?tab=tailexistingfiles#getting-started-with-the-agent)
