Configuration change logging options

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configuration change logging options

L0 Member

Hi all,

We'd like to implement some detailed config change logging from the PA device, preferably using the API.

Ideally, it would contain some/most/all of the fields seen in Monitoring->Logs->Configuration.

While we currently have syslog setup which records most of what we need, the above "Before Change" and "After Change" diff comparison would be advantageous.

Our suspicion is that the granularity of the logging seen in the above-mentioned location is an internal thing and not exportable  (other than actually exporting via the CSV file mentioned on the page, but to do this in an automated fashion would require screen-scraping, etc..).  I have looked at the REST API reference, but cannot find a path that enables us to do what we're after.

Any advice welcome!

thanks

1 REPLY 1

L5 Sessionator

Here's what I got.

[Query]

## 100 logs (nglos) in this case. Replace "APIKEY".

https://hostname/api/?type=log&log-type=config&nlogs=100&key=APIKEY

<response status="success" code="19">

<result>

<msg>

<line>query job enqueued with jobid 596</line>

</msg>

<job>596</job>

</result>

</response>

[Retrieve logs]

## job-id 596 is from the output above.

https://hostname/api?/type=log&action=get&job-id=596&key=APIKEY

:

:

<before-change-preview>

radmin { permissions { role-based { superuser yes; } } }

</before-change-preview>

<after-change-preview>

radmin { permissions { role-based { custom { profile testrole; }

</after-change-preview>

:

- Yasu

  • 2075 Views
  • 1 replies
  • 0 Likes
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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!