Deployment Architecture

Capture the account/user under which splunk services are running on linux

somesoni2
Revered Legend

Is there any way to find out which user/service account is running the splunk services on linux?

I am looking to collect this information from all the forwarders (deployed on servers owned by different teams) to ensure correct service accounts are used to start/restart splunk service.

I did go through the Splunk's internal logs on _internal and _audit index but couldn't find the user reference during a service(splunkd) restart. Any pointer to a linux command/shell script/splunk logs should be helpful.

0 Karma
1 Solution

linu1988
Champion

If you are using Nix app, is it not showing you all the running process details? The user column should show you under which user the splunk forwarder runs.

ps -af|grep "splunkforwarder"

Thanks

View solution in original post

linu1988
Champion

If you are using Nix app, is it not showing you all the running process details? The user column should show you under which user the splunk forwarder runs.

ps -af|grep "splunkforwarder"

Thanks

somesoni2
Revered Legend

We don't run Nix app as its little bit heavy app generating lot of data which we don't need. We use parts of it. Based on your suggestion on ps command, I wrote following command to get required information for Splunk related processes.

ps -C java -o euser,f,comm,args,pid |grep splunk

Thanks

martin_mueller
SplunkTrust
SplunkTrust

I think you'll want -A rather than -a, in case the splunkd process doesn't have a tty associated with it.

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...