No video

How to Install Elasticsearch, Logstash, Kibana and Filebeat (ELK Stack) on Ubuntu

  Рет қаралды 18,960

DevOps&Cloud World

DevOps&Cloud World

Күн бұрын

Install Elasticsearch, Logstash, Kibana and Filebeat
curl -fsSL artifacts.elas... | sudo gpg --dearmor -o /usr/share/keyrings/elastic.gpg
echo "deb [signed-by=/usr/share/keyrings/elastic.gpg] artifacts.elas... stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
sudo apt update
sudo apt install elasticsearch
vim /etc/elasticsearch/elasticsearch.yml
Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: localhost
sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch
curl -X GET "localhost:9200"
sudo apt install kibana
Sudo systemctl enable kibana
systemctl start kibana
Sudo apt install logstash
sudo nano /etc/logstash/conf.d/02-beats-input.conf
input {
beats {
port = 5044
}
}
sudo nano /etc/logstash/conf.d/30-elasticsearch-output.conf
output {
if [@metadata][pipeline] {
elasticsearch {
hosts = ["localhost:9200"]
manage_template = false
index = "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
pipeline = "%{[@metadata][pipeline]}"
}
} else {
elasticsearch {
hosts = ["localhost:9200"]
manage_template = false
index = "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}
}
sudo -u logstash /usr/share/logstash/bin/logstash --path.settings /etc/logstash -t
sudo systemctl start logstash
sudo systemctl enable logstash
sudo apt install filebeat
sudo vim /etc/filebeat/filebeat.yml
output.logstash:
# The Logstash hosts
hosts: ["localhost:5044"]
sudo filebeat modules enable system
sudo filebeat modules list
sudo filebeat setup --pipelines --modules system
sudo filebeat setup --index-management -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'
sudo filebeat setup -E output.logstash.enabled=false -E output.elasticsearch.hosts=['localhost:9200'] -E setup.kibana.host=localhost:5601
Sudo filebeat modules enable system
sudo systemctl enable filebeat
curl -XGET 'localhost:9200/filebeat-*/_search?pretty'

Пікірлер: 14
Setting Up the ELK Stack in 2023: Step-by-Step Tutorial
36:36
The Devops Diary
Рет қаралды 6 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 4,8 МЛН
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 62 МЛН
This Dumbbell Is Impossible To Lift!
01:00
Stokes Twins
Рет қаралды 42 МЛН
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,2 МЛН
DVS Q&A with an Expert: Jason Forrest
57:51
Data Visualization Society
Рет қаралды 8
Setup Elasticsearch Cluster + Kibana 8.x
57:14
Evermight Systems
Рет қаралды 24 М.
How To Install Elasticsearch and Kibana on Ubuntu Linux
40:15
Virtual Tech Meetup
Рет қаралды 52 М.
Everything you Always Wanted to Know about Filebeat * But Were Afraid to Ask
1:07:10
Official Elastic Community
Рет қаралды 38 М.
Install Elasticsearch + Kibana 8.x with Self-Signed SSL
29:15
Evermight Systems
Рет қаралды 17 М.
Power Apps Model Driven Apps FULL COURSE for Beginners
3:23:34
Lisa Crosbie
Рет қаралды 510 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 4,8 МЛН