<?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 Skip Value to Large Error from XML API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/skip-value-to-large-error-from-xml-api/m-p/66444#M1173</link>
    <description>&lt;P&gt;I am retrieving URL log entries via the XML API. I can successfully get logs when I skip none, but when I try to skip a larger number (for example, 5000), the firewall replies with error 17 "skip value too large".&lt;BR /&gt;&amp;lt;response status="error" code="17"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;skip value too large&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;&lt;BR /&gt;There is no limit according to the Retrieving Logs section of the PAN-OS XML API Usage Guide (section 2.8) - and it seems implied that you can use this to retrieve additional sets of logs (since the max number of logs is limited to 5000).&lt;BR /&gt;&lt;BR /&gt;An example of the HTTP request I use is:&lt;BR /&gt;&lt;A href="https://hostname/api/?type=log&amp;amp;key=changeme&amp;amp;log-type=url&amp;amp;query=" target="_blank"&gt;https://hostname/api/?type=log&amp;amp;key=changeme&amp;amp;log-type=url&amp;amp;query=&lt;/A&gt;((action+eq+block-url)+or+(action+eq+block-continue)+or+(action+eq+alert))+and+(receive_time+geq+'2015%2F10%2F05+00%3A00%3A00')+and+(receive_time+leq+'2015%2F10%2F06+00%3A00%3A00')&amp;amp;nlogs=4999&amp;amp;skip=4999&lt;BR /&gt;&lt;BR /&gt;As far as I can tell, I am using the skip parameter - is there a bug with the API, or am I using the skip value incorrectly? I need a way to pull the logs into my script (without having to manually download them into CSV).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I did some experimentation to figure out where the exact cutoff point is for the skip value - it appears to be occurring when the skip value hits 1102.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2015 15:21:39 GMT</pubDate>
    <dc:creator>edavis33</dc:creator>
    <dc:date>2015-10-14T15:21:39Z</dc:date>
    <item>
      <title>Skip Value to Large Error from XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/skip-value-to-large-error-from-xml-api/m-p/66444#M1173</link>
      <description>&lt;P&gt;I am retrieving URL log entries via the XML API. I can successfully get logs when I skip none, but when I try to skip a larger number (for example, 5000), the firewall replies with error 17 "skip value too large".&lt;BR /&gt;&amp;lt;response status="error" code="17"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;skip value too large&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;&lt;BR /&gt;There is no limit according to the Retrieving Logs section of the PAN-OS XML API Usage Guide (section 2.8) - and it seems implied that you can use this to retrieve additional sets of logs (since the max number of logs is limited to 5000).&lt;BR /&gt;&lt;BR /&gt;An example of the HTTP request I use is:&lt;BR /&gt;&lt;A href="https://hostname/api/?type=log&amp;amp;key=changeme&amp;amp;log-type=url&amp;amp;query=" target="_blank"&gt;https://hostname/api/?type=log&amp;amp;key=changeme&amp;amp;log-type=url&amp;amp;query=&lt;/A&gt;((action+eq+block-url)+or+(action+eq+block-continue)+or+(action+eq+alert))+and+(receive_time+geq+'2015%2F10%2F05+00%3A00%3A00')+and+(receive_time+leq+'2015%2F10%2F06+00%3A00%3A00')&amp;amp;nlogs=4999&amp;amp;skip=4999&lt;BR /&gt;&lt;BR /&gt;As far as I can tell, I am using the skip parameter - is there a bug with the API, or am I using the skip value incorrectly? I need a way to pull the logs into my script (without having to manually download them into CSV).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I did some experimentation to figure out where the exact cutoff point is for the skip value - it appears to be occurring when the skip value hits 1102.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 15:21:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/skip-value-to-large-error-from-xml-api/m-p/66444#M1173</guid>
      <dc:creator>edavis33</dc:creator>
      <dc:date>2015-10-14T15:21:39Z</dc:date>
    </item>
  </channel>
</rss>

