This topic discusses options for starting Splunk and Splunk server processes after a new installation.
Note: By convention, this document uses:
Before you continue, you may want to set a SPLUNK_HOME environment variable and add $SPLUNK_HOME/bin to your shell's path. The example below works for bash users who accepted the default installation location. Use the correct syntax and path for your own installation.
# export SPLUNK_HOME=/opt/splunk # export PATH=$SPLUNK_HOME/bin:$PATH
To start Splunk, use the command line interface:
$SPLUNK_HOME/bin/splunk start
To automatically accept the license when you start Splunk for the first time, add the accept-license option to the start command:
$SPLUNK_HOME/bin/splunk start --accept-license
The startup sequence displays:
Checking prerequisites... Checking http port [8000]: open Checking mgmt port [8089]: open Verifying configuration. This may take a while... Finished verifying configuration. Checking index directory... Verifying databases... Verified databases: _audit, _blocksignature, _internal, _thefishbucket, history, main, sampledata, splunklogger, summary Checking index files All index checks passed. All preliminary checks passed. Starting splunkd... Starting splunkweb... Splunk Server started. The Splunk web interface is at http://<hostname>:8000 If you get stuck, we're here to help. Feel free to email us at 'support@splunk.com'.
There are two other start options: no-prompt and answer-yes:
If you run start with all three options in one line, for example:
$SPLUNK_HOME/bin/splunk start --answer-yes --no-prompt --accept-license
You can start and stop individual Splunk processes by adding the process as an object to the start command. The objects include:
For example, to start only splunkd:
$SPLUNK_HOME/bin/splunk start splunkd
Or to start splunk watchdog:
$SPLUNK_HOME/bin/splunk start watchdog
Note: To shutdown watchdog, use the following command:
$SPLUNK_HOME/bin/splunk stop watchdog
For more information about start, refer to the CLI help page:
$SPLUNK_HOME/bin/splunk help start
After Splunk starts, it displays the URL for Splunk Web at the end of it's startup summary:
The Splunk web interface is at http://<hostname>:<port>
Note that <hostname> is specific to the machine on which you've installed Splunk and <port> is the HTTP port you defined at installation. The HTTP port defaults to 8000 if not otherwise specified.
To access Splunk Web, open a Web browser to this URL. Refer to the System Requirements for the list of supported Web browsers for your operating system.
To begin using Splunk, refer to the User Manual and Splunk Tutorial.
Comments
pjharper: added instructions for setting a SPLUNK_HOME environmental variable. if you still get the error when trying to start Splunk, you may want to email support@splunk.com. thanks!
Posted by sophy on Sep 19 2008, 11:03am
I am getting the same. Couldn't determine $SPLUNK_HOME, perhaps it should be set in environment
Posted by pjharper on Sep 19 2008, 9:34am
nge: sounds like you were able to figure it out. but, just to respond to your first comment: yes, you can set a SPLUNK_HOME environment variable. for more information, refer to:
http://www.splunk.com/doc/3.3.2/admin/AdminBasics
Posted by sophy on Sep 16 2008, 9:08am
My bad. Off course running 'sudo' is no problem...
Posted by nqe on Sep 16 2008, 2:02am
Startup does not work right after install:
normaluser@ubuntu_hardy_heron:~/downloads$ /opt/splunk/bin/splunk start
Couldn't determine $SPLUNK_HOME, perhaps it should be set in environment
Posted by nqe on Sep 16 2008, 2:01am