Monitoring Splunk

How to find the indexes.conf and monitor stanza for certain indexes in multisite environment

harshal_chakran
Builder

Hi all,
I have  indexer clusters at multiple sites, but common Search Heads.

I want to remove certain indexes which holds no data.

How can I find in which indexer cluster's indexes.conf , the certain indexes entries are present.
Also in which deployment app of which indexer the related monitoring stanza is present.

Is there any rest api command to get the details?

Thanks in Advance

 

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please tell us more about your environment.  Usually, even a multi-site indexer cluster has a single Cluster Manager so there's only one place to look for indexes ($SPLUNK_HOME/etc/master-apps on the CM).

If you have more than one CM then you have more than one master-apps directory in which to look.

To find the specific app that defines the index, run this command on each CM

find /opt/splunk/etc/master-apps -name indexes.conf -print0 | xargs -r0 egrep "^\[indexname]"
---
If this reply helps you, Karma would be appreciated.
0 Karma

harshal_chakran
Builder

Hi,
We have a separate multiple CM
Thanks for answer, I will try the same.

Do we have any combinations of rest api to get  the details from SH? Or from CM server itself?? 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is the services/cluster/master/indexes API, but it doesn't return app information.  See the REST API Reference Manual for details.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...