Splunk Enterprise

Splunk backup and restore

kevbot
Engager

Hello,

I've read the following documentation:

https://docs.splunk.com/Documentation/Splunk/9.2.0/Indexer/Backupindexeddata

https://docs.splunk.com/Documentation/Splunk/9.2.0/Admin/Backupconfigurations

Basically to back up Splunk, I need to make a copy of "$SPLUNK_HOME/etc/*" and "$SPLUNK_HOME/var/lib/splunk/defaultdb/db/*" (after rotating the hot buckets.)

My question is, how is this restored? Would I just paste the copied files back in to a working Splunk instance? Then the data can be searched normally?

Thank you

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

rule of thumbs. Never restore anything into running system unless your product support it!

If you have single instance where you have take that backup, then you should use separate dummy/empty instance where to restore it. I suppose that even that case you will have some issues with files e.g. hot buckets and buckets which has switch state from warm to cold or cold to frozen during your backup time. If you have used e.g. snapshot for backup then this is not so big issue. After restoration just switch this service up (change splunk node name or shutdown the primary instance first).

If you have clustered environment then it’s much harder to get working backup and restore it. I really suggest that you use snapshots for backing up! You must take this at same time from all your indexers to get a consistent backup. I really like to empty test etc. environment for restoration!

r. Ismo

0 Karma
Get Updates on the Splunk Community!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...