Monitoring Splunk

Rest query showing deleted indexes

M1k3Smith
Explorer

We have 2 indexers in a cluster and are running 9.4.0

I removed an index from the cluster by removing its stanza from indexes.conf and doing a bundle push, after a rolling restart of the cluster the index wasn't visible via  Settings-->Indexes on the indexers but I can still see the deleted index when I run

| rest /servicesNS/-/-/data/indexes count=0

on investigation I found a few indexes that have been removed still showing, is there any way of refreshing the data presented via the api so that it shows current indexes

Cheers

Mike

Labels (1)
0 Karma

M1k3Smith
Explorer

@PrewinThomas

Thanks we will be restarting the indexers soon for patching I will check after

0 Karma

isoutamo
SplunkTrust
SplunkTrust

If this is bug, it's not 1st one with REST and indexes/volumes 😞

Anyhow when you are pushing a new bundle w/o those "deleted" indexes you should remember that those are not removed from peer's disks! Those are just removed from indexes.conf.

If you really want to remove and free that disk space you must remove those from OS level after you have pushed indexes.conf into those and use MC or CM to check that splunk didn't see those anymore.

M1k3Smith
Explorer

Ah OK I will remove the index files from the indexers and retry the rest query may be checking the disk for index files and that would explain why I am still seeing some indexes that have been removed for quite some time

0 Karma

isoutamo
SplunkTrust
SplunkTrust
This work differently in single indexer vs cluster. With single indexer you should use cli command to delete indexed data and remove index definition. This works with that one command. In cluster this is two step task with manual remove files from each node.
0 Karma

PrewinThomas
Motivator

@M1k3Smith 

It might be memory cache, rolling restart may not flush all memory caches. Can you try reload on each member,

splunk reload index

 

If this also doesn't resolve the issue, try performing a full restart of the indexers.

Regards,
Prewin
If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...