Splunk Search

How can I resolve this error: KVStorageProvider --- saveBatchData:upsert --- No collection available

moorvogi
Path Finder

i keep seeing this error in the internal logs

kvstorageprovider - an error occurred during the last operation ('savebatchdata:upsert', domain: '0', code: '0'): No collection available.

we aren't using KVStores, i've enve gone in and disabled the kvstore via web.conf. it's still kicking this error. i found a similar post about empty bulk data and tried the recommended query against splunkd_access sourcetype. i have ZERO with code 500 as the other post indicates to check for.

also, no servers in the cluster have the KVStore role.

Labels (1)
Tags (1)
0 Karma

moorvogi
Path Finder

It was still kicking the error because of an error on my part. It's no longer throwing the error because the web.conf is now set properly. apparently spelling matters... hahaha

but, in the event we want to use KVStores later, i'm still going to try to find the answer.

0 Karma

vr2312
Builder

I reckon you would want to sort out the kvstore errors first, one search head at a time and then observe if this is still being observed.

0 Karma

vr2312
Builder

Hello @moorvogi

You might want to resync/clean the KV Store by performing the following steps :

  1. Stop the Search Head
  2. Run this command locally : splunk clean kvstore --local
  3. Start Search Head
0 Karma

benedict
Observer

hello @vr2312  i am curious if i ran the splunk clen kvstore --local  commands will it erase the data in the storageEngine?                                      

You might want to resync/clean the KV Store by performing the following steps :

  1. Stop the Search Head
  2. Run this command locally : splunk clean kvstore --local
  3. Start Search Head
0 Karma

moorvogi
Path Finder

top of the mornin to ya.

rgr on process and steps. i haven't tried steps in that order. to clarify, do i need to stop ALL search heads then do the command on each one before restarting each search head? This error was bouncing around between them. Seemingly "at random", though i'm sure there's a pattern somewhere.

0 Karma

vr2312
Builder

You would want to use the clean command on the SH where you are observing the error. There is no need to stop all search heads to perform this on one particular Search Head.

0 Karma
Get Updates on the Splunk Community!

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...