Backup and restore Splunk DB Connect version 3.10.0 or higher
Go through the given scenario to understand how to create a DB Connect backup and restore it.
Scenario:
- We have two servers,
A
andB
. - Splunk DB Connect is installed and configured in server
A
. - We need to migrate Splunk DB Connect from server
A
toB
.
Backup and restore:
- Install Splunk DB Connect in server
B
. - Make sure all Splunk JDBC Add-ons present in server
A
are installed inB
. - Backup the input's checkpoints from the KV Store in server
A
:$SPLUNK_HOME/bin/splunk backup kvstore -collectionName dbx_db_input -archiveName <backup-name>
. The backup file will be stored in$SPLUNK_HOME/var/lib/splunk/kvstorebackup/<backup-name>.tar.gz
. - Copy the input's checkpoint backup to
$SPLUNK_HOME/var/lib/splunk/kvstorebackup
in serverB
. - Restore the input's checkpoints to the KV Store in server
B
:$SPLUNK_HOME/bin/splunk restore kvstore -collectionName dbx_db_input -archiveName <backup-name>.tar.gz
. - Backup the secrets from the KV Store in server
A
:$SPLUNK_HOME/bin/splunk backup kvstore -collectionName secret -archiveName <backup-name>
. The backup file will be stored in$SPLUNK_HOME/var/lib/splunk/kvstorebackup/<backup-name>.tar.gz
. - Copy the secret's backup to
$SPLUNK_HOME/var/lib/splunk/kvstorebackup
in serverB
. - Restore the secrets to the KV Store in server
B
:$SPLUNK_HOME/bin/splunk restore kvstore -collectionName secret -archiveName <backup-name>.tar.gz
. - Stop Splunk.
- Copy each
*.conf
files from$SPLUNK_HOME/etc/apps/splunk_app_db_connect/local
from serverA
toB
. - Copy each
*.jar
from$SPLUNK_HOME/etc/apps/splunk_app_db_connect/drivers
from serverA
toB
. - Start Splunk.
Check DB Connect installation health | Configure Splunk DB Connect settings |
This documentation applies to the following versions of Splunk® DB Connect: 3.18.0
Feedback submitted, thanks!