Splunk Dev

Reduce an index size

skippylou
Communicator

Couldn't find exact clarification on a couple things regarding reducing an index size but assuming how I think it will work, hoping someone has the definitive answer out there.

If say I have an index that has a max size setting of 50g. Let's say this index is currently using 45g of it.

I now want to reduce the max size for that index to 30g. After restarting splunk will it:

1) Purge data to get under the 30g limit? (assuming also it would then remove older buckets as necessary to stay under that limit as new data comes in moving forward - much as my current indexes that have hit limits do).

2) Start purging the oldest buckets first?

I assume on both it "does the right thing", but wanted to make sure there weren't any hidden caveats before doing this.

Thanks,

Scott

Tags (1)
1 Solution

hexx
Splunk Employee
Splunk Employee

From my experience, the answer to both questions is "yes". Note that the "purge" will actually involve running the coldToFrozenScript on the oldest buckets (in the oldest-to-newest order) until the index gets under it's maxTotalDataSizeMB.

View solution in original post

hexx
Splunk Employee
Splunk Employee

From my experience, the answer to both questions is "yes". Note that the "purge" will actually involve running the coldToFrozenScript on the oldest buckets (in the oldest-to-newest order) until the index gets under it's maxTotalDataSizeMB.

skippylou
Communicator

awesome, thanks.

0 Karma
Get Updates on the Splunk Community!

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...

Enterprise Security Content Update (ESCU) | New Releases

In April, the Splunk Threat Research Team had 2 releases of new security content via the Enterprise Security ...