05-01-2013 06:41 AM
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?
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.
$ curl -i -d "apikey=$KEY" -d device_id=00xxx -d report_id=247406568 https://wildfire.paloaltonetworks.com/publicapi/report
HTTP/1.1 200 OK
Date: Sat, 13 Jul 2013 00:23:43 GMT
Content-Type: text/xml; charset=utf-8
07-12-2013 06:29 PM
It worked as expected!
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!