API Log Retrieval Parameters
Table of Contents
9.1 (EoL)
Expand all | Collapse all
-
- Upgrade a Firewall to the Latest PAN-OS Version (API)
- Show and Manage GlobalProtect Users (API)
- Query a Firewall from Panorama (API)
- Upgrade PAN-OS on Multiple HA Firewalls through Panorama (API)
- Automatically Check for and Install Content Updates (API)
- Enforce Policy using External Dynamic Lists and AutoFocus Artifacts (API)
- Configure SAML 2.0 Authentication (API)
-
- Asynchronous and Synchronous Requests to the PAN-OS XML API
- Run Operational Mode Commands (API)
- Apply User-ID Mapping and Populate Dynamic Groups (API)
- Get Version Info (API)
-
- PAN-OS REST API
- Access the PAN-OS REST API
- Resource Methods and Query Parameters (REST API)
- PAN-OS REST API Request and Response Structure
- PAN-OS REST API Error Codes
- Work With Objects (REST API)
- Create a Security Policy Rule (REST API)
- Work with Policy Rules on Panorama (REST API)
- Create a Tag (REST API)
- Configure a Security Zone (REST API)
- Configure an SD-WAN Interface (REST API)
- Create an SD-WAN Policy Pre Rule (REST API)
End-of-Life (EoL)
API Log Retrieval Parameters
Specify the log type with additional optional parameters
to retrieve logs from a firewall.
Parameter | Description |
---|---|
log-type | The type of logs to retrieve:
|
query | (Optional) Specify the match criteria
for the logs. This is similar to the query provided in the web interface
under the Monitor tab when viewing the logs. The query must be URL
encoded. |
nlogs | (Optional) Specify the number of
logs to retrieve. The default is 20 when the parameter is not specified.
The maximum is 5000. |
skip | (Optional) Specify the number of
logs to skip when doing a log retrieval. The default is 0. This
is useful when retrieving logs in batches where you can skip the
previously retrieved logs. |
dir | (Optional) Specify whether logs
are shown oldest first (forward) or newest
first (backward). Default is backward. |
action | (Optional) Log data sizes can be
large so the API uses an asynchronous job scheduling approach to
retrieve log data. The initial query returns a Job ID (job-id)
that you can then use for future queries with the action parameter:
Learn
more about Asynchronous
and Synchronous Requests to the PAN-OS XML API. |