Expand all | Collapse all
Logging Behavior
Logging Behavior for the PAN-OS OpenConfig Models.
Review the
YANG model before using the openconfig-bgp
model to familiarize yourself with supported paths.
When using the logging model with PAN-OS, you can either use predefined or
custom filters for you logging queries. You can use several custom filters defined in
the YANG model such as:
Type
Direction
From_time
To_time
Period
Full_Query
Max_Logs
Query_str
In addition to the filters, you can send you can use the
data_push_url
option to send the query to an external endpoint.
You can build query strings in the user interface and apply them to the OpenConfig
logging queries, see:
Filter Logs.
Below is an example of formats you can use to filter custom logging queries:
"pan/logging/query/custom[type=system][direction=fwd][max_logs=2][period=last-24-hrs]"
"pan/logging/query/custom[type=system][direction=fwd][max_logs=2][query_str=\'severity eq critical\'][from_time=t1][to_time=t2]"
"pan/logging/query/custom[type=system][direction=fwd][max_logs=2][query_str=\'severity eq critical\'][from_time=\'2023/04/20@00:11:29\'][to_time=\'2023/04/20@01:12:29\']"
"pan/logging/query/custom[full_query=-t system -n 5][data_push_url="example.com"]
Predefined queries can be found in the YANG model, for example:
"pan/logging/query/predefined/system_logs_vpn_and_dpd_15_min"