How To Install Elasticsearch

How To Install Elasticsearch Using Source Code In Linux

ELK stands for Elasticsearch, Logstash, and Kibana. It helps you to keep all logs in one place and analyze the issues by correlating the events at a particular time. we will learn how to install Elasticsearch. We can install Elasticsearch from source code and download it.

Check Out: BootStrap Checks Failed In ElasticSearch

Components:

Elasticsearch: it’s an 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 sources simultaneously transform it then sends the incoming logs to Elastic-search.

Kibana: it’s used to the visualization of logs.

Beats: it’s used to install on the 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: https://www.elastic.co/downloads/elasticsearch

Extract the Package:

tar -zxf elasticsearch-6.5.0.tar.gz

elasticsearch source code

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 it 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

download elasticsearch source code

Adding these Ports in the 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.

127.0.0.1:9200 or your_ip:9200

If you see this message in a browser that means 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 download elasticsearch source code

LEAVE A REPLY

Please enter your comment!
Please enter your name here