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. |
Recommended For You
Recommended Videos
Recommended videos not found.