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.
@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.