Security

Where can I see the retention policy of the indexes in Splunk Web?

ddrillic
Ultra Champion

I can see the retention policy of the indexes in /opt/splunk/etc/master-apps/_cluster/local/indexes.confin frozenTimePeriodInSecs. I wonder where I can see in Splunk Web? We need a nice screenshot of that for auditing ...

0 Karma
1 Solution

rjthibod
Champion

I am pretty sure it is not visible in any ui, but you can run a search to get the value and format it accordingly.

Here is the search:

| rest /services/data/indexes | fields title froz* | rename title as index

View solution in original post

rjthibod
Champion

I am pretty sure it is not visible in any ui, but you can run a search to get the value and format it accordingly.

Here is the search:

| rest /services/data/indexes | fields title froz* | rename title as index

wrangler2x
Motivator

I noticed that some of the indexes (such as _fishbucket) were in the list more than once, so I used deadup to drop the dupes. I also tossed in days and a row number:

| rest /services/data/indexes 
| rename title as index | dedup index | sort index
| streamstats count as Row
| eval Days=frozenTimePeriodInSecs/86400
| fields Row index frozenTimePeriodInSecs Days

ddrillic
Ultra Champion

Gorgeous - thank you both.

0 Karma
Get Updates on the Splunk Community!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...