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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...