Movatterモバイル変換


[0]ホーム

URL:


CN113760878A - A method and system for log parsing of microservice architecture based on domestic CPU and operating system - Google Patents

A method and system for log parsing of microservice architecture based on domestic CPU and operating system
Download PDF

Info

Publication number
CN113760878A
CN113760878ACN202110884184.2ACN202110884184ACN113760878ACN 113760878 ACN113760878 ACN 113760878ACN 202110884184 ACN202110884184 ACN 202110884184ACN 113760878 ACN113760878 ACN 113760878A
Authority
CN
China
Prior art keywords
log
logs
service
processing
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110884184.2A
Other languages
Chinese (zh)
Inventor
王威
李春龙
焦方忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Group Co LtdfiledCriticalInspur Software Group Co Ltd
Priority to CN202110884184.2ApriorityCriticalpatent/CN113760878A/en
Publication of CN113760878ApublicationCriticalpatent/CN113760878A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种基于国产CPU和操作系统的微服务架构日志解析方法及系统,属于微服务架构技术领域,该方法通过filebeat进行日志的采集,收集数据库的慢查询日志、错误日志以及第三方服务日志,结合日志系统,自动发布并启动每一个filebeat进程;采用Log Streams作为流处理服务,并采用KafkaStreams作为ETL流处理过滤清洗无用日志;通过深度分析算法依据日志分析出来的不同的问题采用不同的算法分析生成解决方案;支持自动容错处理。本发明充分考虑到全国产环境下性能及兼容性问题,对于微服务架构系统问题的排查与处理起到很好的辅助作用,具有良好的通用性、移植性和扩展性。

Figure 202110884184

The invention discloses a microservice architecture log analysis method and system based on a domestic CPU and an operating system, and belongs to the technical field of microservice architecture. The method collects logs through filebeat, and collects slow query logs, error logs and third-party logs of a database. The service log, combined with the log system, automatically publishes and starts each filebeat process; uses Log Streams as the stream processing service, and uses Kafka Streams as the ETL stream processing to filter and clean useless logs; through the in-depth analysis algorithm according to the different problems analyzed by the log, different problems are used. Algorithm analysis generates solutions; supports automatic fault-tolerant processing. The invention fully considers the performance and compatibility problems in the national production environment, plays a good auxiliary role in the investigation and processing of the micro-service architecture system problems, and has good versatility, portability and scalability.

Figure 202110884184

Description

