Retrieving logs from PA device via Panorama 6.x XML API

Reply
L0 Member

Retrieving logs from PA device via Panorama 6.x XML API

Hello,

When I login to my PA device via ssh and run the command

show log config result equal succeeded

I get list of records.

I would like to get the exact same result but via Panorama XML API.

I tried:

https://panorama/api/?type=op&cmd=<show><log><config></config></log></show>&target=serialnumber&key=mykey

But I get:

 

<response status="error">
<msg>
<line>invalid client cli</line>
</msg>
</response>

How can I use the XML API in Panorama to retrieve the logs from managed device?

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!