
Start Splunk Enterprise for the first time
Important security tip |
---|
Before you begin using your new Splunk Enterprise upgrade or installation, you should take a few moments to make sure that Splunk and your data are secure. For more information, read "Hardening Standards" in the Securing Splunk Enterprise manual. |
To start Splunk Enterprise:
On Windows
You can start Splunk Enterprise on Windows using either the command line, or the Windows Services Manager. Using the command line offers more options, described later in this section. In a cmd
window, go to C:\Program Files\Splunk\bin
and type:
splunk start
(For Windows users: in subsequent examples and information, replace $SPLUNK_HOME
with C:\Program Files\Splunk
if you have installed Splunk in the default location. You can also add %SPLUNK_HOME%
as a system-wide environment variable by using the Advanced tab in the System Properties dialog.)
On UNIX
Use the Splunk Enterprise command-line interface (CLI):
$SPLUNK_HOME/bin/splunk start
Splunk Enterprise then displays the license agreement and prompts you to accept before the startup sequence continues.
On Mac OS X
Splunk Enterprise can run as any user on the local system. If you run Splunk Enterprise as a non-root user, make sure that Splunk has the appropriate permissions to read the inputs that you specify.
Start Splunk Enterprise from the Finder
To start Splunk Enterprise from the Finder, double-click the Splunk icon on the Desktop to launch the helper application, entitled "Splunk's Little Helper".
Note: The first time you run the helper application, it notifies you that it needs to perform a brief initialization. Click OK to allow Splunk to initialize and set up the trial license.
Once the helper application loads, it displays a dialog that offers several choices:
- Start and Show Splunk: This option starts Splunk and directs your web browser to open a page to Splunk Web.
- Only Start Splunk: This choice starts Splunk, but does not open Splunk Web in a browser.
- Cancel: Tells the helper application to quit. This does not affect the Splunk Enterprise instance itself, only the helper application.
Once you make your choice, the helper application performs the requested application and terminates. You can run the helper application again to either show Splunk Web or stop Splunk Enterprise.
The helper application can also be used to stop Splunk Enterprise if it is already running.
Start Splunk Enterprise from the command line
To start Splunk Enterprise from the command line interface, run the following command from $SPLUNK_HOME/bin
directory (where $SPLUNK_HOME is the directory into which you installed Splunk, by default /Applications/splunk
):
./splunk start
Other start options
To accept the license automatically when you start Splunk Enterprise for the first time, add the accept-license
option to the start
command:
$SPLUNK_HOME/bin/splunk start --accept-license
The startup sequence displays:
Splunk> All batbelt. No tights. Checking prerequisites... Checking http port [8000]: open Checking mgmt port [8089]: open Checking appserver port [127.0.0.1:8065]: open Checking kvstore port [8191]: open Checking configuration... Done. Checking critical directories... Done Checking indexes... Validated: _audit _blocksignature _internal _introspection _thefishbucket history main msad msexchange perfmon sf_food_health sos sos_summary_daily summary windows wineventlog winevents Done Checking filesystem compatibility... Done Checking conf files for problems... Done All preliminary checks passed. Starting splunk server daemon (splunkd)... Done [ OK ] Waiting for web server at http://127.0.0.1:8000 to be available... Done If you get stuck, we're here to help. Look for answers here: http://docs.splunk.com The Splunk web interface is at http://localhost:8000
Note: If the default ports are already in use (or are otherwise not available), Splunk Enterprise offers to use the next available port. You can either accept this option or specify a port to use.
There are two other start
options: no-prompt
and answer-yes
:
- If you run
$SPLUNK_HOME/bin/splunk start --no-prompt
, Splunk Enterprise 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 Enterprise proceeds with startup and automatically answers "yes" to all yes/no questions. It 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.
Change where and how Splunk Enterprise starts
To learn how to change system environment variables that control how Splunk Enterprise starts and operates, see "Set or change environment variables" in the Admin manual.
Launch Splunk Web
Navigate to:
Use whatever host and port you chose during installation.
The first time you log in to Splunk Enterprise, the default login details are:
Username - admin
Password - changeme
Splunk Free does not have access controls.
PREVIOUS Run Splunk Enterprise as a different or non-root user |
NEXT What happens next? |
This documentation applies to the following versions of Splunk® Enterprise: 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.3.4, 6.3.5, 6.3.6, 6.3.7, 6.3.8, 6.3.9, 6.3.10, 6.3.11, 6.3.12, 6.3.13, 6.3.14
Feedback submitted, thanks!