Configure systemd on a clean install

To configure systemd on a clean installation of Splunk Enterprise:

  1. Expand the install package in an appropriate directory. For example:
    CODE
    tar xvfz splunk_package_name.tgz -C /opt
  2. Run enable boot-start to install the Splunkd.service unit file:
    CODE
    sudo $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-license flag with the command.
  3. Start splunkd.
    CODE
    sudo $SPLUNK_HOME/bin/splunk start
  4. Verify that splunkd is running as a systemd service.
    CODE
    $SPLUNK_HOME/bin/splunk status