Getting Data In

Splunk removes data from Index: How to set size limit only for index?

leekeener
Path Finder

    I work at a utility and we have an index that contains SCADA events from the electric system. We have data that goes back to 2015.  There are a very large number of total events (1.8 billion or so).  I had an engineer trying to trend some voltages over a long time period and it was discovered that Splunk had removed all of the events before 8/1/2020. I cleaned the index and added enableTsidxReduction=false. I then cleaned and reloaded the index and it appears it has removed events prior to Jan 1 2017 this time. The total size of this index is only around 60GB, The SQL database we are loading it from is 100GB total, these events are only two tables. We use DB Connect with a rising column for loading. MSSQL to dedicated SCADA index. Two inputs, one for each table.

    I would like for size to be only factor controlling when data leaves the index, I would also prefer for buckets to only be hot and warm, cold is on a much slower storage system and we have plenty of hot/warm space. what is the conf file settings that achieve this?

I have found the spec for indexes.conf and it is very daunting, I have scrolled down through it and it is hard for me to understand what is the right settings to use.  Is there a guide somewhere that outlines the behavior and cotnrols for index data management?

We run a distributed system with two indexers on 8.2.3

Thanks for the help.

Lee.

Labels (1)
0 Karma

leekeener
Path Finder

I tried the suggested settings with no change, it still removes events. I have opened a ticket with Splunk support. I will post the resolution here. 

Cheers,

Lee.

0 Karma

isoutamo
SplunkTrust
SplunkTrust

There are couple of settings which you must change for this. If you don’t use splunk volumes then the next should do the trick. 

  • maxWarmDBCount  - enough big that all buckets have room on warm
  • maxTotalDBSize - enough space as MB for all data and metadata 
  • maxDataSize - auto_high_volume - to take bigger buckets in use

Please check those names and explanations from https://docs.splunk.com/Documentation/Splunk/8.2.4/Admin/Indexesconf

r. Ismo

leekeener
Path Finder

So I am still seeing the data loss. I was able to find it in _internal as well. Here is my indexes.conf stanza for this index:

# SCADA related indices
[escadahist]
homePath = volume:hot/escadahist/db
coldPath = volume:cold/escadahist/colddb
thawedPath = $SPLUNK_DB/escadahist/thaweddb
maxDataSize = auto_high_volume
maxHotBuckets = 10
maxWarmDBCount = 10000
maxTotalDataSizeMB = 500000
enableTsidxReduction = false

After setting the above I clean the index and reset the rising counter in my DBConnect input to reload everything. 45 minutes into reloading I see the following in _internal:

03-02-2022 23:27:01.088 -0500 INFO BucketMover [7660 IndexerService] - idx=escadahist Moving bucket='db_1613378370_1587632768_210', starting warm_to_cold: from='/splunk/var/lib/splunk/escadahist/db' to='/splunkcold/escadahist/colddb, caller='trimVolume', reason='volume size for warm storage exceeded'

 

And I see the size of the index be reduced, age of data be reduced, it is removing data again.

I have opened a support ticket but they are not helpful. Does "caller='trimVolume'" hold a piece to the puzzle??? 

 

0 Karma

leekeener
Path Finder

Hold the phone. I just found where volume:hot was being defined. We used Splunk services to setup our implementation in 2016 and she created a separate app for volume index management that I have never opened. It has an indexes.conf with only two stanzas for hot and cold volume and only two parameters each. In it, volume:hot maxVolumeDataSizeMB set to 650GB. I have adjusted this to match my free NVMe space on each indexer (7.5TB) and am going to reload. Hoping I finally have found it. 

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

when you are hunting this kind of configuration issues you best friend is btool! Just use "splunk btool indexes list --debug <your index OR volume  name>". This shows what are all setting belongs to this entity and where those are defined!

r. Ismo

0 Karma

leekeener
Path Finder

Thanks for your answer. I will try these and reload the index. I will update this thread with the results.

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...