In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What this article shares with you is a detailed tutorial on deploying ELK with docker-compose. I believe most people don't know how to deploy it yet. In order to let you learn, I have summarized the following contents.
ELK is a commonly used log management system, which is deployed with one click of Docker-compose, eliminating the tedious steps of installation and configuration.
L ELK architecture:
L Docker installation:
Https://docs.docker.com/install/linux/docker-ce/ubuntu/
Https://docs.docker.com/docker-for-windows/install/
L script download:
Https://github.com/rickding/HelloDocker/tree/master/elk
├── docker-compose.yml
├── pull.sh
├── up.sh
├── logs.sh
├── down.sh
L docker-compose.yml script to configure the ELK service:
Logstash and kibana need to connect to the elasticsearch instance, so the depends_on property is set.
Version:'3'
Services:
Elasticsearch:
Hostname: elasticsearch
Image: elasticsearch:latest
Restart: always
Ports:
-9200 purl 9200
-9300 purl 9300
Log:
Image: registry.cn-shanghai.aliyuncs.com/hellodock/logstash:latest
Restart: always
Ports:
-9600 purl 9600
-9601 Freund 9601
Depends_on:
-elasticsearch
Kibana:
Image: registry.cn-shanghai.aliyuncs.com/hellodock/kibana:latest
Restart: always
Ports:
-5601 Fraser 5601
Depends_on:
-elasticsearch
L pull.sh pull image
You can run docker pull elasticsearch:latest directly to pull the image and view it with docker images:
L up.sh startup container
The docker-compose up-d command is encapsulated in the script. After startup, run docker ps to view the container instance:
L logs.sh View Log
Custom commands highlight important information:
Docker-compose logs-ft | grep-- color-I-e error-e warn-e version-e exception
L down.sh stop service
Docker-compose down-- remove-orphans stops and deletes the container:
L View ELK service:
Elasticsearch:
Logstsh:
Kibana:
After reading this article, have you learned how to deploy ELK with docker-compose? Isn't it easy? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.