Splunk Search

Problem trying to use remote CLI

bcotton
Engager

When trying to run a search from a remote CLI instance, I keep getting a 404.

The command-line I'm running is:

./splunk search bob -uri http://dsc-splunksearch-01:8000 -auth <....>

and the web_access.log says this:

10.32.12.137 - - [04/Apr/2011:12:27:24] "POST /services/search/jobs/export HTTP/1.1" 303 176 "" "SplunkCli/4.1 (build 89596)" - 4d9a0d8cfa1d6c08d0 10.32.12.137 - - [04/Apr/2011:12:27:24] "GET /en-US/services/search/jobs/export HTTP/1.1" 404 2544 "" "SplunkCli/4.1 (build 89596)" - 4d9a0d8cfb1d6c08d0

Tags (1)
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

You need to use the uri of the splunkd, not the splunkweb.

Instead you should run:

./splunk search bob -uri https://dsc-splunksearch-01:8089 -auth <....>

And to verify, look at splunkd_access.log.

View solution in original post

Stephen_Sorkin
Splunk Employee
Splunk Employee

You need to use the uri of the splunkd, not the splunkweb.

Instead you should run:

./splunk search bob -uri https://dsc-splunksearch-01:8089 -auth <....>

And to verify, look at splunkd_access.log.

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...