Monitoring Splunk

increase logs indexing time

aalaa
Path Finder

i want to increase the log indexing time, for the moment the log are only accessible two days on my indexer and search head, how can i increase the time for the logs to go accessible for two months ? Any help please !
thank you

Tags (1)
0 Karma
1 Solution

tiagofbmm
Influencer

I think you're trying to say you want the logs to stay available for 2 months (retention period). The field _indextime is not changeable.

You can change in indexes.conf the maxTotalDataSizeMB and frozenTimePeriodInSecs attributes. They help determine when buckets roll from cold to frozen.

If you didn't change the default configuration, frozen means the logs are removed from Splunk. So basically if you want your logs to reside for longer, increase the frozenTimePeriodInSecs:

[<indexname>]
frozenTimePeriodInSecs =

https://docs.splunk.com/Documentation/Splunk/7.3.0/Indexer/Setaretirementandarchivingpolicy

View solution in original post

tiagofbmm
Influencer

I think you're trying to say you want the logs to stay available for 2 months (retention period). The field _indextime is not changeable.

You can change in indexes.conf the maxTotalDataSizeMB and frozenTimePeriodInSecs attributes. They help determine when buckets roll from cold to frozen.

If you didn't change the default configuration, frozen means the logs are removed from Splunk. So basically if you want your logs to reside for longer, increase the frozenTimePeriodInSecs:

[<indexname>]
frozenTimePeriodInSecs =

https://docs.splunk.com/Documentation/Splunk/7.3.0/Indexer/Setaretirementandarchivingpolicy

aalaa
Path Finder

Thank you !
index.conf under the Search head or the indexer ?
what is the value to add in frozenTimePeriodInSecs for two months ?

0 Karma

tiagofbmm
Influencer

In the indexer indexes.conf of the Indexer only

If you want 2 months then convert it to seconds: 60*86400=5184000

[]
frozenTimePeriodInSecs =

0 Karma

aalaa
Path Finder

thank you 🙂

0 Karma

tiagofbmm
Influencer

welcome. don't forget to upvote the accepted answer 😉

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...