05-01-2013 06:41 AM
Hello,
I have been looking at the RESTful XML API in order to retrieve logs, and have noticed that the API returns traffic and threat logs, but it does not return wildfire logs.
To retrieve threat logs I provide type=logs and log-type=threat as parameters.
Wildfire logs show up with type=THREAT and subType=wildfire when retrieved through syslog. Shouldn't they then be return similarly through the REST API?
Thanks!
07-12-2013 05:32 PM
you are missing the apikey. I use -d in the below because you don't need a multipart/form-data request, but -F will work also.
KEY=xxx
$ curl -i -d "apikey=$KEY" -d device_id=00xxx -d report_id=247406568 https://wildfire.paloaltonetworks.com/publicapi/report
HTTP/1.1 200 OK
Server: nginx/1.0.9
Date: Sat, 13 Jul 2013 00:23:43 GMT
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.6
<wildfire>
<report>
<version>0.1</version>
<task>353397118</task>
<sha256>8122940e894a0dafa2fc75310909d83646dfdea2e30845511c1dc697be7b779c</sha256>
<md5>eadf7415867bfaa3dc4c34c1016f6440</md5>
<size>707120</size>
<malware>yes</malware>
07-12-2013 06:29 PM
It worked as expected!
Thank you,
Takahiro
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!