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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...