Splunk Search

List of indexes not referenced in the last 30 days

sumaitasiddiky
New Member

I am in need of a query that will list indexes not searched in the last 30 days.

Tags (1)
0 Karma

PavelP
Motivator

Hello @sumaitasiddiky

please check the second answer by @ssievert_splunk : https://answers.splunk.com/answers/557131/index-hit-by-searches-in-last-30-days.html

Unless your users explicitly specify index=xxx in their search, you cannot do this since there is no audit log of what indices were implicitly accessed based on a users' permissions.

You can try to workaround this restriction by joining several searches:

  • searches with indexes from audit log
  • searches with sourcetype or source -> map to indexes
  • other searches -> run them and get references index(es)

Let me know if it helps

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...