Splunk Web services needs to be rebuilt. In order to rebuild your services, run the following:
Make sure Splunkd and Splunk Web are both stopped:
D:\Program Files\splunk\bin>splunk stop
Splunkweb: Stopped
Splunkd: Stopped
Remove the Splunkd and SplunkWeb services:
D:\Program Files\splunk\bin>splunk disable boot-start
Removing service Splunkd
Service removed
Disabled.
Removing service Splunkweb
Service removed
Disabled.
Now rebuild splunkd and Splunkweb services:
D:\Program Files\splunk\bin>splunk enable boot-start
Installing service Splunkd
Service installed
Registering the Python Service Manager...
Installing service Splunkweb
Service installed
Windows services installed.
Windows services are configured to run at boot.
NOTE:
This will create Splunkd and Splunkweb services with the following properties:
- Startup type = Automatic
- Log On As = Local System
Depending on your configuration you will need to make changes to it.
You can make changes in the services console or via the "sc command line program" .
The following instruction is run in the services console:
- Open windows services console (Start >Control Panel > Administrative Tools > Services)
- Double click on splunkd services
- Change the Startup type in General Tab. Change the Log On As account in Log On tab.
The following is to make changes using sc command
Note: you must have a space following the "=" for the value to be specified properly in the sc config command
1. To make changes for Splunkd startup enter:
D:\Program Files\splunk\bin>sc config Splunkd start= demand
[SC] ChangeServiceConfig SUCCESS
D:\Program Files\splunk\bin>
2. To make changes for SplunkWeb startup enter:
D:\Program Files\splunk\bin>sc config Splunkweb start= demand
[SC] ChangeServiceConfig SUCCESS
To make changes for Splunkd Log On As:
D:\Program Files\splunk\bin>sc config Splunkd obj= {domain}{adminAccount} password= {password}
[SC] ChangeServiceConfig SUCCESS
D:\Program Files\splunk\bin>
NOTE: please replace {domain}, {adminAccount} and {password} with your Splunk domain administrator account.
3. To make changes for Splunkweb Log On As enter:
D:\Program Files\splunk\bin>sc config Splunkweb obj= {domain}{adminAccount} password= {password}
[SC] ChangeServiceConfig SUCCESS
D:\Program Files\splunk\bin>
NOTE: please replace {domain}, {adminAccount} and {password} with your Splunk domain administrator account.
Additional reference link:
http://www.splunk.com/base/Documentation/4.2/Admin/ConfigureSplunktostartatboottime
answered
17 Mar '11, 05:49
elusive ♦
697●1●15
accept rate:
33%
You should note that this is on Windows.