HI all,
Does somebody has a start/stop script to be able to start splunk as a daemon at reboot/shutdown of the RedHat linux server.
Thanks.
Pierre.
The venerable old-skool Splunk forums are now closed. Feel free to search for old content here, but new posts are no longer supported.
Instead, please visit the thriving community at answers.splunk.com to ask and answer questions about your Splunk deployment and how to get the most out of it.
Previous Topic: Free version or Pro ... | Next Topic: Best way to process log4j logs?
HI all,
Does somebody has a start/stop script to be able to start splunk as a daemon at reboot/shutdown of the RedHat linux server.
Thanks.
Pierre.
Pierre,
As Promised, hHhttp://mysfitt.net/projects/splunkcode/splunk-init
Just place it in your /etc/init.d directory and set up the necessary sys-v style symlinks under the rc runlevel that you want splunk to start in. If you've never done that by hand, just ask and I'll tell you how to set it up.
By the way, this script should work for any Linux distro, not just redhat. I wrote it in such a way that it uses LSB init functions if they exist and failing that, I've included enough LSB functions out of the library to make it work without assuming anything about the system. So this should be a "universal" splunk init script.
I'll add an entry to my splunk faq about this as well since it seems like it'd be a good topic to cover.
cheers,
Joe