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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...