I have already deliver the splunk remote upgrader tgz ,with depoyment server.
Can i deliver a script too to automatically start the upgrader?
Splunk Remote Upgrader for Linux Universal Forwarders
Hi @ShawnXie
You mentioned the first 3 steps but have you also carried out the remainder of the steps at https://help.splunk.com/en/splunk-enterprise/forward-and-process-data/splunk-remote-upgrader-for-lin... such as starting the daemon
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
thanks for your reply
Lest my previous statement was unclear and caused any misunderstanding
I run the script by inputs.conf like this:
i run upgrader_install.sh manually , everything is ok the service can start
i run upgrader_install.sh by inputs.conf interval it's failed
----------------------------------------------------------------------------------------------------
I'm not sure if I need add --sudo systemctl start splunk-upgrader-- in my script additionally
because when i run --sudo ./bin/install.sh --accept-license --create-user-- ,and I run upgrader_install.sh manully the splunk-upgrader.service finally start itself.
and when install failed, I can't start service actully
Error log like this
I try to deliver a script use deployment server with 3 steps
1,cp the tgz to /opt
2,untar the upgrader tgz
3,run command as document say
sudo ./bin/install.sh --accept-license --create-user
The result shows step1,2 finished but have some problem with step 3
@ShawnXie
Are you installing with root user? Also can you share your error details here.
Regards,
Prewin
If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!
thanks for your reply
and Lest my previous statement was unclear and caused any misunderstanding
i run upgrader_install.sh manually , everything is ok the service can start.
i run upgrader_install.sh by inputs.conf interval it's failed
I'm not sure which user the Splunk run script uses and what permissions it has.
even though the log says :
current user is root
EUID is 0
my test environment splunkd run as root