Object xpath in PanOS config logs

Reply
Highlighted
L3 Networker

Object xpath in PanOS config logs

In the PanOS GUI under Config logs there is column "Full Path", which shows the full xpath of the edited objects. However the "Full Path" is not part of the actual syslog Config message and I also can't find a customer "Full Path" field in the Custom Log format fields. 

 

2020-11-18_13-57-39.jpg

 

Do you know how can we add it to the syslog messages? 

Highlighted
Cyber Elite

@batd2,

The default syslog message should include the path to what was modified, but if you have customized this you would need to add the $path variable. 

Highlighted
L3 Networker

@BPry The config log message has the path in format "device-group dg_name address", but not the actual xpath. You get the same from the "$path" variable. 

The full xpath is showing in the GUI and I was wondering if anyone know of way of also having it in the config syslog. 

Using the full xpath would make a big difference when automating log search queries. 

Highlighted
Cyber Elite

@batd2,

Ya, I read that question way too quickly. The only syslog fields that will display the actual xpath is $before_change_detail and $after_change_detail. 

Highlighted
L0 Member

Use the full xpath would make a big difference when automating log search queries myPennMedicine Login

Highlighted
L3 Networker

@BPry $before_change_detail and $after_change_detail do not show the actual xpath

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!