Deployment Architecture

How can you add/move a bucket without restarting splunkd?

Lowell
Super Champion

How do you get splunk to recognize new buckets without restarting splunkd? This makes the process of restoring or moving buckets between indexed more time consuming.

If I remember correctly, this was possible in Splunk 3.4.x by simply copying a bucket into the db or thaweddb folder (as long as you used an atomic move operation), but Splunk 4.0 doesn't seem to automatically detect new buckets the same way. (I noticed that dbinspect seems to see changes immediately, but searches do not.)

Tags (2)
1 Solution

jrodman
Splunk Employee
Splunk Employee

Rough first take:

  1. In the <indexname>/db directory, delete the file .bucketmanifest
  2. In the <indexname>/db directory, create the file (0 bytes works) meta.dirty

If we get into goat sacrifice territory, try also deleting .metamanifest. Step 2 should render that unnecessary. These files and their associated data should get rebuilt on need by search activity.

View solution in original post

jrodman
Splunk Employee
Splunk Employee

Rough first take:

  1. In the <indexname>/db directory, delete the file .bucketmanifest
  2. In the <indexname>/db directory, create the file (0 bytes works) meta.dirty

If we get into goat sacrifice territory, try also deleting .metamanifest. Step 2 should render that unnecessary. These files and their associated data should get rebuilt on need by search activity.

Lowell
Super Champion

Thanks! That worked.

I noticed that .bucketManifest was not recreated automatically, and the the bucket was not added in .metaManifest. When do these get updated?

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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 ...