Splunk Enterprise

Splunk service didn't start automatically after server reboot

mlevsh
Builder

Hi,

We have Splunk Enteprise v. 6.6.3 Heavy Forwarders.
1) We configured Splunk to start on reboot as our splunk_user by running

"$SPLUNK_HOME$/bin/splunk enable boot-start -user splunk_user"
2) /etc/init.d/splunk script was created and
SPLUNK_OS_USER was set to splunk_user in /opt/splunk/etc/splunk-launch.conf
3) our heavy forwarders are set to be rebooted once per month and it was going ok .
Splunk services were getting restarted automatically every time

4) Recently we worked with our Linux Admins to increase ulimit -n on one of heavy forwarders.
Our Unix admins made the required change on system level.
They also updated /etc/init.d/splunk script by adding the following to splunk_start() and
splunk_restart() functions:

  ulimit -Hn <value>
  ulimit -Sn  <value>

Then Splunk was stopped and server was rebooted and this time Splunk service didn't start automatically
We had to start it manually.

What could be the reason and what's the best way to troubleshoot this and fix it if needed to prevent this from happening again

Thank you in advance!

0 Karma

MuS
SplunkTrust
SplunkTrust

So, what does your /var/log/messages tell you? Looks like the recent change of /etc/init.d/splunk did not work.

cheers, MuS

0 Karma

ddrillic
Ultra Champion

We spoke about it at this thread and it might help you - How do we enable a forwarder boot-start?

0 Karma

mlevsh
Builder

@ddrillic , thank you!
I actually went through that thread and especially noted your post:
"Very interesting - yesterday we checked a server that had this /etc/init.d/splunk file but the splunk process was not started 15 days ago when the server was rebooted. We ended up rebooting the server a couple of times and in these cases, Splunk did come up. Confusing ; -) "

So it is still not clear for us why splunk auto restart worked before and didn't work this time 🙂

ddrillic
Ultra Champion

Thank you for the attention @mlevsh and the quote ; -)

0 Karma
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!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

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