Installation

How can i find a directory where i installed splunk in Centos?

cebo_myeza
Path Finder

i installed splunk as root in my linux system but now i forgotten the directory where it was installed, is there anyware i can get the information of which directory my splunk was installed.

Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The standard Splunk directory is /opt/splunk. If that's not where yours is then find / -name splunkd should find it.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

bandit
Motivator

This should identify locations of Splunk Enterprise or Splunk Universal Forwarders. I've only tested on Linux.

# using locate command (very fast if available)
locate --regex "splunk(forwarder)?/var/log/splunk/splunkd.log$" | awk -F "/var" '{print $1}'

# using find command
find / -type f -name "splunkd.log" 2>/dev/null | awk -F "/var" '{print $1}'

richgalloway
SplunkTrust
SplunkTrust

The standard Splunk directory is /opt/splunk. If that's not where yours is then find / -name splunkd should find it.

---
If this reply helps you, Karma would be appreciated.

cebo_myeza
Path Finder

thank you for your time it worked.

0 Karma
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 ...