Splunk Enterprise

What is the impact on kvsore data the clean kvstore or move mongo

WorapongJ
Explorer

I’m trying to understand Splunk KV Store to determine what happens when it fails to start or shows a "failure to restore" status. I’ve found two possible solutions, but I'm not sure whether either command will delete all data in the KV Store?

Solution1:
- ./splunk stop
- mv $SPLUNK_HOME/var/lib/splunk/kvstore/mongo /path/to/copy/kvstore/mongo_old
-./splunk start

 

Solution2:

- ./splunk stop
- ./splunk clean kvstore --local
-./splunk start

Labels (2)
0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust

@WorapongJ- Yes in both case you will loose data.

 

And I know you are trying to understand the impact of it on Splunk. But there is usually a recovery option available for KVstore/Mongo depending on what has happened or what's the issue.

 

I hope this helps!!!

View solution in original post

livehybrid
SplunkTrust
SplunkTrust

Hi @WorapongJ 

Both of these will result in an empty KV Store, although with the first you will have a copy of it to wherever you moved it to.

What is it you are trying to achieve here?

For KV Store troubleshooting check out https://docs.splunk.com/Documentation/Splunk/latest/Admin/TroubleshootKVstore

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

WorapongJ
Explorer

What is it you are trying to achieve here?

I would just like to know the impact in case I encounter a KV Store status failure. How can I identify which apps, such as ES, might be affected If I remove or clear kvstore data?

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@WorapongJ- Yes in both case you will loose data.

 

And I know you are trying to understand the impact of it on Splunk. But there is usually a recovery option available for KVstore/Mongo depending on what has happened or what's the issue.

 

I hope this helps!!!

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