Deployment Architecture

Autostart Splunk on boot : How do I configure Splunk to show up in the Service control applet?

srich
Explorer

I am running Splunk on Fedora Core 12. How do I configure Splunk to show up in the Service control applet? or register the file as a service?

i.e. service splunkd status

Labels (1)
Tags (1)
1 Solution

the_wolverine
Champion

You can run the enable boot start command:

As root, run:

$SPLUNK_HOME/bin/splunk enable boot-start

To start splunk as another user, use -user parameter to specify which user to start Splunk as. For example, if Splunk runs as the user splunker, then as root you would run:

$SPLUNK_HOME/bin/splunk enable boot-start -user splunker

View solution in original post

Dave-M
Engager

Thank you @the_wolverine for the well-written and accurate answer.  This worked on CentOS 9 as well.

My only questions is why I found this in a user group instead of the install guide.

0 Karma

the_wolverine
Champion

You can run the enable boot start command:

As root, run:

$SPLUNK_HOME/bin/splunk enable boot-start

To start splunk as another user, use -user parameter to specify which user to start Splunk as. For example, if Splunk runs as the user splunker, then as root you would run:

$SPLUNK_HOME/bin/splunk enable boot-start -user splunker
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...