How To Install Elasticsearch Using Source Code In Linux

ELK stands for Elasticsearch, Logstash and Kibana. It helps you to keep all logs at one place and analyse the issues by correlating the events in particular time. we will learn how to install elasticsearch.

Check Out: BootStrap Checks Failed In ElasticSearch

Components :

Elasticsearch : it’s a Open Source distributed RESTful search engine based on java which stores all of the collected data. Easy to use, Scalable and flexible.

Logstash : it’s a server side data processing pipeline that injects data from multiple source simultaneously transform it then sends the incoming logs to Elastic-search.

Kibana : it’s used to visualisation of logs.

Beats : it’s used to installed on client machine to get the data which will be forwarded to either Elastic-search or log-stash.

Check Out: Error : Can’t Run Elasticsearch As Root

Before installing, You need to know the System requirements of Elastic-search

1. RAM 4GB

2. CPU 2

3. Java 8 or above

Link to download :

Extract the Package:

tar -zxf elasticsearch-6.5.0.tar.gz

Go to the directory: /elasticsearch-6.5.0/bin

You need to install Elasticsearch from a user because it won’t allow you to install by a root user.

Check Out: Configuration Settings of Elasticsearch Before Installing I

Note: Make sure Java installed and java path must be defined.

If you don’t know how to install Java, Get it  from here 

./elasticsearch -d

Adding these Ports in firewall to access it from outside,

firewall-cmd –-permanent –add-port=9200/tcp

firewall-cmd –-permanent –add-port=9300/tcp

firewall-cmd –reload

After running these, you have to check whether it’s installed or not. or your_ip:9200

If you see this message in browser that’s mean Elastic-search has been installed.

Check Out: Install Elastisearch Using Repo

You can also use this command curl -X GET “localhost:9200”

Check port listening

netstat -tnlp | grep java

Elastic-search is up and running with Port number 9200.

You’re done

Leave a Reply

Notify of