Install and configure (ELK) Elasticsearch Logstash Kibana on CentOs 7

This following show how to install ELK on CentOs 7

What is ELK Stack ?

First, Begin to Install and configure (ELK) Elasticsearch Logstash Kibana on CentOs 7 we should know ELK Stack is a collection of three software together for the work of logging. These softwares are:
Elasticsearch: Database for storing, searching and query log.
Logstash: Receives logs from multiple sources, then logs and writes data and Elasticsearch.
Kibana: Interface for management, log statistics. Read information from Elasticsearch

Install Elasticsearch

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.1.rpm
# rpm –install elasticsearch-6.4.1.rpm
# systemctl start elastichsearch
# systemctl enable elasticsearch
# systemctl status elasticsearch
How to install (ELK)Elasticsearch Logstash Kibana  on CentOs 7# curl http://127.0.0.1:9200 
How to install (ELK)Elasticsearch Logstash Kibana  on CentOs 7
vi /etc/elasticsearch/elasticsearch.yml
# Line 55 : uncomment and change your ip address
network.host: 172.16.154.132
# Line 59 : uncomment and change your port if you want ( Default is 9000)
http.port: 9200
# systemctl restart elasticsearch
How to install (ELK)Elasticsearch Logstash Kibana  on CentOs 7

Install logstash

# wget https://artifacts.elastic.co/downloads/logstash/logstash-6.4.1.rpm
# rpm –install logstash-6.4.1.rpm
# systemctl start logstash
# systemctl enable logstash
# systemctl status logstash
How to install (ELK)Elasticsearch Logstash Kibana  on CentOs 7

Install Kibana

# wget https://artifacts.elastic.co/downloads/kibana/kibana-6.4.1-x86_64.rpm
# rpm –install kibana-6.4.1-x86_64.rpm
# systemctl start kibana
# systemctl enable kibana
# systemctl status kibana
How to install (ELK)Elasticsearch Logstash Kibana  on CentOs 7# vi /etc/kibana/kibana.yml
# Line 2: uncomment and change default port it you want
server.port: 5601
# Line 7: uncomment and change to “0.0.0.0”
server.host: “0.0.0.0”
# Line 28: uncomment and change like below ( you can change default port 9200 to difference port )
elasticsearch.url: “http://172.16.154.132:9200”
# systemctl restart kibana
How to install (ELK)Elasticsearch Logstash Kibana  on CentOs 7# Add Data 
# Change on like below-> Next
How to install (ELK)Elasticsearch Logstash Kibana  on CentOs 7chmod 640 /var/log/secure

 

 

 

How to install (ELK)Elasticsearch Logstash Kibana  on CentOs 7

# Note:If who have any question or problem about Install and configure (ELK) Elasticsearch Logstash Kibana on CentOs 7, please comment or contact me. Don’t forget to follow and join my channel to view more Everything about CentOs 7

Leave a Reply

Your email address will not be published. Required fields are marked *