Enable distributed search via the CLI
This documentation does not apply to the most recent version of Splunk. Click here for the latest version.
Enable distributed search via the CLI
You can also enable distributed search via Splunk's CLI.
Configuration
To use Splunk's CLI, navigate to the $SPLUNK_HOME/bin/ directory and use the ./splunk command. You can also add Splunk to your path and use the splunk command.
Enable distributed search:
splunk enable dist-search -auth admin:changeme Distributed search enabled. You need to restart the Splunk Server for your changes to take effect.
Enable auto-discovery:
splunk enable discoverable -auth admin:changeme Discoverable mode is now enabled. You need to restart the Splunk Server for your changes to take effect.
Add a search server:
splunk add search-server -host 10.10.10.10 -port 8888 -auth admin:changeme Success. You need to restart the Splunk Server for your changes to take effect.
This documentation applies to the following versions of Splunk: 3.0 , 3.0.1 , 3.0.2 , 3.1 , 3.1.1 , 3.1.2 , 3.1.3 , 3.1.4 View the Article History for its revisions.