Hi,
Thanks for your query.
As per the HP VAN SDN Controller REST API Guide.pdf[page 28] ,Response Code 200 is OK i.e. Normal. For Log REST API Response data is an application/octet stream of the zip file containing the controller(s)'s logs.
Here API is running fine (since Response Code 200) . Since response data is an application/octet stream so there is some “unable to parse as json” message.
The preferred way to get the logs would be through the GUI (See attached screenshot).
Another way would be to directly use curl command and redirect output using linux “>” command as follows:
curl --noproxy [Controller IP] --header "X-Auth-Token:[Auth-Token-Value]" --fail -ksS -L –f --request GET --url "https://[Controller IP]/sdn/v2.0/logs/local" > logs.zip
'Please let us know if this answers your question by marking this response as an 'accepted solution’ or if it has been helpful click on the purple star to the left to give me kudos'.
HP SDN Team