Deployment Architecture

Identification of Splunk Installation Method

sanjubaba
Path Finder

How to identify whether the Splunk installation is done by a root or a non-root user on Ubuntu Linux machine?

Can someone specify the command to identify the above requirement?

0 Karma

isoutamo
SplunkTrust
SplunkTrust
If it's installed with package manager then it's always installed as root. Just enter dpkg -S /opt/splunk/bin/splunk and it tell if that file is installed by package manager.

If it's installed from tar then only way to know that is, if those files have owned by root. Of course ownership of files can be changed later or. Which means that you cannot know that (unless you have audit log) later or.

It you are meaning in which user is running splunk then @renjith_nair's answers shows it.
r. Ismo
0 Karma

renjith_nair
Legend

You can grep for the splunkd process

ps aux|grep splunkd|grep -v grep

The first column tells you the user owning the process.

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...