Splunk Enterprise

indexes.conf repFactor parameter

SplunkExplorer
Contributor

Hi Splunkers, I have a very simple question.

When I configure a Splunk indexes.conf, I know that one parameter I can configure is repFactor.
In a scenario where SmartStore is used, we know that repFactor must be set equals to "auto", for each configured index.

Here the question is this: following Splunk official documentation, repFactor is put under "Per index Options". Does it means that I cannot put it under [default] stanza? Because if, for SmartStore requirements, I need to configure it equals to auto for EVERY index, it could be fast and smart put it as a global setting.

Luca

 

Labels (2)
0 Karma
1 Solution

kiran_panchavat
Champion

@SplunkExplorerYou can keep it in default stanza.

[default]
# Configure all indexes to use the SmartStore remote volume called
# "remote_store".
# Note: If you want only some of your indexes to use SmartStore,
# place this setting under the individual stanzas for each of the
# SmartStore indexes, rather than here.
remotePath = volume:remote_store/$_index_name
repFactor = auto

 

Did this help? If yes, please consider giving kudos, marking it as the solution, or commenting for clarification — your feedback keeps the community going!

View solution in original post

PickleRick
SplunkTrust
SplunkTrust

It's one of those settings which you can put into the default stanza but can override it on a per-index basis. In other words - you can set all indexes as replicated by default and then override this behaviour and decide that this and that index are not replicated or vice versa - make all indexes not replicated except for a few chosen ones (not a very bright idea but hey, who is Splunk to tell you not to shoot yourself in the foot, eh? 😉)

kiran_panchavat
Champion

@SplunkExplorerYou can keep it in default stanza.

[default]
# Configure all indexes to use the SmartStore remote volume called
# "remote_store".
# Note: If you want only some of your indexes to use SmartStore,
# place this setting under the individual stanzas for each of the
# SmartStore indexes, rather than here.
remotePath = volume:remote_store/$_index_name
repFactor = auto

 

Did this help? If yes, please consider giving kudos, marking it as the solution, or commenting for clarification — your feedback keeps the community going!

richgalloway
SplunkTrust
SplunkTrust

I don't see why you cannot set repFactor in [default]homePath also is listed as a per-index option, but I put it in the default stanza all the time (successfully).

Try it and let us know how it works.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...