Getting Data In

Curl fails with XML error.

Face_it
New Member

I have been trying to grab results from a macro that i created. I think the problem is the backticks, even when i escape them i still recieve and error. Could someone give me a hand with my syntax.

curl -k -u admin:changeme --data-urlencode search="search \nov\_adname\_info(iqbaln)\\" -d earliest_time=-2d -d latest_time=now -d output_mode=csv https://specialserver.example.com:8089/servicesNS/#admin/search/search/jobs/export

<?xml version="1.0" encoding="UTF-8"?>


Not Found

Tags (1)
0 Karma

tfletcher_splun
Splunk Employee
Splunk Employee

Couple of things could be wrong.

In your URI string your user name has a # in front of it. That should not be there.

In addition you are using the default username and password. By default splunk disallows remote access by the default username and password, so if trying this from a remote machine you will need to change the property allowRemoteLogin in server.conf in $SPLUNKHOME/etc/system/local/server.conf to always.

0 Karma

Face_it
New Member

Thanks i didn't not see that one. Good catch

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...