When trying to perform a search Splunk will display a "No Free disk space left" error if the minimum free disk space is not available. This will cause to be unable to perform searches until the minimum free disk space is available.
Usually the largest files and directories are related to KV Store, so the following command can locate files and directories larger than 500MB stored in the $SPLUNK_HOME/var/lib/splunk/kvstore directory:
find $SPLUNK_HOME/var/lib/splunk/kvstore -size +500M -exec ls -lh {} \;
The command displayed a "old_db " directory that was taking up to 1GB+ in disk space.
Verify the file is not involved in the Splunk functioning. In this case, the directory is only a backup of the Mongod files that are no longer needed.
The directory along with its contents can be deleted to free up disk space using the following command:
rm -r $SPLUNK_HOME/var/lib/splunk/kvstore/<directory_name>
Note that the command includes a placeholder that must be replaced by the name of the directory you want to delete. (The directory path can also change based on your needs)
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |