Deployment Architecture

Splunk performs tsidx reduction immediately on warm buckets

jmangs
Explorer

I've recently upgraded to Splunk 6.6.0 and now seem to be having a problem with one of my indexes; every time I searched it, it would give a warning about reduced buckets that you normally see after tsidx reduction has been performed. Checking the latest warm buckets shows that the *.tsdx files have been replaced by *.mini.tsdx files.

I have tsidx reduction enabled, but it should only be reducing them after 30 days, not immediately. In addition, only this index in question has this problem. It's a relatively large index with 416.41 GB out of 488.28 GB in use. This wasn't an issue before on 6.5.3. I've tried settings auto_high_volume for the index but it seems to have no effect as of now.

Checking dbinspect I can see it setting warm buckets to mini immediately:

id  tsidxState  state   avg(sizeOnDiskMB)
4163    mini    warm    314.828125
4164    mini    warm    13.57421875
4165    full    hot 791.87109375
4166    full    hot 0.43359375
4703    mini    warm    307.6640625
4704    mini    warm    134.53125
4705    full    hot 760.03125
4706    full    hot 0.5078125
4707    full    hot 0.03125

After more investigation this seems to be related to logs that are received in the future due to a missing timezone; logs in UTC are received 4 hours in advance which then triggers an automatic tsidx reduction to occur automatically. Seems like a Splunk 6.6.0 bug.....

Tags (1)

mhoogcarspel_sp
Splunk Employee
Splunk Employee

I reproduced this and reported this issue to Engineering and the fix is now in Splunk 6.6.2+

http://docs.splunk.com/Documentation/Splunk/6.6.2/ReleaseNotes/6.6.2
2017-06-08 SPL-142006, SPL-142492 TSIDX Reduction kicks in before newest event is old enough when events come in with future timestamp in Splunk 6.6.0

ddrillic
Ultra Champion

Gorgeous ; - )

0 Karma

Justin_Brown
Explorer

We've been having the same problem. We've tested several scenarios and in every case, regardless of the event time stamp (future, past, present) if TSIDX reduction is enabled on the index it immediately goes into effect when a bucket migrates from hot to warm. This applies to 6.6.0 and 6.6.1. We also experimented with setting a timezone in the past just to see if it made a difference and it didn't. So it would seem if you're using this feature with on-prem Splunk 6.6.0 or newer you're probably wondering why searches seem significantly slower than prior to the update.

0 Karma

jmangs
Explorer

Follow up to this, I think it's a bug in Splunk 6.6.0 - this actually occurs on any index which has tsidx reduction enabled and receives logs from the future sadly.

Haven't found a workaround yet aside from disabling the feature.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...