Splunk Enterprise Security

Migrate ES standalone to Cluster

edwardrose
Contributor

I have a couple of questions about migrating the ES standalone search head to a clustered search head.  I have tested two different methods and one works well and the Splunk method doesn’t work.  Here is my method.

 

My Method:

  1. Create tarball backups of /opt/splunk/etc/apps and /opt/splunk/etc/users from the standalone ES search head
  2. Create a kvstore backup from standalone ES backup
  3. Build deployer and search head cluster
    1. Setup ldap
    2. Setup licensing
  4. Extract users.tar in /opt/splunk/etc/shcluster on deployer
  5. Extract apps.tar in /opt/splunk/etc/shcluster on deployer
    1. Remove all apps that are default install apps
  6. Apply shcluster bundle
  7. Restore kvstore on captain
  8. Restore store kvstore on other two nodes in the cluster
  9. Restore entire sh cluster
  10. Done
    1. Team tested and everything looks like it is there and seems to be working

 

Splunk’s Method:

  1. Create tarball backups of /opt/splunk/etc/apps and /opt/splunk/etc/users from the standalone ES search head
  2. Create kvstore backup from standalone ES
  3. Build out deployer and search head cluster
    1. Setup ldap
    2. Setup licensing
  4. Install latest version ES on deployer
    1. Install all TA that will be used
  5. Deploy ES out to cluster
  6. Restore users.tar in /opt/splunk/etc/shcluster
  7. Restore other apps in /opt/splunk/etc/shcluster
    1. This process is more tedious as have to break out all items from ES app individually
  8. Deploy apps and users out to shcluster
  9. Restore kvstore on captain
  10. Restore kvstore on the other two nodes
  11. Restart sh cluster
  12. Done
    1. Team tested and it seems to be working but none of the datamodels are working and does not appear to recognize the kvstore restore.
Labels (1)
Tags (2)

n0psl1de
Explorer

@bolaojewale I’m curious about those points as well. Did you find an answer? 

0 Karma

bolaojewale
Explorer

Hey @n0psl1de ,

I ended up running some experiments  and formulating my own answers.

How did you migrate accelerated data models from the standalone SH to the cluster? 

What was your process to your cutover from the standalone SH to the cluster?

  • To complete cut over, I disabled writing to apps on the standalone to prevent users from making changes. Copied over all of the apps minus Splunk default apps. Copied over the KV store. Had users verify. That's mainly it.

 

n0psl1de
Explorer

@bolaojewale Ok good to know. Thanks for the quick response. 

0 Karma

bolaojewale
Explorer

Hey Edward. Thanks for your post. A few questions...

How did you migrate accelerated data models from the standalone SH to the cluster? 

What was your process to your cutover from the standalone SH to the cluster?

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...