Splunk Search

How to find if a particular index is being used?

anil15694
Explorer

Hi,

In order to remove an index, how can we be sure that the index is not getting used?

What should we check before removing any index?

0 Karma

rabbidroid
Path Finder

There are several ways you can see if there is data in a specific index.

You can try " | dbinspect index=<your_index> ", or "|tstats count where index=<your_index> by _time span=1d"

0 Karma

FrankVl
Ultra Champion

Couple of things that come to mind (possibly not an exhaustive list):

  • check if any data is still coming in
  • check if any searches are ran against it (search for the index name in _audit index)
  • check if any configuration exists that refers to the index (e.g. macros, saved searches, dashboards, inputs)
    • several ways to do this (btool, | rest, simply searching through the files on the server(s)...)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...