<?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: RESTful API and getting log data in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/restful-api-and-getting-log-data/m-p/2782#M63</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback on the API. We will considers these ideas as  &lt;/P&gt;&lt;P&gt;we enhance the API in future releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for options to perform similar function today, there are a couple  &lt;/P&gt;&lt;P&gt;of options for getting logs off of the device in a programmatic way.  &lt;/P&gt;&lt;P&gt;The most real-time method is to use the syslog forwarding function  &lt;/P&gt;&lt;P&gt;which will forward all specified logs as they come in. If you want a  &lt;/P&gt;&lt;P&gt;less real-time approach, you can use the scheduled log export function  &lt;/P&gt;&lt;P&gt;which will connect to an FTP server once a day and dump any logs for  &lt;/P&gt;&lt;P&gt;the previous day in a CSV file format. Alternatively, you can use the  &lt;/P&gt;&lt;P&gt;CLI command "scp|ftp export log traffic|data|threat|url unexported- &lt;/P&gt;&lt;P&gt;only equal yes ..." The system internally marks the logs that have  &lt;/P&gt;&lt;P&gt;been exported to ensure you don't miss any logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2009 16:10:09 GMT</pubDate>
    <dc:creator>mjacobsen</dc:creator>
    <dc:date>2009-10-22T16:10:09Z</dc:date>
    <item>
      <title>RESTful API and getting log data</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/restful-api-and-getting-log-data/m-p/2781#M62</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; color: #333333;"&gt;Getting the data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have been researching a way to get threat logs from the system using the RESTful API as a carrier. It seems you can access reports and configuration this way but not the "raw" logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "raw" logs are accessable through the CLI it seems, for instance you can get data by issuing this command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show log threat csv-output equal yes start-time 2009/10/22@10:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be great if you could get this same output through the RESTful API aswell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Proposal "uniqe-log-row-id"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When getting data from the logs you are able to restrict the output to alot of different things like source, dest, application, etc, etc. When implementing some kind of automated log-retrieval system i would be really cool if each log-row had an uniqe ID and you could place the following command to the CLI (or RESTful API)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show log threat csv-output equal yes since-id equal &amp;lt;unique-id&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would allow a system to uninterrupted get data from the device even if the retrieval application goes offline for awhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to solve problem 1 or 2 with the features that are available now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 09:47:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/restful-api-and-getting-log-data/m-p/2781#M62</guid>
      <dc:creator>u2521</dc:creator>
      <dc:date>2009-10-22T09:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: RESTful API and getting log data</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/restful-api-and-getting-log-data/m-p/2782#M63</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback on the API. We will considers these ideas as  &lt;/P&gt;&lt;P&gt;we enhance the API in future releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for options to perform similar function today, there are a couple  &lt;/P&gt;&lt;P&gt;of options for getting logs off of the device in a programmatic way.  &lt;/P&gt;&lt;P&gt;The most real-time method is to use the syslog forwarding function  &lt;/P&gt;&lt;P&gt;which will forward all specified logs as they come in. If you want a  &lt;/P&gt;&lt;P&gt;less real-time approach, you can use the scheduled log export function  &lt;/P&gt;&lt;P&gt;which will connect to an FTP server once a day and dump any logs for  &lt;/P&gt;&lt;P&gt;the previous day in a CSV file format. Alternatively, you can use the  &lt;/P&gt;&lt;P&gt;CLI command "scp|ftp export log traffic|data|threat|url unexported- &lt;/P&gt;&lt;P&gt;only equal yes ..." The system internally marks the logs that have  &lt;/P&gt;&lt;P&gt;been exported to ensure you don't miss any logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 16:10:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/restful-api-and-getting-log-data/m-p/2782#M63</guid>
      <dc:creator>mjacobsen</dc:creator>
      <dc:date>2009-10-22T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: RESTful API and getting log data</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/restful-api-and-getting-log-data/m-p/2783#M64</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We would not like to use syslog since that protocol does not have any security in it, if a link goes down we will lose data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ftp and scp export command in the cli are good, but as you say they are hard-to-use for realtime operations. Do you know if there is a say to send command to the cli directly just like you can with normal ssh shells like bash?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ssh user@box "ls -la /"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you could do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ssh user@box "&amp;lt;command for outputting a specified amount of logdata to STDOUT&amp;gt;" This would make a pretty good say to pull logs from the machine using for instance a python script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the best way would be access to logs using the REST api.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 12:18:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/restful-api-and-getting-log-data/m-p/2783#M64</guid>
      <dc:creator>u2521</dc:creator>
      <dc:date>2010-02-04T12:18:50Z</dc:date>
    </item>
  </channel>
</rss>

