
As a follow up to previous post on how to install and setup Linux Ubuntu under VMWare, I went ahead and created Azure VM as well. Once Azure VM is set up, the Splunk Cluster setup is identical.
For this instructions I would assume you have already set up Azure Subscription. If not, go ahead and create one month Free account with $200 to spend on Azure services.
Contents:
- Setup VMWare Virtual Machine (Azure services)
- Install and Setup Ubuntu Linux (Azure services)
- Install and Setup Splunk
- Indexes Configuration
- Enable Clustering
- Add second Splunk instance to the cluster
- * Potential problems
- Add third Splunk instance to the cluster (Search Head)
Details:
Setup Azure CloudService and Ubuntu Linux VM
- Start by creating new Cloud Service for HighAvailability and scalability of VMs
- Make sure that you give you Azure Cloud Service descriptive enough name and choose your Azure region (more info)
- That’s it, let’s create our first VM under this Cloud Service
- We will choose Ubuntu 14.04 as our base
- As the first VM will act as a Splunk Master, let’s give it distinct name and set up size, user name and password
- Next step allows us to attach this VM to the Cloud Service we created under Step 2 and setup endpoints to your VM. You can set them up now or later. Make sure you enable: SSH, Splunk’s default web port 8000, 8089 for management and 8080 for replication
- That’s it! That was easy. Now just wait about 5 minutes for your new VM to be fully provisioned. We are now ready to log in to our Azure VM.
- Linux on Azure is installed without GUI, so the only way to login is through SSH. Use Terminal on Mac or any SSH client on Windows to connect to your machine. You will see your VM’s IP (public virtual IP, VIP) address on the right hand side of the Dashboard panel
- SSH into your VM:
$ ssh admin_user@19ipaddress.19
- For some reason Azure does not set default root password, so let’s fix that:
$ sudo passwd root
You now can sudo your commands.
Optional: enable Desktop environment and Remote Desktop Connection
- If you want to access your VM using Remote Desktop you must install Ubuntu’s Desktop and enable rdp:
$ sudo apt-get install ubuntu-desktop
$ sudo apt-get install xrdp
Also, I recommend running update after each install
$ sudo apt-get update
- Make sure you add RDP endpoint using port 3889 (TCP public/private) by selecting Remote Desktop from the list of endpoints
- Navigate to VM’s dashboard
- Click on Endpoints menu on the top
- Click on + (plus) icon
- We now can RDP into our VM.