Prompt Detail:
The frozenTimePeriodInSecs
parameter specifies the time after which data in the index will be moved to cold storage. The value of frozenTimePeriodInSecs
that I provided in my previous answer is 2592000 seconds, which is equivalent to 30 days. This means that data in the index will be moved to cold storage after 30 days of being indexed.
To set the data retention period to 30 months, the value of frozenTimePeriodInSecs
should be set to 77760000 seconds, which is equivalent to 30 months. Therefore, you should update the frozenTimePeriodInSecs
parameter in the index.conf
file to reflect this value to meet the data retention requirements. Here is an updated version of the stanzas in the index.conf
file with the correct frozenTimePeriodInSecs
value:
bash[itio_test]
homePath = $SPLUNK_DB/itio_test/db
coldPath = $SPLUNK_DB/itio_test/colddb
thawedPath = $SPLUNK_DB/itio_test/thaweddb
maxDataSize = auto
frozenTimePeriodInSecs = 77760000
[itio_test_2]
homePath = $SPLUNK_DB/itio_test_2/db
coldPath = $SPLUNK_DB/itio_test_2/colddb
thawedPath = $SPLUNK_DB/itio_test_2/thaweddb
maxDataSize = auto
frozenTimePeriodInSecs = 77760000
After making these changes and restarting Splunk, the data in the itio_test
and itio_test_2
indexes will be retained for 30 months.