First thing first
Installation
ELK stack can be installed on any operating system like windows , mac , Linux .
more or less step will be same but it is preferable to do it on linux for better performance of all components .with my experience (bad) with windows, i will go here with Linux ( ubuntu) for my use case .
more or less step will be same but it is preferable to do it on linux for better performance of all components .with my experience (bad) with windows, i will go here with Linux ( ubuntu) for my use case .
considering we all usually works on Winodws , i will be installing elastic on Oracle VM and then we will be proceeding with small sample examples .
Setting Up a VM
Download Ubuntu server ISO from https://www.ubuntu.com/download/server
click New top left and follow the steps ( its more of self explanatory and simple ones )
provide good amount of RAM and around 50 -100 GM disk space .
Once it is ready click start and select your Ubuntu ISO and follow the steps
click New top left and follow the steps ( its more of self explanatory and simple ones )
provide good amount of RAM and around 50 -100 GM disk space .
Once it is ready click start and select your Ubuntu ISO and follow the steps
Installing Elastic
Before you go ahead we need java environment ready on our VM . for all elastic versions from 6.x java 1.8.x ( not 1.9 ) onwards is a must , if you are having older version make sure you upgrade to 1.8 .
so lets get it with simple command on our ready to use VM with Ubuntu server
open the command prompt and fire below command
sudo apt-get install default-jdk
check the version what you get by
java - version
Now let's set up repositories for elastic search on our newly created VM and install install elastic 6.x
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
sudo apt-get update && sudo apt-get install elasticsearch
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
sudo apt-get update && sudo apt-get install elasticsearch
That's it you are done :-)
Now lets fire up services for elastic by below simple commands
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
sudo /bin/systemctl start elasticsearch.service
Give some time ( may be couple of seconds ) for let service up and test with
curl 127.0.0.1:9200
9200 is port on which your elasticsearch runs .