<?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 Re: API log export hard-coded to a 20 entry limit? in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-log-export-hard-coded-to-a-20-entry-limit/m-p/18297#M476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;20 is the default, but this is customizable up to 5000 using nlogs.&amp;nbsp; Use the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;firewall&amp;gt;/api/?type=log&amp;amp;log-type=&amp;lt;type&amp;gt;&amp;amp;nlogs=&amp;lt;number of logs to return&amp;gt;&amp;amp;query=&amp;lt;URL encoded query parameters&amp;gt;&amp;amp;key=&amp;lt;API key&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use additional modifiers outlined in the API guide to start 5000 logs back and pull the previous 5000 logs.&amp;nbsp; You can continue doing this until all of the logs of interest are pulled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 07:08:19 GMT</pubDate>
    <dc:creator>dward</dc:creator>
    <dc:date>2014-01-22T07:08:19Z</dc:date>
    <item>
      <title>API log export hard-coded to a 20 entry limit?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-log-export-hard-coded-to-a-20-entry-limit/m-p/18296#M475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In panorama 5.1.5 code, I'm attempting to pull down traffic logs for analysis of application type vs rule.&amp;nbsp; My query is structured like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://10.x.x.240/api/?type=log&amp;amp;log-type=traffic&amp;amp;query=%28%20receive_time%20geq%20%272012/12/31%2008:00:00%27%29&amp;amp;key=mykeyhere" title="https://10.x.x.240/api/?type=log&amp;amp;log-type=traffic&amp;amp;query=%28%20receive_time%20geq%20%272012/12/31%2008:00:00%27%29&amp;amp;key=mykeyhere"&gt;https://10.x.x.240/api/?type=log&amp;amp;log-type=traffic&amp;amp;query=%28%20receive_time%20geq%20%272012/12/31%2008:00:00%27%29&amp;amp;key=my…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which gives me a success return, along with "query job enqueued with jobid 181"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I query the results using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://10.x.x.240/api/?type=log&amp;amp;action=get&amp;amp;job-id=181&amp;amp;key=mykeyhere" title="https://10.x.x.240/api/?type=log&amp;amp;action=get&amp;amp;job-id=181&amp;amp;key=mykeyhere"&gt;https://10.x.x.240/api/?type=log&amp;amp;action=get&amp;amp;job-id=181&amp;amp;key=mykeyhere&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm only getting 20 results - although there are many, many more entries in the logs.&amp;nbsp; Is this a hard-coded limit on results?&amp;nbsp; Is there a way around it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 00:52:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-log-export-hard-coded-to-a-20-entry-limit/m-p/18296#M475</guid>
      <dc:creator>cevans2</dc:creator>
      <dc:date>2014-01-22T00:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: API log export hard-coded to a 20 entry limit?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-log-export-hard-coded-to-a-20-entry-limit/m-p/18297#M476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;20 is the default, but this is customizable up to 5000 using nlogs.&amp;nbsp; Use the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;firewall&amp;gt;/api/?type=log&amp;amp;log-type=&amp;lt;type&amp;gt;&amp;amp;nlogs=&amp;lt;number of logs to return&amp;gt;&amp;amp;query=&amp;lt;URL encoded query parameters&amp;gt;&amp;amp;key=&amp;lt;API key&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use additional modifiers outlined in the API guide to start 5000 logs back and pull the previous 5000 logs.&amp;nbsp; You can continue doing this until all of the logs of interest are pulled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 07:08:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-log-export-hard-coded-to-a-20-entry-limit/m-p/18297#M476</guid>
      <dc:creator>dward</dc:creator>
      <dc:date>2014-01-22T07:08:19Z</dc:date>
    </item>
  </channel>
</rss>

