All Apps and Add-ons

Change an existing index frozenTimePeriodInSecs Thru REST

Splunk Employee
Splunk Employee

I know you can create a new index through REST:

curl -k -u admin:changeme -d name=mynewindex -d frozenTimePeriodInSecs=#######

Is there a way to change or update an existing indexes frozenTimePeriodInSecs though REST?

0 Karma

Path Finder

Hi dcroteau,

Let me know if the suggestion below worked.



0 Karma

Path Finder

Hello dcroteau,

This absolutely can be done.

Based upon your example here is what you would do for the case of your index named mynewindex wanted to be changed to a year of retention:

curl -k -u admin:changeme -d frozenTimePeriodInSecs=31536000

Specifying it in the path will alter the settings on that index via the REST endpoint.


0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!