Monitoring Splunk

How to see all open files,pipes,network socket open by splunk on Linux?

abonuccelli_spl
Splunk Employee
Splunk Employee

I'd like to see any file open or also network sockets for the splunkd(including forked processes) and splunkweb.

Tags (3)
1 Solution

abonuccelli_spl
Splunk Employee
Splunk Employee

This would show pretty much everything

$SPLUNK_HOME/bin $ ./splunk status | egrep [[:digit:]]+ -o | xargs -I {} lsof -p {} 

This would filter out most internal files, network sockets and used libs (although it could filter out also unwanted stuff)

 $SPLUNK_HOME/bin $ ./splunk status | egrep [[:digit:]]+ -o | xargs -I {} lsof -p {} 
    | egrep -v '(TCP|UDP)|\.so| (pipe|anon_inode|socket)|/db/|var/log/splunk/|fishbucket'

View solution in original post

abonuccelli_spl
Splunk Employee
Splunk Employee

This would show pretty much everything

$SPLUNK_HOME/bin $ ./splunk status | egrep [[:digit:]]+ -o | xargs -I {} lsof -p {} 

This would filter out most internal files, network sockets and used libs (although it could filter out also unwanted stuff)

 $SPLUNK_HOME/bin $ ./splunk status | egrep [[:digit:]]+ -o | xargs -I {} lsof -p {} 
    | egrep -v '(TCP|UDP)|\.so| (pipe|anon_inode|socket)|/db/|var/log/splunk/|fishbucket'
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...