Deployment Architecture

How to use KV Store in a search head cluster?

ehudb
Contributor

Hello
I have a search head cluster with 3 peers.
Now I want to use KV Store within that cluster, with |inputlookup`|lookup` commands.
What is the correct way to do that?

When I created manually KV Store on one of the search heads, it didn't replicate to the other peers, so I cannot run lookup queries from the other search heads.

As I understood from the docs, it shouldn't replicate through SHC, but there should be a way to 'remotely' query the KV Store.

0 Karma

Masa
Splunk Employee
Splunk Employee

"""When I created manually KV Store on one of the search heads, it didn't replicate to the other peers"""
=> In SHC, any manual (editing configuration file) won't be replicated. So, you're right. Not replicated.

. """ As I understood from the docs, it shouldn't replicate through SHC,"""
=> Docs making you believe KVStore is not replicated in SHC is not great. Can put a link so that doc team can improve the page?

Once SHC is enabled, KVstore data will be automatically replicated to SHC members. So, even if one SH node is down, other SH nodes will keep the same data available.

I recommend to visit the following links, and try to create a custom app and add collections.conf for KVStore settings and transforms.conf for lookups. Try it in a standalone instance to make sure it works. Then, you can deploy the custom app from Deployer to SHC.

http://dev.splunk.com/view/SP-CAAAEY7

http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/ConfigureKVstorelookups

Get Updates on the Splunk Community!

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...