Micro-service architecture log analysis method and system based on domestic CPU and operating system
Technical Field
The invention relates to the technical field of micro-service architecture, in particular to a micro-service architecture log analysis method and system based on a domestic CPU and an operating system.
Background
Under the vigorous support of the country, nationwide hardware with independent intellectual property rights is developed rapidly, and particularly in recent years, a plurality of basic hardware and software products with independent intellectual property rights emerge in China. The high-end general chips with independent intellectual property rights, such as dragon cores, soars, the great public, and the like, are developed vigorously, and the technical level reaches the world advanced level of similar products.
Software systems based on national environment microservice architecture have been deployed in many areas.
In a production environment, logs play an important role, the logs are needed for abnormal troubleshooting, the logs are needed for performance optimization, the logs are needed for business troubleshooting, and the like, however, a micro-service architecture usually has a plurality of services, each service only stores the local logs of the service individually, when the logs are needed to assist in troubleshooting, nodes where the logs are located are difficult to find, valuable logs related to problems are difficult to find, and in view of the problems of performance, compatibility and the like in a domestic environment, the problem troubleshooting of the micro-service architecture system is difficult.
Disclosure of Invention
The technical task of the invention is to provide a micro-service architecture log analysis method and system based on a domestic CPU and an operating system, which fully consider the problems of performance and compatibility in the national environment, play a good auxiliary role in the troubleshooting and processing of the problems of the micro-service architecture system, and have good universality, portability and expansibility.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a log analysis method of a micro-service architecture based on a domestic CPU and an operating system is characterized in that logs are collected through filebeat, slow query logs, error logs and third-party service logs of a database are collected, and each filebeat process is automatically issued and started in combination with a log system;
adopting Log Streams as stream processing service, and adopting Kafka Streams as ETL stream processing, filtering and cleaning useless logs;
the logs are stored in an ElasticSearch, the ElasticSearch is deployed in a cluster mode, and cluster management nodes included in ElasticSearch cluster nodes are used as distributed nodes and nodes responsible for input storage, query and import;
automatically generating a corresponding correct sql statement solution according to a currently used database through a depth analysis algorithm, and analyzing and generating the solution by adopting different algorithms according to different problems analyzed by a log;
and supporting automatic fault-tolerant processing, calling a corresponding script to automatically perform fault-tolerant processing, and supporting secondary expansion of an algorithm.
The method is based on the operating systems of various domestic CPUs (central processing units), such as winning bid, depth, Puhua and the like, and can be compatible with the domestic software and hardware environments;
the method is compatible and adaptive to various domestic databases such as Shentong, Jincang, Dameng and the like in the national environment, can solve the problems caused by sql grammar difference, and can generate correct sql statement processing methods for some common database problems according to the currently used database.
Further, considering the performance problem under the domestic environment, the filebeat tuning treatment includes:
optimizing a Filebeat. yml configuration file, and improving the performance of the filebeat writing ES by adjusting configuration parameters of an input end and an output. elastic search end;
optimization at the source code level further improves performance by reducing unnecessary fields added by filecut for the log.
Preferably, the filtering and cleaning of the useless logs is performed in a multidimensional way according to log grades, time points, time periods and business type weight indexes, the useless logs are cleared, and different requirements are met.
Preferably, the rules for implementing dynamic filtering cleaning by the interfacing configuration are as follows:
1) acquiring an interface configuration log, and acquiring the full amount of logs at a default error level;
2) windowing in the flow processing process by taking the error time point as a center, radiating N time points which can be configured up and down, acquiring non-error level logs, and acquiring only info level by default;
3) counting service sql in real time according to service requirements, such as a peak period stage, counting query frequency of similar services sql within one hour, and providing a basis for optimizing a database for dba, for example, creating an index according to the queried sql;
4) and dynamically cleaning the filtering logs according to the indexes of the service types in the peak period, wherein the filtering logs comprise weight indexes, log grade indexes, log maximum limiting quantity indexes and time period indexes of each service in a time period, and time windows are dynamically shrunk according to different time periods.
Further, the log collection configuration is configured through interface, wherein the log collection configuration comprises a service name, a log level, keywords and a time point;
after the log collection is finished, the log is transversely spliced into a complete link log according to the method name, the timestamp and the service calling sequence, the calling sequence of each service can be visually seen, and the problem is easier to troubleshoot.
Preferably, the deep analysis algorithm collects common problems accumulated in daily projects and solutions thereof for classification and arrangement, and a whole set of solution formed by a corresponding algorithm in java language and shell script is formed for each problem.
For example, if a field in the log is too long, the program will automatically find out the table name and field length of the table name and field length in the log, and give the possibility that the fields are too long with the maximum probability.
Preferably, the automatic fault tolerance processing is processed by a shell scripting language; the problems capable of being automatically processed in a fault-tolerant manner are in an automatic fault-tolerant library, and the problems are automatically processed in a fault-tolerant manner by clicking the problems with automatic fault-tolerant execution marks in a log system.
Preferably, the method is implemented as follows:
1) the method comprises the steps of collecting logs, wherein in a distributed scene, a log collection module is added on each application microservice and is used for collecting various types of logs on the microservice;
2) filtering and cleaning the log, and realizing dynamic filtering and cleaning through interface configuration;
3) the log storage, wherein the management of the log system is to perform initialization action on an ElasticSearch in advance for service, and create the type and the related attribute of a designated field of a storage structure;
4) displaying the log, namely displaying an interface of a log system by using a web page mode, wherein the front end adopts AngularJS and the rear end SpringBoot;
5) intelligent log analysis and problem processing, and log intelligent analysis, automatic fault-tolerant processing and performance optimization functions are integrated; collecting common problems, corresponding algorithms and shell scripting language to form a whole set of solution; a quadratic extension of the solution is supported.
The invention also claims a micro-service architecture log analysis system based on a domestic CPU and an operating system, which comprises a log collection module, a log cleaning and filtering module and a log processing module, wherein the log processing comprises log display search, log statistics, log export, intelligent analysis and automatic fault-tolerant processing;
the system realizes the micro-service architecture log analysis method based on the domestic CPU and the operating system.
The invention also claims a micro-service architecture log analysis device based on a domestic CPU and an operating system, which comprises: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is used for calling the machine readable program and executing the micro service architecture log analysis method based on the domestic CPU and the operating system.
Compared with the prior art, the micro-service architecture log analysis method and system based on the domestic CPU and the operating system have the following beneficial effects:
the method and the system can realize the investigation of the logs of the national environment microservice architecture system, can more intuitively display the error report of each service in the transverse series connection for a certain problem, and are easier to solve the problem;
the performance optimization investigation of the system can be supported on the premise of solving the problems, and a better auxiliary effect is achieved on the optimization of the performance problems in the national production environment;
the intelligent algorithm analysis is supported, and a solution to the problem can be further provided according to the log, so that the problem solving efficiency is further improved;
the automatic fault-tolerant function of simple problems is supported, and a large amount of workload is reduced;
the processing of the common problems of the method and the system is an independent algorithm, secondary expansion is supported, the processing capacity of the method and the system is more mature along with the maturity of the technology, experience and solution, the functions can be further played, manual intervention is reduced, and further the workload is reduced.
Drawings
FIG. 1 is a functional flowchart of a method for parsing a micro service architecture log based on a domestic CPU and an operating system according to an embodiment of the present invention;
fig. 2 is a core architecture diagram of a micro-service architecture log parsing method based on a domestic CPU and an operating system according to an embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the following specific examples.
A log analysis method of micro-service architecture based on domestic CPU and operating system, which collects logs through filebeat, collects slow query logs, error logs and third-party service logs of database, such as nginx, besides business service logs; automatically releasing and starting each filecut process by combining a log system; considering the performance problem under the domestic environment, the filecut tuning treatment comprises the following steps:
optimizing a Filebeat. yml configuration file, and improving the performance of the filebeat writing ES by adjusting configuration parameters of an input end and an output. elastic search end;
optimization at the source code level further improves performance by reducing unnecessary fields added by filecut for the log.
Adopting Log Streams as stream processing service, and adopting Kafka Streams as ETL stream processing, filtering and cleaning useless logs; and carrying out multidimensional filtering on log levels, time points, time periods and service type weight indexes to eliminate useless logs and meet different requirements.
The log collection configuration is configured through interfacing, wherein the log collection configuration comprises a service name, a log level, keywords and a time point;
after the log collection is finished, the log is transversely spliced into a complete link log according to the method name, the timestamp and the service calling sequence, the calling sequence of each service can be visually seen, and the problem is easier to troubleshoot.
Automatically generating a corresponding correct sql statement solution according to a currently used database through a depth analysis algorithm, and analyzing and generating the solution by adopting different algorithms according to different problems analyzed by a log;
the deep analysis algorithm is a complete set of solution formed by collecting common problems accumulated in daily projects and solving methods thereof, and forming a corresponding algorithm for each problem by java language and shell script. For example, if a field in the log is too long, the program will automatically find out the table name and field length of the log, and automatically find out the table-building statement and give the probability of which fields are too long.
Supporting automatic fault-tolerant processing, calling a corresponding script to automatically carry out fault-tolerant processing, and supporting secondary expansion of an algorithm;
the automatic fault-tolerant processing is mainly processed by shell scripting language; problems capable of being automatically fault-tolerant processed are usually in an automatic fault-tolerant library, and automatic fault-tolerant processing can be carried out by clicking when automatic fault-tolerant execution marks exist in a log system for the problems;
for example, a service is started, the occupation of a prompt port cannot be started, an automatic fault tolerance mechanism finds the process id of a specified port number through a netstat-tunlp | grep port number in a shell script language according to the port number occupied in a log, then finds the position and the name of the process through ll/proc/process id/cwd, feeds back whether an interface kills the process for automatic fault tolerance, and if so, kills the process and then transfers a start script to complete the automatic fault tolerance processing of the problem. The above is a simple example to illustrate the processing mechanism. Other problem solutions are probably the same, and the common simple problem processing is supported at present, secondary expansion can be supported, and the problem of mature processing of an algorithm and a script is more and more complicated.
The method fully considers the different grammatical problems of databases such as Shentong databases, Jincang databases and Dameng databases in the national production environment, and can automatically generate corresponding sql sentences according to the database used in the current environment; the common problem depth intelligent analysis algorithm supports secondary expansion.
The method supports a low-level automatic fault-tolerant function according to the log, and can automatically carry out fault-tolerant processing according to a corresponding script after analysis according to an intelligent analysis algorithm for some common simple problems such as field shortage of a database, few tables of the database, port occupation, service stop and the like.
The method provided by the embodiment is compatible and adaptive to various domestic databases such as Shentong, Jincang, Dameng and the like in the national environment, can solve the problems caused by sql grammar difference, and can generate correct sql statement processing methods for some common database problems according to the currently used database.
The method is based on the operating systems of various domestic CPUs (central processing units), such as winning bid, depth, Puhua and the like, and can be compatible with the domestic software and hardware environments;
the method is compatible and adaptive to various domestic databases such as Shentong, Jincang, Dameng and the like in the national environment, can solve the problems caused by sql grammar difference, and can generate correct sql statement processing methods for some common database problems according to the currently used database.
The implementation flow of the method is as follows:
1. log collection
In a distributed scene, a log collection module is added on each application microservice and is responsible for collecting various logs on the microservice, a log file collection end uses filehead, operation and maintenance are configured in a background management interface mode, each machine corresponds to one filehead, topic corresponding to each filehead log can be one-to-one or multiple-to-one, and different strategies are configured according to daily log quantity.
2. Log cleaning filtering
Log filtering and cleaning adopt Log Streams processing service, and the Log Streams processing service introduces a filter to filter valuable Log data, thereby reducing the resource cost used by the Log service; the technique uses Kafka Streams as ETL stream processing.
The rules for implementing dynamic filtering cleaning by interfacing configuration are as follows:
1) acquiring an interface configuration log, and acquiring the full amount of logs at a default error level;
2) windowing in the flow processing process by taking the error time point as a center, radiating N time points which can be configured up and down, acquiring non-error level logs, and acquiring only info level by default;
3) and counting the service sql in real time according to service requirements, such as: in the peak period stage, the query frequency of the similar service sql within one hour is counted, and a basis for optimizing a database can be provided for dba, for example, an index is created according to the queried sql;
4) dynamically cleaning and filtering logs according to the weight index, the log grade index, the maximum log limiting amount index and the time period index of each service in a peak period in accordance with the service type; dynamically contracting the time window according to different time periods; .
3. Log storage
The logs are stored in an ElasticSearch, the ElasticSearch is deployed in a cluster mode, and the ElasticSearch cluster nodes are divided into three classes, namely, masternode, client node and data node.
Master mode, management node of cluster, its main function is to maintain metadata, manage the state of each node of cluster;
the client node is used as a distribution node and is responsible for distributing the received request to each data node;
and the Data node is responsible for storing, inquiring and importing the number.
Elastic search memory structure definition: the management microserver of the log system carries out initialization action on an elastic search in advance and creates the type and the related attributes of the designated field of the storage structure.
4. Log display
The interface of the log system uses a web page mode, and the front end adopts AngularJS rear-end Spring Boot. The service is separated and specially used as a display service, and the service develops and integrates the statistical query, log export, micro-service log chain tracking viewing and the like of the log in a web interface.
5. Intelligent log analysis and problem processing
The log system integrates the functions of log intelligent deep analysis, automatic fault-tolerant processing and performance optimization, collects a common problem library, a corresponding algorithm and a shell script language to form a whole set of solution, and supports secondary expansion of the solution.
The embodiment of the invention also provides a micro-service architecture log analysis system based on a domestic CPU and an operating system, which comprises a log collection module, a log cleaning and filtering module and a log processing module, wherein the log processing comprises log display search, log statistics, log export, intelligent analysis and automatic fault-tolerant processing;
the system realizes the micro-service architecture log analysis method based on the domestic CPU and the operating system in the embodiment.
The collection of the logs adopts lightweight filebeat, and meanwhile, the performance problem under the domestic environment is considered, and the log collection efficiency is further improved by optimizing from the aspects of configuration and source codes.
Firstly, configuring log acquisition configuration including service names, log levels, keywords and time points through an interface session, acquiescently acquiring error-level logs, transversely splicing the logs into complete link logs according to method names, timestamps and service calling sequences after log acquisition is finished, and visually seeing the calling sequences of various services to be easier to troubleshoot problems; besides the problem of troubleshooting, the method supports sql optimization extraction according to the log and performs real-time service sql statistics according to service requirements for a specific service, such as: and in the peak period stage, counting the query frequency of the similar service sql within one hour. The dba may be provided a basis for optimizing the database, such as creating an index by the sql of the query.
The system supports intelligent analysis of algorithms of common problems, can perform deep analysis according to the log and generate solutions, and for example, intelligent analysis algorithms such as database table shortage, field overlong and the like can analyze which table, field or about which field overlong range set according to the log. Meanwhile, in view of grammatical differences among databases in a nationwide environment, such as the databases of Shentong, Jincang, Dameng and the like, an intelligent algorithm can automatically generate a corresponding correct sql statement solution according to the currently used database, for example, length statements of Shentong data modification fields are as follows:
the alter table name modify field name type (length),
and the sql statement under the treasury database is:
the alter table name the alter field name type field type (length).
Different algorithms are needed to analyze and generate solutions according to different problems analyzed by logs, and only daily simple problem processing and secondary expansion of the algorithms are supported at present.
For simple problems, the method can support an automatic fault-tolerant function, and calls a corresponding script to automatically carry out fault-tolerant processing.
The embodiment of the invention also provides a micro-service architecture log analysis device based on a domestic CPU and an operating system, which comprises: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to execute the method for parsing a micro service architecture log based on a domestic CPU and an operating system in the foregoing embodiment.
The present invention can be easily implemented by those skilled in the art from the above detailed description. It should be understood, however, that the intention is not to limit the invention to the particular embodiments described. On the basis of the disclosed embodiments, a person skilled in the art can combine different technical features at will, thereby implementing different technical solutions.

