Splunk Enterprise

curl command getting stucked. It is not returning any output

sachinbansal551
Loves-to-Learn

Hi,

I am running below curl command but it is getting stuck for long. Does not return any error or xml or paste data in file or any other outhput.

curl -k -u username:password https://server_ip:8089/servicesNS/admin/search/search/jobs/export --data-urlencode search="search index=test earliest=-15m latest=-1m" --get -d output_mode=raw >> "/opt/data.csv"

 

I tried to just run search as well to get job id in xml but it is also getting hanged.

curl -k -u username:password https://server_ip:8089/servicesNS/admin/search/search/jobs --data-urlencode search="search index=test earliest=-15m latest=-1m"'

Same curl commands are working for my local instance.

Labels (1)
Tags (3)
0 Karma

abhijit_mhatre
Path Finder

@sachinbansal551 make sure the IP from where you are accessing is whitelisted on port 8089. If the IP is whitelisted you should be able to access the services under https://server_ip:8089 You can check all the services if the IP is whitelisted.  

rpc
services
servicesNS
static

0 Karma

sachinbansal551
Loves-to-Learn

@abhijit_mhatre - Can you please tell how do i check that?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That command works fine on my instances. Could there be a firewall blocking the request?

---
If this reply helps you, Karma would be appreciated.
0 Karma

sachinbansal551
Loves-to-Learn

@richgalloway  - I am not sure sure about firewall. Can you please let me know which firewall i should check ?

0 Karma
Get Updates on the Splunk Community!

New Case Study Shows the Value of Partnering with Splunk Academic Alliance

The University of Nevada, Las Vegas (UNLV) is another premier research institution helping to shape the next ...

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

October 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...