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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...