In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Docker containers quickly and efficiently deploy applications, resource orchestration defines and runs multiple containers, declares each service through docker-compose.yml configuration files, and creates and starts as a whole.
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:
Using docker-compose to deploy ELK with one click is as simple as wayward.
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.