How to install ELK stack on ubuntu EC2 instance ( ElasticSearch | kibana | logstash ) Part -1

preview_player
Показать описание
#SSH to the elk server execute below commands

sudo apt update

sudo apt install -y openjdk-8-jdk

sudo apt install nginx -y

#Install ElasticSearch

#Install Kibana

#Install Logstash

#Install filebeat

#.Configure elasticsearch
sudo -i

Uncomment below

#Configure kibana

Uncomment below

#Adding htaccess password

sudo apt install -y apache2-utils

give a password you like

#Configure the nginx

sudo vim /etc/nginx/sites-available/default

server {
listen 80;
server_name 3.89.248.7;

auth_basic "Restricted Access";

location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

}
}

We have allow the ElasticSearch port and kibana port to the outside

sudo systemctl restart nginx

Use admin as user name & password for access the kibana dashboard
Рекомендации по теме
Комментарии
Автор

is it necessary to install logstash? in the video, logstash is not installed.

ven-hbzr
Автор

How i can Start the Elastic Stack with security enabled automatically ?

kinergate-nc
Автор

If I wanted to know the public IP and port of my logstash server, what would it be?
the ip of the ec2 instance? the port 1514 for syslog is open for default?

rainbow-jwog
Автор

If I want to use t2.micro/t2.small then is it possible to configure ?

PalashGadpayle
Автор

you helped me so much !!! thank you 🙏 ❤

beyzanuryuksel
Автор

which username and password did u put in browser for kibana in the last

SaadKhan-escd