Hi,
I was trying to get the data from Splunk using curl REST API with the following detail:-
curl -k -u myusername:mypassword -d search="search index%3Dmain sourcetype%3Dmain-st | dedup Name | table Name, _geo" -d earliest_time=-24h@h -d output_mode="json" https://myurl:8089/servicesNS/admin/maps/search/jobs/export
The result was,
{"preview":true,"offset":0,"result":{"Name":"mamycita","_geo":"7.13,120.193"}}
{"preview":true,"offset":0,"result":{"Name":"gogocita","_geo":"7.13,120.193"}}
Upon checking in http://jsonlint.com/, the result from Splunk was not a valid JSON format.
,
Is there anything we need to do to get the valid json data via REST API? Or Did I make any mistake in the code?
Thanks
... View more