When we set up the Docker cluster, we will solve the problem of how to collect the log Elk provides a complete solution this article mainly introduces the use of Docker to build Elk collect Docker cluster log
Elk Introduction
method actual Combat Elk Log Management schemeDocker NetworkFamiliar with Docker-supported network patterns familiar with the features of various modelsDocker communication across hostsOverlay's explanation of the actual combat Docker overlay network for cross-host communicationDocker ComposeDocker-compose explains the actual combat
0, Preface
This article is mainly referred to dockerinfo this article Elk log system, which Docker configuration file is mainly provided by the blog, I do just on the basis of this article, deleted part of this article does not need, while noting the construction process of some problems.
About Elk, this article does not do too much introduction, detailed can vie
centralize logging on CentOS 7 using Logstash and Kibana
Centralized logging is useful when trying to identify a problem with a server or application because it allows you to search all logs in a single location. It is also useful because it allows you to identify issues across multiple servers by associating their logs within a specific time frame. This series of tutorials will teach you how to install Logstash and Kibana on CentOS, and then how to add more filters to construct your log data.
article focuses on the introduction of ELK.
Back to top ELK protocol stack introduction and architecture
ELK is not a software, but a complete set of solutions, is the first acronym for three software products, Elasticsearch,logstash and Kibana. These three software are open-source software, usually with the use, but
ELK StackELK stack is also a combination of three open source software, the formation of a powerful real-time log collection analysis and display system.
Logstash: Log Collection tool, from local disk, network services (their own listening port, accept user log), Message Queuing to collect a variety of logs, and then filter analysis, and input the log into the Elasticsearch.
Elasticsearch: Log Distributed
ELK is a combination of Elasticsearch Logstash Kibana;Here is a simple how to install under the centos6.x system, follow-up write how to use these software;This is based on the official website recommended using Yum method installed;1. ElasticsearchRPM--import Https://packages.elastic.co/GPG-KEY-elasticsearcCat/etc/yum.repos.d/elsticsearch.repo[Elasticsearch-2.x]name=elasticsearch repository for 2.x packagesbaseurl=http://packages.elastic.co/elasticse
Test installation in the latest ELK Stack versionLet's talk a little bit about it.First view versionFilebeat1.0.0-rc2 logstash2.0.0-1 elasticsearch2.0.0 kibana4.2So much content can be summarized as follows:GlossaryElasticsearch storage IndexKibana UIKibana dashboard visual mind chartLogstash Input Beats plugin collects eventsElasticsearch output plugin sends transactionsFilebeat log data shipperTopbeat lig
Deploying Django applications with DockerThe experimental environment: Tencent Cloud Server CentOS 6.7 x86_64Because the Docker Hub of the Mirror in the domestic download speed is very slow, so this time using the Daocloud provided by the mirror. The basic operation of Docker can refer to http://www.tianfeiyu.com/?cat=159.
Docker deployment of Django application
for Asia/Shanghai-[Email protected]mymail.cn # Create administrator user name-seafile_admin_password=111111 # Create Administrator account name initial passwordvolumes:#Seafilel persisted data files-/usr/docker-vol/seafile/data/:/shared Deploy:replicas:1Restart_policy:condition:on-Failure Ports:-10,000:8,000#the test found that the current file service port mapping must be 8082, otherwise you will not be able to use the synchronization directory-8,08
Similar to the traditional approach, building and running Docker containers is similar to building and running programs on a virtual machine, just using a new set of tools and techniques.Unlike virtual machines, Docker containers increase flexibility by isolating host hosts from applications or services, but with the introduction of additional container embedding layers, some overhead is added.The typical
' Services:mysql:image:mysql:5.6.40Environment:#set the time zone to Asia/shanghai-tz=asia/Shanghai-mysql_root_password=123456volumes:-/usr/docker-vol/mysql/data:/var/lib/MySQL Deploy:replicas:1restart_policy:condition:any Resources:limits:cpus:"0.2"memory:512m update_config:parallelism:1#Update 1 copies at a timeDelay:5s#each update intervalMonitor:10s#how long a single update does not end to determine that the update failedmax_failure_ratio:0.1#maxi
Click to have a surprise
With the stack YAML file defined, the application can be deployed through the Docker stack deploy command.
Docker will create the various resources according to the YAML content. In order to not duplicate the name, all resources will be prefixed with the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.