$SPLUNK_HOME/bin/splunk show kvstore-postgres-migration-status --verbose
$SPLUNK_HOME/bin/splunk show kvstore-status --verbose
A failed migration typically reports:
migrationStatus : Migration_Failed storageEngine : wiredTiger
index=_internal sourcetype=splunkd (component=KVStoreMigrationPreChecks OR component=KVStoreBackupRestore OR component=MigrationStateStore)
Check the PostgreSQL service log:
$SPLUNK_HOME/var/log/splunk/sup-pkg-postgres-postgres.log
Look for private-key permission errors referencing the configured certificate key file.
grep SPLUNK_OS_USER $SPLUNK_HOME/etc/splunk-launch.conf
curl -k -u <admin_user> -X GET "https://localhost:8089/services/kvstore/?output_mode=json"
Verify the migrateToPostgres endpoint includes the cleanup, start, and status actions.
Review the PostgreSQL log and identify the private-key file referenced in the startup failure.
Ensure the private key is owned by the operating-system account that runs Splunk Enterprise.
chmod 0600 $SPLUNK_HOME/etc/auth/xxx/server.pem
If the private-key directory is owned by the Splunk operating-system user, apply restrictive permissions:
chmod 0700 $SPLUNK_HOME/etc/auth/xxx
$SPLUNK_HOME/bin/splunk btool server list kvstore --debug | egrep 'postgresMigrateOnStartup|defaultKVStoreType|shutDownMongo'
Update the following stanza in:
$SPLUNK_HOME/etc/system/local/server.conf
[kvstore] postgresMigrateOnStartup = true defaultKVStoreType = local shutDownMongo = false
Run the cleanup action and include the trailing slash after cleanup.
curl -k -u <admin_user> -X POST "https://localhost:8089/services/kvstore/migrateToPostgres/cleanup/?output_mode=json"
A successful response includes:
"messages":[]
$SPLUNK_HOME/bin/splunk restart
$SPLUNK_HOME/bin/splunk show kvstore-postgres-migration-status --verbose
$SPLUNK_HOME/bin/splunk show kvstore-status --verbose
Confirm the migration completed successfully:
migrationStatus : Migration_Succeeded
Verify the co-hosted KV Store service reports a ready PDL status:
Cohosted KVStore Information:
status : ready
type : Pdl
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
30-Nov-2026
|
Initial Release |