How to Configure Elasticsearch in Centos 7

How to configure Elasticsearch  in Centos 7
How to configure Elasticsearch  in Centos 7

We will learn how to Install or Configure Elasticsearch  in Centos 7.
Elasticsearch is open source tool to Manage and Store all logs from client and remote machine.It's store all logs in JSON format.

Requirement of Elasticsearch :-
  • Java
  • 1 GB Ram in  Elasticsearch (ELK)
1. Install  JAVA :-
sudo yum -y install java-1.8.0-openjdk

If this command not run so please download and install from this link.

2. Please use below command to install Elasticsearch :-
sudo rpm --import

3. Create Repo file :-
vim /etc/yum.repos.d/elasticsearch.repo

Past the below code in this file :-
name=Elasticsearch repository for 6.x packages

4. Install Package from elasticsearch repo file :-
sudo yum -y install elasticsearch

You can install from here Link

5. Restart Service :-
systemctl start elasticsearch
systemctl enable elasticsearch
sudo chkconfig --add elasticsearch

If You are using Firewall below the command :-
firewall-cmd --permanent --add-port 9200/tcp
firewall-cmd --add-port=9200/tcp --permanent

Note :- 9200 is default port number of Elaticsearch.

6. Now Open the Configuration file of Elaticsearch :-
vim /etc/elasticsearch/elasticsearch.yml

systemctl restart elasticsearch

7. Now run the command and below the output :-
curl -X GET http://localhost:9200

Note :- If you want to install Graphic GUI from Kibana so download below link in Google Chrome link

My Next Article to Install Logstash which processes the logs and Kibana which provides the web interface to watch log analyze or optimize client server error and issues from the logs.

How to Configure Elasticsearch in Centos 7 How to Configure Elasticsearch  in Centos 7 Reviewed by Unknown on September 03, 2018 Rating: 5

No comments:

Powered by Blogger.

Get Updates On

Linux Tutorial

AWS Tutorial

Devops Tutorial

We are going to send you our resources for free. To collect your copy at first, join our mailing list. So don't miss any updates, stay connected!