Getting Data In

data retention of sourcetype

trojan_81
Path Finder

Two questions regarding Dynamic Data Storage:

 

1) Within an Index, can I archive a specific sourcetype only or can I only archive the entire index?

 

2) Let's say Index main has searchable time of 365 days.  I select dynamic data storage < Splunk Archive <  and specify Archive Retention Period of 365 days. 

Does that mean when original event data reaches 365 days, it will move to splunk storage as Frozen and be available for another 365 days?  Why is there no option to define max size? 

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @trojan_81,

about your questions, I think that you should read at https://docs.splunk.com/Documentation/Splunk/8.0.6/Indexer/Howindexingworks

Anyway, Splunk data are archived in buckets and archiving is managed at bucket level, in other words, Splunk archives a buckets, according with the configured policies when it reaches one of the following conditions:

  • the index dimensions exceeds the maxTotalDataSizeMB value: in this case the oldest bucket is discarded or managed following the archiving policy you configured (e.g. copy on anothe folder);
  • the newest event of a bucket exceeds the retention time: in this case the bucket is discarded or managed following the archiving policy you configured (e.g. copy on anothe folder).

So answering to your questions:

  1. you cannot archive a specific sourcetype and usually you don't need to archive the entire index, you archive buckets;
  2. main index retention time and dimensions can be managed like all the other indexes, so you can change retention time and dimension of this index changing maxTotalDataSizeMB and/or frozenTimePeriodInSecs in $SPLUNK_HOME/system/local/indexes.conf, if you haven't create it from default folder.
  3. there are many parameters to define max size e.g. maxTotalDataSizeMB , for more infos, see at https://docs.splunk.com/Documentation/Splunk/8.1.0/Admin/Indexesconf

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...