Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Log management method and system based on micro-service framework

A management method and micro-service technology, applied in the log management method and system field based on the micro-service architecture, can solve the problems of difficult separation of log information, log storage, limited query and analysis capabilities, and improve query and statistics Efficiency, fast positioning, convenient and fast effect

Active Publication Date: 2018-03-30
BEIJING HUITONG JINCAI INFORMATION TECH +2
View PDF6 Cites 30 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Due to the increasing scale of software systems and the resulting complexity, a large amount of log information will be generated. These logs need to be stored for query and analysis, while traditional relational databases have limited capabilities for log storage, query, and analysis.
For example, log information is usually stored in chronological order. A request will generate multiple log information during response processing, and log information of different requests will be mixed and stored in the database. When the amount of log information is very large, the log file When analyzing, it is difficult to separate the log information generated by a specific request

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log management method and system based on micro-service framework
  • Log management method and system based on micro-service framework
  • Log management method and system based on micro-service framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0049] like figure 1 As shown, it is a flow chart of Embodiment 1 of a log management method based on a microservice architecture disclosed in the present invention, and the method includes:

[0050] S101, output the request ID generated by the interceptor configured in each application, and the collected application call information and user information to the log;

[0051] When it is necessary to manage the log, first configure the request interceptor for e...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a log management method based on a micro-service framework. The method includes the steps of outputting a request ID generated by an interceptor configured in each application and collected calling information of the applications and user information into a log, collecting log information of each application on each application server, caching the log information of all theapplications in a name with a Key of logstash in a unified mode, pulling the log information, conducting conversion from the original data format to the data format required by an ElasticSearch searchserver, capturing keywords from the log information, and storing the corresponding log information in the ElasticSearch search server based on the keywords. Dynamic elastic shrinkage of the whole logprocessing process can be conducted according to actual use conditions, physical resources are effectively used, large-scale log conditions can be responded to, and inquiry and statistics efficiencyis improved. The invention further discloses a log management system based on the micro-service framework.

Description

technical field [0001] The invention belongs to the technical field of software engineering, and in particular relates to a log management method and system based on a microservice architecture. Background technique [0002] Due to the increasing scale of software systems and the resulting complexity, a large amount of log information will be generated. These logs need to be stored for query and analysis, while traditional relational databases have limited capabilities for log storage, query, and analysis. For example, log information is usually stored in chronological order. A request will generate multiple log information during response processing, and log information of different requests will be mixed and stored in the database. When the amount of log information is very large, the log file When analyzing, it is difficult to isolate the log information generated by a specific request. [0003] Therefore, how to effectively manage logs is an urgent problem to be solved....

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/34G06F17/30
CPCG06F11/3476G06F16/2457G06F16/258
Inventor 刘俊艳张振阎志军李杏
Owner BEIJING HUITONG JINCAI INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products