Splunk Enterprise

How to run splunk forwarder on system startup

anil1432
Explorer

We have new servers in which we installed new Splunk forwarders that are running fine. In case of a system reboot, we would like to also start it up automatically. I noticed that our old servers has this file /etc/rc.d/init.d/splunk which is described in this guide

 https://docs.splunk.com/Documentation/Splunk/7.3.2/Admin/ConfigureSplunktostartatboottime

We don’t know who configured it for our old servers, but may I confirm that I need to follow the steps in the previous link and that I also need to be a root user to run splunk enable boot-start -user <preferred user>?.

 

Please can you give brief explanation and solutions please 

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

New systems tend to use systemd to start processes at boot-time.  If yours does not then you can use your old init.d file; otherwise, run the enable boot-start command to have Splunk build a systemd startup file. 

Yes, you must be root to enable boot-start.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

New systems tend to use systemd to start processes at boot-time.  If yours does not then you can use your old init.d file; otherwise, run the enable boot-start command to have Splunk build a systemd startup file. 

Yes, you must be root to enable boot-start.

---
If this reply helps you, Karma would be appreciated.

anil1432
Explorer

Thank you very much . I got it .👍😊😊

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...