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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...