Splunk Search

Query to search splunk data result into Postman

MK3
Explorer

Hello,

I send a GET request to Postman as follows -

curl -u <username> -k https://<url>.net:8089/services/jobs/export -d search="<query>"

Why does it fail? "Cloud Agent Error: Couldn't resolve host. Make sure the domain is publicly accessible or select a different agent."

And a variation passes but while I add "-d output_mode csv" at the end, I do not get any csv. Where can I see the same result as I see inside Splunk (enterprise) i.e tabular output?

Thanks

Labels (2)
0 Karma
1 Solution

PickleRick
SplunkTrust
SplunkTrust

Couldn't resolve host means precisely that - your system is unable to find IP for the name you've given in the request. Either you're providing curl with wrong hostname in the request URI or you're having DNS problems in your infrastructure.

View solution in original post

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Couldn't resolve host means precisely that - your system is unable to find IP for the name you've given in the request. Either you're providing curl with wrong hostname in the request URI or you're having DNS problems in your infrastructure.

0 Karma
Get Updates on the Splunk Community!

Unlock New Opportunities with Splunk Education: Explore Our Latest Courses!

At Splunk Education, we’re dedicated to providing top-tier learning experiences that cater to every skill ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...