Deployment Architecture

How to upgrade splunk RPM and keep splunk user file permissions?

gfriedmann
Communicator

I am using the RPM package for splunk. I also utilize the "run splunk as splunk user" option.

But there is a problem. I have to install an RPM as root. When i upgrade using the RPM, it stops splunk, upgrades the files, and then restarts splunk as root. After this, the file permissions are all messed up, with newly created files being owned by root.

How do others deal with this? Might it be fine to upgrade an RPM install using the .tgz package?

Tags (3)
0 Karma

gfriedmann
Communicator

Actually, splunk upgrade doesn't auto-start splunk as root.

After running

sudo rpm -U splunk-4.2.2...rpm

Then start splunk as the splunk user like this

 sudo su - splunk -c "splunk start --answer-yes --accept-license --no-prompt"
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...