Getting Data In

Index log need to maintain only one year

balamuruganm7
New Member

Hi Team,

I am seeking help on indexer log retention period set.

I am using splunk enterprise version 6.4.2, deployed some 4 years ago so . indexer log contain more than one year and log to be restricted only one year.

Kindly help on setting indexer log to maintain one year only

0 Karma
1 Solution

masonmorales
Influencer

Assuming that you have removed frozenTimePeriodInSecs at the index-level config of all indexes in your indexes.conf file(s) (use splunk cmd btool indexes list --debug to check), you can do:
indexes.conf

[default]
frozenTimePeriodInSecs = 31536000

View solution in original post

0 Karma

balamuruganm7
New Member

where should I add the default stanza?,where I should add the default stanza?

0 Karma

masonmorales
Influencer

Assuming that you have removed frozenTimePeriodInSecs at the index-level config of all indexes in your indexes.conf file(s) (use splunk cmd btool indexes list --debug to check), you can do:
indexes.conf

[default]
frozenTimePeriodInSecs = 31536000
0 Karma

balamuruganm7
New Member

Hi Masonmorales,

I could see indexes.conf file under $SPLUNK_HOME/etc/system/local/, but I don't see any parameter frozenTimePeriodInSecs

indexes.conf files contain following
.
[splunklogger]
bucketRebuildMemoryHint = 0
compressRawdata = 1
enableDataIntegrityControl = 1
enableOnlineBucketRepair =1
enableTsidxReduction = 0
syncMeta =1

[ _internal]
bucketRebuildMemoryHint = 0
compressRawdata = 1
enableDataIntegrityControl = 0
enableOnlineBucketRepair =1
enableTsidxReduction = 0
syncMeta =1

[ _interospection]

bucketRebuildMemoryHint = 0
compressRawdata = 1
enableDataIntegrityControl = 0
enableOnlineBucketRepair =1
enableTsidxReduction = 0
syncMeta =1

[ -audit]

bucketRebuildMemoryHint = 0
compressRawdata = 1
enableDataIntegrityControl = 0
enableOnlineBucketRepair =1
enableTsidxReduction = 0
syncMeta =1

0 Karma

masonmorales
Influencer

OK so just add it to the default stanza.

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Use this to find the current retention applied on the indexes you have:
https://answers.splunk.com/answers/553180/how-to-find-the-retention-period-of-an-index.html

Then follow this to understand and implement appropriate retention period.

Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...