Splunk Search

I want to extract list of all clients deployed in Splunk along with the location of splunkd on those clients

krutika_ag
Path Finder

Hi,

There are a lot of clients in my architecture and every other splunk instance is deployed in either /opt/bank/splunk OR /opt/insurance/splunk OR /opt/splunk

 

Hence I want to run a command to extract list of all clients along with the path where splunkd is running.

 

How can i achieve this, please suggest

Tags (3)
0 Karma

krutika_ag
Path Finder

This is the query that helped me get the required output.

index=_internal sourcetype=splunkd | stats count by source,host | regex source="(?:\/|\x5c)splunkd\.log$" | rex field=source "(?<installation_path>.*)(?:\/|\x5c)var(?:\/|\x5c)"

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @krutika_ag ,

let us know if we can help you more, or, please, accept one answer for the other people of Community.

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated by all the contributors 😉

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @krutika_ag ,

if these splunk servers are sending internal logs to Splunk you could use something like this:

for Windows servers:

index=_internal
| rex field=source "^(?<splunk_home>.*)Splunk"
| dedup host
| table host splunk_home

for linux servers:

index=_internal
| rex field=source "^(?<splunk_home>.*)splunk"
| dedup host
| table host splunk_home

Ciao.

Giuseppe

ITWhisperer
SplunkTrust
SplunkTrust

Where is this information coming from?

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...