Getting Data In

On which user my Splunk is running?

varad_joshi
Communicator

Not that familiar with *NIX hence the question.

I created the user and group called splunk and then ran Splunk for the first time with splunk user.

Now I want to ensure my Splunk is running as splunk user and not as root.
Can someone help me below command and the output?

-bash-4.2$ ps -af|grep splunk
root 1658 1473 0 22:33 pts/0 00:00:00 su - splunk
splunk 1659 1658 0 22:33 pts/0 00:00:00 -bash
splunk 2121 1659 0 22:36 pts/0 00:00:00 ps -af
splunk 2122 1659 0 22:36 pts/0 00:00:00 grep --color=auto splunk

Tags (1)
0 Karma

inventsekar
SplunkTrust
SplunkTrust

I created the user and group called splunk and then ran Splunk for the first time with splunk user //
not sure of this step. can you please explain.. this is on Splunk indexer or Splunk forwarder or..

root 1658 1473 0 22:33 pts/0 00:00:00 su - splunk
i am not sure of why you have to switch user to splunk user.

when you run ps -ef | grep splunk, (please note on your command, you used ps -af".. instead use "ps -ef")
what output you get ?!?!

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

varad_joshi
Communicator

ah okay so I then ran splunk status and it gave me the PID.
I can see the PID is running as splunk user.

I think I got what I was looking for.

Cannot delete the question as its irrelevant now 🙂

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...