2012-11-30 04:05 PM
Can anybody give me a sample request to export the packets for specific sessions using the Rest API?
2012-12-05 02:40 PM
In action this looks something like this:
curl --user <user>:<password> -o <outputfilename> --data "render=pcap&sessions=<sessionid>" 'http://<device>:<port>/sdk/packets'
2012-12-02 05:19 PM
2012-12-05 02:40 PM
In action this looks something like this:
curl --user <user>:<password> -o <outputfilename> --data "render=pcap&sessions=<sessionid>" 'http://<device>:<port>/sdk/packets'
2012-12-07 07:50 AM
Awesome information! Could you also provide an example to extract log data from NWFL using the REST API?
I'm looking to extract syslog data from NWFL and use this later in testing to verify content using NwLogPlayer.
2012-12-07 12:11 PM
The call REST endpoint is the same /sdk/packets but I believe you need to use ?render=logs as default is render=pcap.
If you connect to a log decoder with a browser (not IE) you will see the option.
Hope that helps!
Message was edited by: Rui A - Original answer was correct, nothing to add
2012-12-07 03:38 PM
Thanks a lot for your response.
I will give that a shot on Monday.
Regards,
John