we have our VM running in a dual role (search head + indexer) , i want to take out search head functionality completely from this VM and migrate only search head to another VM,. on our current search head, we have so many saved seraches, alerts, reports. what files needs to be taken care in this case, what should be the order to perform steps for a successful migration.
what apparoch suits best here
This answer https://answers.splunk.com/answers/87682/convert-a-stand-alone-splunk-instance-to-a-dedicated-indexe... should get you started. In your case you will want to copy the VM rather than create a new search head, but the rest of the steps apply. You'll also want to delete the indexed data that was copied from indexer to SH.