Run the following search:
| rest /services/data/indexes | join type=outer title [ | rest /services/data/indexes-extended ] | search title=_* | eval retentionInDays=frozenTimePeriodInSecs/86400 | table title retentionInDays | dedup title
In Splunk Cloud and well-architected Splunk environments, Search Heads do not store data buckets and therefore do not participate in data retention. Retention policies must be set on the indexers only.
The command | rest /services/data/indexes run from a Search Head does not accurately reflect retention settings on indexers, as the dispatch_rest_to_indexers capability is not available to the users.
To view the actual retention period for internal indexes, install and use the Admins Little Helper for Splunk application.
Within this app, run the following SPL to retrieve frozen time retention details from indexers:
btool indexes list _ splunk_server=idx-* | stats values(frozenTimePeriodInSecs) by btool.stanza
Admins Little Helper for Splunk application.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |