Documentation: 3.3.3
Print Version Contents
This page last updated: 10/09/08 05:10pm

Startup options

This topic discusses options for starting Splunk and Splunk server processes after a new installation.

Note: By convention, this document uses:

  • $SPLUNK_HOME to identify the path to your Splunk installation.
  • $SPLUNK_HOME/bin/ to indicate the location of the command line interface.

Add Splunk to your shell path

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

Start Splunk

To start Splunk, use the command line interface:

$SPLUNK_HOME/bin/splunk start

Splunk displays the license agreement and prompts you to accept the before the startup sequence continues.

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 $SPLUNK_HOME/bin/splunk start --no-prompt, Splunk proceeds with startup until it requires you to answer a question. Then, it displays the question, why it is quitting, and quits.
  • If you run SPLUNK_HOME/bin/splunk start --answer-yes, Splunk proceeds with startup and automatically answers "yes" to all yes/no questions. Splunk displays the question and answer as it continues.

If you run start with all three options in one line, for example:

$SPLUNK_HOME/bin/splunk start --answer-yes --no-prompt --accept-license

  • Splunk does not ask you to accept the license.
  • Splunk answers yes to any yes/no question.
  • Splunk quits when it encounters a non-yes/no question.

Start individual processes

You can start and stop individual Splunk processes by adding the process as an object to the start command. The objects include:

  • splunkd, the Splunk server daemon.
  • splunkweb, Splunk's Web interface process.
  • watchdog, a keep-alive process that restarts splunkd if it shuts down.

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

Start help

For more information about start, refer to the CLI help page:

$SPLUNK_HOME/bin/splunk help start

Open Splunk in a Web browser

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.

Previous: Windows installation    |    Next: License management

Comments

  1. 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!

  2. I am getting the same. Couldn't determine $SPLUNK_HOME, perhaps it should be set in environment

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

  4. My bad. Off course running 'sudo' is no problem...

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

Log in to comment.