Claims (10)

Translated fromChinese
1.一种基于国产CPU和操作系统的微服务架构日志解析方法,其特征在于通过filebeat进行日志的采集,收集数据库的慢查询日志、错误日志以及第三方服务日志,结合日志系统,自动发布并启动每一个filebeat进程;1. A microservice architecture log analysis method based on a domestic CPU and an operating system, characterized in that the log collection is carried out by filebeat, the slow query log, error log and third-party service log of the database are collected, combined with the log system, automatically publish and Start each filebeat process;采用Log Streams作为流处理服务,并采用Kafka Streams作为ETL流处理过滤清洗无用日志;Use Log Streams as stream processing service, and use Kafka Streams as ETL stream processing to filter and clean useless logs;日志存储在ElasticSearch中,ElasticSearch使用集群方式进行部署,ElasticSearch集群节点包括的集群管理节点,用作分发的节点和负责输的存储、查询及导入的节点;Logs are stored in ElasticSearch, and ElasticSearch is deployed in a cluster mode. The cluster management nodes included in the ElasticSearch cluster nodes are used for distribution nodes and nodes responsible for storage, query and import of input;通过深度分析算法依据当前使用的数据库自动生成对应正确的sql语句解决方案,依据日志分析出来的不同的问题采用不同的算法分析生成解决方案;Through the in-depth analysis algorithm, the corresponding correct sql statement solution is automatically generated according to the currently used database, and different algorithms are used to analyze and generate solutions according to the different problems analyzed by the log;支持自动容错处理,调用对应脚本自动进行容错处理,支持算法的二次扩展。Support automatic fault-tolerant processing, call the corresponding script to automatically perform fault-tolerant processing, and support the secondary expansion of the algorithm.2.根据权利要求1所述的一种基于国产CPU和操作系统的微服务架构日志解析方法,其特征在于对所述filebeat调优处理,包括:2. a kind of microservice architecture log parsing method based on domestic CPU and operating system according to claim 1, is characterized in that to described filebeat tuning process, comprising:Filebeat.yml配置文件的优化通过调整input端配置和output.elasticsearch端配置参数提升filebeat写ES的性能;The optimization of the Filebeat.yml configuration file improves the performance of filebeat writing ES by adjusting the input configuration and output.elasticsearch configuration parameters;源码层面的优化通过减少filebeat为日志添加的不必要的字段进一步提升性能。Source-level optimizations further improve performance by reducing unnecessary fields that filebeat adds to logs.3.根据权利要求1所述的一种基于国产CPU和操作系统的微服务架构日志解析方法,其特征在于所述过滤清洗无用日志,从日志级别、时间点、时间段、业务类型权重指标多维度进行过滤,清除无用日志。3. a kind of microservice architecture log analysis method based on domestic CPU and operating system according to claim 1, it is characterized in that described filtering and cleaning useless log, from log level, time point, time period, business type weight index more. Dimensions are filtered to remove useless logs.4.根据权利要求1或3所述的一种基于国产CPU和操作系统的微服务架构日志解析方法,其特征在于通过界面化配置实现动态过滤清洗的规则如下:4. a kind of microservice architecture log analysis method based on domestic CPU and operating system according to claim 1 and 3, it is characterized in that the rule that realizes dynamic filtering and cleaning through interface configuration is as follows:1)、界面化配置日志采集,默认error级别的日志全量采集;1) Interface configuration log collection, the default error level log collection is full;2)、以错误时间点为中心,在流处理中开窗,辐射上下可配的N时间点采集非error级别日志,默认只采info级别;2) Taking the error time point as the center, open the window in the stream processing, and collect non-error level logs at the N time points that can be configured up and down the radiation. By default, only the info level is used;3)、按业务需求实时统计业务sql;3), real-time statistics of business sql according to business needs;4)、高峰时段按业务类型的指标动态清洗过滤日志,包括权重指标、日志等级指标、每个服务在一个时间段内日志最大限制量指标以及时间段指标,根据不同的时间段动态收缩时间窗口。4) During peak hours, logs are dynamically cleaned and filtered according to business type indicators, including weight indicators, log level indicators, maximum log limit indicators for each service within a time period, and time period indicators, and dynamically shrink the time window according to different time periods. .5.根据权利要求4所述的一种基于国产CPU和操作系统的微服务架构日志解析方法,其特征在于通过界面化配置日志采集配置,包括服务名、日志级别、关键词和时间点;5. a kind of micro-service architecture log analysis method based on domestic CPU and operating system according to claim 4, is characterized in that through interface configuration log collection configuration, comprises service name, log level, keyword and time point;日志采集完根据方法名、时间戳、服务调用顺序横向拼接成完整链路日志。After the log is collected, it is horizontally spliced into a complete link log according to the method name, timestamp, and service invocation sequence.6.根据权利要求1所述的一种基于国产CPU和操作系统的微服务架构日志解析方法,其特征在于所述深度分析算法收集日常项目所积累的常用问题及其解决方法进行分类整理,对每一个问题形成一个对应的算法以java语言、shell脚本形成的一整套解决方案。6. a kind of microservice architecture log analysis method based on domestic CPU and operating system according to claim 1, is characterized in that described in-depth analysis algorithm collects common problems and solutions accumulated by daily projects to classify and sort out, to Each problem forms a complete set of solutions formed by a corresponding algorithm in java language and shell script.7.根据权利要求1或6所述的一种基于国产CPU和操作系统的微服务架构日志解析方法,其特征在于所述自动容错处理,通过shell脚本语言来处理;能够自动容错处理的问题在自动容错库中,此类问题在日志系统中有自动容错执行标志,点击即可进行自动容错处理。7. a kind of microservice architecture log parsing method based on domestic CPU and operating system according to claim 1 or 6, it is characterized in that described automatic fault-tolerant processing is handled by shell script language; The problem that can automatic fault-tolerant processing is in In the automatic fault tolerance library, there are automatic fault tolerance execution signs in the log system for such problems, and automatic fault tolerance processing can be performed by clicking on them.8.根据权利要求1所述的一种基于国产CPU和操作系统的微服务架构日志解析方法,其特征在于该方法的实现过程如下:8. a kind of microservice architecture log parsing method based on domestic CPU and operating system according to claim 1, is characterized in that the realization process of this method is as follows:1)、日志收集,在分布式场景下,每个应用微服务上都增加一个日志采集模块,用于收集本微服务上的各类型的日志;1) Log collection. In a distributed scenario, a log collection module is added to each application microservice to collect various types of logs on the microservice;2)、日志过滤、清洗,通过界面化配置实现动态过滤清洗;2), log filtering, cleaning, and dynamic filtering and cleaning through interface configuration;3)、日志存储,日志系统的管理为服务预先在ElasticSearch上进行初始化动作,创建存储结构指定字段的类型和相关属性;3), log storage, the management of the log system performs initialization actions on ElasticSearch in advance for the service, and creates the type and related attributes of the specified fields of the storage structure;4)、日志展示,使用web页面方式展示日志系统的界面,前端采用AngularJS,后端SpringBoot;4), log display, use web page to display the interface of the log system, the front end adopts AngularJS, and the back end SpringBoot;5)、日志智能分析与问题处理,集成日志智能分析、自动容错处理、性能优化功能;收集常见问题、对应算法、shell脚本语言形成一整套解决方案;支持解决方案的二次扩展。5), log intelligent analysis and problem processing, integrated log intelligent analysis, automatic fault tolerance processing, performance optimization functions; collect common problems, corresponding algorithms, shell scripting language to form a complete set of solutions; support the secondary expansion of the solution.9.一种基于国产CPU和操作系统的微服务架构日志解析系统,其特征在于包括日志收集模块、日志清洗过滤模块和日志处理模块,所述日志处理包括日志展示搜索、日志统计、日志导出、智能分析和自动容错处理;9. A microservice architecture log parsing system based on a domestic CPU and an operating system, characterized in that it comprises a log collection module, a log cleaning filter module and a log processing module, and the log processing includes log display search, log statistics, log export, Intelligent analysis and automatic fault-tolerant processing;该系统实现权利要求1至8任一所述的基于国产CPU、操作系统的微服务架构日志解析方法。The system implements the microservice architecture log parsing method based on a domestic CPU and an operating system according to any one of claims 1 to 8.10.一种基于国产CPU和操作系统的微服务架构日志解析装置,其特征在于包括:至少一个存储器和至少一个处理器;10. A microservice architecture log parsing device based on a domestic CPU and an operating system, characterized in that it comprises: at least one memory and at least one processor;所述至少一个存储器,用于存储机器可读程序;the at least one memory for storing a machine-readable program;所述至少一个处理器,用于调用所述机器可读程序,执行权利要求1至8任一所述的方法。The at least one processor is configured to invoke the machine-readable program to execute the method of any one of claims 1 to 8.
CN202110884184.2A2021-08-032021-08-03 A method and system for log parsing of microservice architecture based on domestic CPU and operating systemPendingCN113760878A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110884184.2ACN113760878A (en)2021-08-032021-08-03 A method and system for log parsing of microservice architecture based on domestic CPU and operating system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110884184.2ACN113760878A (en)2021-08-032021-08-03 A method and system for log parsing of microservice architecture based on domestic CPU and operating system

