<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Panorama API not retrieving some older logs in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-api-not-retrieving-some-older-logs/m-p/430789#M2770</link>
    <description>&lt;P&gt;I'm working on a script to pull logs from our firewall, and noticed that I'm unable to grab logs more than couple days ago from the current date. For example, I can see logs in the UI for a specific domain on 8/20, but querying with the API won't yield results that far back. Even when adding (time_generated leq 'some date here') to the query, it doesn't pull any results. Is there something I am missing regarding API settings in the firewall, or does the logging API not go back that far?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 16:06:40 GMT</pubDate>
    <dc:creator>Stromboni</dc:creator>
    <dc:date>2021-09-01T16:06:40Z</dc:date>
    <item>
      <title>Panorama API not retrieving some older logs</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-api-not-retrieving-some-older-logs/m-p/430789#M2770</link>
      <description>&lt;P&gt;I'm working on a script to pull logs from our firewall, and noticed that I'm unable to grab logs more than couple days ago from the current date. For example, I can see logs in the UI for a specific domain on 8/20, but querying with the API won't yield results that far back. Even when adding (time_generated leq 'some date here') to the query, it doesn't pull any results. Is there something I am missing regarding API settings in the firewall, or does the logging API not go back that far?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:06:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-api-not-retrieving-some-older-logs/m-p/430789#M2770</guid>
      <dc:creator>Stromboni</dc:creator>
      <dc:date>2021-09-01T16:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Panorama API not retrieving some older logs</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-api-not-retrieving-some-older-logs/m-p/430800#M2771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/192471"&gt;@Stromboni&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In a lab Panorama, I just did:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api?key={{key}}&amp;amp;type=log&amp;amp;log-type=traffic&amp;amp;query=( time_generated leq '2021/08/20 17:12:33' )&lt;/LI-CODE&gt;
&lt;P&gt;...then retrieved logs with:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api?type=log&amp;amp;action=get&amp;amp;key={{key}}&amp;amp;job-id={{job-id}}&lt;/LI-CODE&gt;
&lt;P&gt;...and got the expected logs. I was using Postman for the API calls, with Panorama 10.0.6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can share the API calls you are using?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:33:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-api-not-retrieving-some-older-logs/m-p/430800#M2771</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2021-09-01T16:33:25Z</dc:date>
    </item>
  </channel>
</rss>

