Hello All,
I need help with a PowerShell script to that runs a search on Splunk Cloud via the REST API and retrieve results to be stored in a .csv file. I have put together the script below but I am not having any luck. I keep getting unable to connect to the remote server error. Can you please have a look at my script to help me spot anything I am missing.
Thanks.
Does your Splunk Cloud stack have REST API enabled (it's off by default)? If not, open a support case.
Is the IP address of the server running the script on your stack's IP Allow List? If not, get a Splunk admin to add it.