Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

API: how to iterate to get logs page by page?

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

API: how to iterate to get logs page by page?

L0 Member

I am trying to retrieve large amounts of logs from panorama via the api.  

 

The log api uses an asynchronous API.  I have the initial request which includes the search criteria  and returns the `jobid` working and can get the first batch of logs back (max 5000) but I can't figure out how to make subsequent calls to get the rest.

The `get` request returns a job section at the start of the results:

    {"job"=>
      {"tenq"=>"13:03:30",
       "tdeq"=>"13:03:30",
       "tlast"=>"12:00:00",
       "status"=>"FIN",
       "id"=>"9315",
       "cached_logs"=>"220"},

What are the times here?  can I use these to make subsequent request?

 

Better yet is there a document that show how to chain request to retrieve large amounts of logs?

0 REPLIES 0
  • 597 Views
  • 0 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!