Publications (1)

Publication NumberPublication Date
CN113760878Atrue CN113760878A (en)2021-12-07

Family

ID=78788438

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110884184.2APendingCN113760878A (en)2021-08-032021-08-03 A method and system for log parsing of microservice architecture based on domestic CPU and operating system

Country Status (1)

CountryLink
CN (1)CN113760878A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114584464A (en)*2022-03-072022-06-03浪潮云信息技术股份公司Cloud platform full-automatic management log collection method and terminal
CN114625791A (en)*2022-02-172022-06-14浪潮软件集团有限公司Dynamic processing method for Elasticissearch data based on domestic environment
CN115495310A (en)*2022-09-162022-12-20兴业银行股份有限公司 Method, system and medium for fast collection and filtering of distributed link error and slow logs
CN116055304A (en)*2022-12-152023-05-02南方电网数字平台科技(广东)有限公司 Microservice log level configuration method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2891994A1 (en)*2013-11-042015-07-08Guangdong Electronics Industry Institute Ltd.Method for achieving automatic synchronization of multisource heterogeneous data resources
CN106844171A (en)*2016-12-272017-06-13浪潮软件集团有限公司 A method for realizing mass operation and maintenance
CN110633186A (en)*2019-08-162019-12-31南方电网科学研究院有限责任公司 Log monitoring system and implementation method for power metering microservice architecture
CN111459698A (en)*2020-03-312020-07-28国网电力科学研究院有限公司 A kind of database cluster fault self-healing method and device
CN112148578A (en)*2020-10-122020-12-29贵州电网有限责任公司IT fault defect prediction method based on machine learning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2891994A1 (en)*2013-11-042015-07-08Guangdong Electronics Industry Institute Ltd.Method for achieving automatic synchronization of multisource heterogeneous data resources
CN106844171A (en)*2016-12-272017-06-13浪潮软件集团有限公司 A method for realizing mass operation and maintenance
CN110633186A (en)*2019-08-162019-12-31南方电网科学研究院有限责任公司 Log monitoring system and implementation method for power metering microservice architecture
CN111459698A (en)*2020-03-312020-07-28国网电力科学研究院有限公司 A kind of database cluster fault self-healing method and device
CN112148578A (en)*2020-10-122020-12-29贵州电网有限责任公司IT fault defect prediction method based on machine learning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄媛媛;王彬;龙卉;刘学生;: "基于微服务架构的日志系统", 电子技术与软件工程, no. 02, 15 January 2017 (2017-01-15)*

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114625791A (en)*2022-02-172022-06-14浪潮软件集团有限公司Dynamic processing method for Elasticissearch data based on domestic environment
CN114584464A (en)*2022-03-072022-06-03浪潮云信息技术股份公司Cloud platform full-automatic management log collection method and terminal
CN115495310A (en)*2022-09-162022-12-20兴业银行股份有限公司 Method, system and medium for fast collection and filtering of distributed link error and slow logs
CN116055304A (en)*2022-12-152023-05-02南方电网数字平台科技(广东)有限公司 Microservice log level configuration method and device

