gave up, but there is an alternative, which is to write to MONGO, which solves the improved performance. But we also need to develop a function to query the analysis. This time from the Internet to find a lot of solutions:
//方案1:这是我们现有的方案,优点:简单 缺点:效率低,不易查询分析,难以排错...service-->log4net-->文件 //方案2:优点:简单、效率高、有一定的查询分析功能 缺点:增加mongodb,增加一定复杂性,查询分析功能弱,需要投入开发精力和时间service-->log4net-->Mongo-->开发一个功能查询分析 //方案3:优点:性能很高,查询分析及其方便,不需要开发投入 缺点:提高了系统复杂度,需要进行大量的测试以保证其稳定性,运维需要对这些组件进行维护监控...s
Build a docker environment for the Distributed log platform from the beginning and build a docker
In the previous article (spring mvc + ELK build a log platform from the beginning), we will share with you how to build a distributed log Platform Based on spring mvc + redis + logback + logstash + elasticsearch + kibana, it is operated on the windows platform. This article mainly involves all these software environments in linux + docker.
Our goal is t
ELK classic usage-enterprise custom log collection cutting and mysql module, elkmysql
This article is included in the Linux O M Enterprise Architecture Practice Series1. Collect custom logs of cutting companies
The logs of many companies are not the same as the default log format of the service. Therefore, we need to cut the logs.1. sample logs to be cut
11:19:23, 532 [143] DEBUG performanceTrace 1145 http://api.114995.com: 8082/api/Carpool/QueryMatchRoutes 183.205.134.240 null 972533 310000 86
Label: Lucene style blog HTTP Io ar Java SP File
Preface
When the system is large, it will be split into multiple independent processes, such as Web + WCF/web API, and become a distributed system.
It is difficult to see how a request goes from start to end. If debugging and tracking are performed, the problem is more complicated. The difficulty depends on the number of processes.
The distributed log Collection System was launched.
Today we will introduce
Open-source log collection and display sy
1, Logstash use
Logstash is a fully open source tool that collects, analyzes, and stores your logs for later use. 1.1 Logstash Installation (JDK 1.8 environment)
Download Logstash 2.3.4, and unzip. 1.2 Logstash Configuration
Configure logstash.conf
Input {
file {
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 view the official website, here first posted our General Elk Log System Architecture diagram
Elasticsearch is a real-time distributed sea
)Updates Kube-dns to v1.14.8 (#57918, @rramkumar1)Influxdb is unchanged from v1.9:v1.3.3 (#53319)Grafana is unchanged from v1.9:v4.4.3 (#53319)Cadvisor is v0.29.1 (#60867)Fluentd-gcp-scaler is v0.3.0 (#61269)Updated Fluentd in Fluentd-es-image to Fluentd v1.1.0 (#58525, @monotek)Fl
Today is open source real-time log analysis ELK, ELK by ElasticSearch, Logstash and Kiabana three open source tools. Official website: https://www.elastic.co3 of these software are:Elasticsearch is an open source distributed search engine, it features: distributed, 0 configuration, automatic discovery, Index auto-shard, index copy mechanism, RESTful style interface, multi-data source, automatic search load, etc.Logstash is a fully open source tool tha
ELK + filebeat log analysis system deployment document
Environment DescriptionArchitecture Description and architecture Diagram
Filebeat is deployed on the client to collect logs and send the collected logs to logstash.Logstash sends the collected logs to elasticsearch.Kibana extracts and displays data from elasticsearch.The reason why filebeat is used for log collection is that filebeat does not use a large amount of resources like logstash, affecti
Use supervisor instead of nohup, supervisornohupUse supervisor instead of nohup
For example, logstash must run the following command:
nohup bin/logstash -f confs/zabbix.conf -l zabbix.log
For example, if I want to stop this process, I need to first check the process and then kill it, and I do not like the screen method, then the supervisor is the solution.Supervisor Installation
yum install supervisorchkcon
Build a distributed log system from scratch, mainly on spring MVC with the Elk Suite (some of the work has been done by different colleagues because of the division of labor, I just developed it in an already configured environment), including the following technical points:
Spring MVC
Logback
Logstash
Elasticsearch
Kibana
Redis
Looking at the overall architecture diagram, this kind of architecture is very easy to sol
. backgroundLogs primarily include system logs, application logs, and security logs. System operations and developers can use the log to understand the server hardware and software information, check the configuration process errors and the cause of the error occurred. Frequently analyze logs to understand the load of the server, performance security, so as to take timely measures to correct errors.Typically, the logs are stored on different devices that are scattered. If you need to manage hund
Elk is a complete set of log analysis systemsElk=logstash+elasticsearch+kibanaUnified Official Website Https://www.elastic.co/productsElk Module DescriptionLogstashRole: For processing incoming logs, collecting, filtering, and writing logsLogstash is divided into three components Input,filter,outputEnter inputCommon File,redis,kafkaExample:InputFile {Path = ['/var/log/neutron/dhcp-agent.log ']//log pathtags = [' OpenStack ', ' oslofmt ', ' neutron ',
/wiselyman/k8s-netchecker-server:v1.0Docker Pull registry.cn-beijing.aliyuncs.com/io84/elasticsearch:v2.4.1Docker Pull registry.cn-shenzhen.aliyuncs.com/solinx/fluentd-elasticsearch:1.22Docker Pull registry.cn-qingdao.aliyuncs.com/bonc/kibana:v4.6.1Docker Pull registry.cn-hangzhou.aliyuncs.com/linkcloud/k8s-helm:v2.7.2Docker Pull registry.cn-beijing.aliyuncs.com/my-img/tiller:v2.7.22. Change tag and save new image tarDocker tag registry.cn-qingdao.ali
Business Process Architecture Diagram:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/8B/0F/wKiom1hCySCiSmlZAABCPg7XKrQ543.png "title=" Aaaa.png "alt=" Wkiom1hcyscismlzaabcpg7xkrq543.png "/>A set of data collection and analysis system based on Logstash,redis,elasticsearch,kibanaSchema Diagram Description: Log Collection system: (data source) the logging behavior generated by the producer, collected and forwarded by the
Danbo Time: 2016-03-131. Save into ElasticsearchLogstash can try different protocol implementations to complete the work of writing data to Elasticsearch, which describes the HTTP approach in this section.Example configuration:Output {elasticsearch {hosts= ["192.168.0.2:9200"] Index="logstash-%{type}-%{+yyyy. MM.DD}"Document_type="%{type}"Workers=1flush_size=20000Idle_flush_time=TenTemplate_overwrite=true }}Explain:Bulk SendFlush_size and Idle_flus
Elk builds a real-time Log Analysis Platform
IntroductionElk consists of three open-source tools: elasticsearch, logstash, and kiabana. The elk platform supports log collection, log search, and log analysis at the same time. Analyzing and processing the volume of logs in the production environment is undoubtedly not a good solution.Https://www.elastic.co/
1 ). elasticsearch is an open-source distributed search engine that features: distributed, zero-c
Brief introduction:Elk consists of three open source tools, Elasticsearch, Logstash and Kiabana:Elasticsearch is an open source distributed search engine, it features: distributed, 0 configuration, automatic discovery, Index auto-shard, index copy mechanism, RESTful style interface, multi-data source, automatic search load, etc.Logstash is a fully open source tool that collects, filters, and stores your logs for later use (for example, search).Kibana
System operations and developers can use the log to understand the server hardware and software information, check the configuration process errors and the cause of the error occurred. Frequently analyze logs to understand the load of the server, performance security, so as to take timely measures to correct errors. The role of the log is self-evident, but for a large number of logs distributed across multiple machines, viewing is particularly troublesome. Therefore, the use of log analysis syst
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.