Splunk Enterprise

KVstore folders in /opt/splunk/var/lib/splunk/kvstorebackup/

d_lim
Path Finder

Hi splunk community,

So on one of the search heads my SHC environment's /opt/splunk/var/lib/splunk/kvstorebackup/ directory, besides the kvdump.tar.gz, there seems to be multiple folders of tmpKVRestore_*

Those folders seem to contain the apps and the .json data.

I would like to ask if those folders are safe to be removed, and if those folders are caused by restoring splunk kvstore on the search head, which splunk did not remove it as a means of housekeeping after the successful restore?

Thanks.

Labels (2)
Tags (1)
0 Karma

manjunathmeti
Champion

hi @d_lim,
Splunk does not remove backup archived files in /opt/splunk/var/lib/splunk/kvstorebackup/ even after restoring them.
Check if the data exists in kvdump.tar.gz (you can untar it) and tmpKVRestore_* directory is there in KVStore collections. You can use lookups if look up definitions configured for these collections or below rest API endpoint. If yes then you can delete these directories and the tar file.

https://SEARCH_HEAD_IP:8089/servicesNS/nobody/APP_NAME/storage/collections/data/KVSTORE_COLLECTION_NAME



If this reply helps you, a like would be appreciated.

0 Karma
Get Updates on the Splunk Community!

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

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...