Getting Data In

Splunk not starting upon Windows command-line msiexec install

Jason
Motivator

Here's an odd one. Anyone run into this before?

I am at a client and have put together a package based on this answer to install on multiple flavors of Windows automagically along with a set of config files.

The batch file runs fine and installs Splunk with the custom config, but Splunk does not run. When attempting to start it from the services panel after the install, it says can not log on (to the domain account).

Going into the Log On section of the splunkd service properties, a hidden password and the correct user entered in the batch file are there, and re-entering the password gives a "granted permission to log on as a service" message and allows Splunk to start. The odd thing is that upon un-installing Splunk and re-running the batch file to install, it runs perfectly.

Anyone see this before? Is it a Splunk thing? It's almost as if Splunk isn't passing Windows the proper password in the msiexec line, but when entered in the properties window Windows caches the password and uses it on further installs properly.

Here is the msiexec used. I have tried with and without quotes around the username and password, neither runs. msiexec.exe /i "%SPLUNK_MSI%" INSTALLDIR="%LOC%" RBG_LOGON_INFO_USER_CONTEXT=2 IS_NET_API_LOGON_USERNAME=DOM\user IS_NET_API_LOGON_PASSWORD=password LAUNCHSPLUNK=0 WINEVENTLOGAPPCHECK=0 WINEVENTLOGSYSCHECK=0 WINEVENTLOGSECCHECK=0 SPLUNK_APP="" /QUIET

0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

It is because the user account you are using does not have the user right "Log on as a Service". (Administrative Tools, Local Security Policy) The Splunk installer can create the service and assign the user, but since the user can not actually execute services, it won't start.

Your re-entering the account in the MSC control panel tells MSC to add the right to the user account on the local machine. Once it is set for that user on the local machine, it will keep working. You can also set assign this right to the user or to a group that he is in using Group Policies.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

It is because the user account you are using does not have the user right "Log on as a Service". (Administrative Tools, Local Security Policy) The Splunk installer can create the service and assign the user, but since the user can not actually execute services, it won't start.

Your re-entering the account in the MSC control panel tells MSC to add the right to the user account on the local machine. Once it is set for that user on the local machine, it will keep working. You can also set assign this right to the user or to a group that he is in using Group Policies.

Jason
Motivator

They say it is a user with domain admin privileges, I guess they assumed that right was on by default. I'll make sure they explicitly add that right. Thanks!

0 Karma

ftk
Motivator

http://technet.microsoft.com/en-us/library/cc739424(WS.10).aspx (Add the Log on as a service right to an account)

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...