How to install ELK on AmazonLinux 2 ?

Install ElasticSearch and Kibana on EC2 Amazon Linux 2


You can follow tutorial step by step to complete your task.

Install requirement : Java8

Install Java8 :

yum update -y 
yum install -y java 1.8.0 

Install ElasticSearch

Create yum repo file /etc/yum.repos.d/elasticsearch.repo

Edit your repo

awslagi.com


yum install elasticsearch
chkconfig --add elasticsearch


Setup Kibana:

Create yum repo file /etc/yum.repos.d/kibana.repo



yum install -y kibana
chkconfig --add kibana

Configure ES and Kibana



nano /etc/elasticsearch/elasticsearch.yml

Modify node.name, network.host, cluster.initial_master_nodes

Then 

nano /etc/kibana/kibana.yml
Modify server.host

Start ES and Kibana:

systemctl start elasticsearch
systemctl start kibana

Access EC2 dns via port 9200 and 5601 to test.

http://youripaddress:9200
http://youripaddress:5601

Review

awslagi.com


Install logstash

yum -y install logstash



Source: https://www.awslagi.com









Nhận xét