Deployment Architecture

How do you add replication to a pre-existing index?

a238574
Path Finder

I inherited a Splunk cluster that has some custom indexes that were created without setting repFactor=auto. Is it safe for me to update the config and push out the modified config for the impacted indexes?

0 Karma

jcrabb_splunk
Splunk Employee
Splunk Employee

You can add that setting to existing indexes. New buckets will be index cluster buckets and replicate. The previous buckets will remain as standalone buckets, will be searchable, but will not replicate. As an example:

DB Directory for an index on an index cluster member, index is not configured with repFactor=auto

Oct  4 10:38 db_1538594348_1538594348_0

After adding 'repFactor=auto

Oct  4 10:38 db_1538594348_1538594348_0
Oct  4 10:42 db_1538594348_1538594348_1_81D21F8E-64D7-4ACB-962A-3CB331958491

DB Inspect:

alt text

Jacob
Sr. Technical Support Engineer
0 Karma

ddrillic
Ultra Champion

I don't see any problems.

I would run first on the one of the indexers - ./splunk btool indexes list --debug

That would show you the entire set-up of your indexes. By default for indexes where repFactor was not defined you should see repFactor = 0.

From Managing Indexers and Clusters of Indexers
and for the sake of completeness alt text

0 Karma

harsmarvania57
Ultra Champion

I guess you can assign repFactor = auto to existing indexes but I think only new buckets will be replicated to other indexers. I'll recommend to test this in test environment first.

0 Karma

a238574
Path Finder

I had read somewhere that it might not replicate existing buckets. Is there a way to get those buckets replicated

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...