Similar Documents

PublicationPublication DateTitle
CN113760878A (en) A method and system for log parsing of microservice architecture based on domestic CPU and operating system
CN111241078B (en)Data analysis system, data analysis method and device
CN105677918B (en) A distributed crawler architecture based on Kafka and Quartz and its implementation method
CN105320679B (en)A kind of tables of data indexed set symphysis is at method and device
CN107861859A (en)A kind of blog management method and system based on micro services framework
CN113360554A (en)Method and equipment for extracting, converting and loading ETL (extract transform load) data
CN113448812A (en)Monitoring alarm method and device under micro-service scene
CN105577411B (en)Cloud service monitoring method and device based on service origin
CN113312376B (en)Method and terminal for real-time processing and analysis of Nginx logs
US11915044B2 (en)Distributed task assignment in a cluster computing system
CN101546308B (en)Web page search method and web page search system based on overdue retrieval
CN112579552A (en)Log storage and calling method, device and system
CN112416902A (en)One-key inspection method for host and database
CN115269630A (en) A method for joint query of multi-source heterogeneous databases based on custom SQL scripts
CN114185885A (en)Streaming data processing method and system based on column storage database
KR20100132752A (en) Query data distribution processing system for improving service performance through database distribution
US20250094413A1 (en)Alert and suppression updating in a cluster computing system
CN119012240B (en) A telecommunication service information processing system
CN111444249A (en)User portrait generation method, device and equipment based on thermal data and storage medium
CN114595363A (en)Business log processing method, system, storage medium and terminal based on lightweight architecture
CN113641487B (en)Intelligent automatic switching method for SQL task execution engine of big data platform
CN114579668A (en)Database data synchronization method
CN110928938B (en)Interface middleware system
CN105245394A (en)Method and equipment for analyzing network access log based on layered approach
CN114721495A (en) A power monitoring method, device, storage medium and computer equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp