Configure systemd on a clean install
To configure systemd on a clean installation of Splunk Enterprise:
- Expand the install package in an appropriate directory. For example:
CODE
tar xvfz splunk_package_name.tgz -C /opt - Run
enable boot-startto install theSplunkd.serviceunit file:CODEsudo $SPLUNK_HOME/bin/splunk enable boot-start -systemd-managed 1 -user <username>Note: When running enable boot-start for the first time after a clean install, Splunk Enterprise prompts you to accept the Splunk software license agreement. To automatically accept the license without prompt, specify the--accept-licenseflag with the command. - Start
splunkd.CODEsudo $SPLUNK_HOME/bin/splunk start - Verify that
splunkdis running as asystemdservice.CODE$SPLUNK_HOME/bin/splunk status