Log processing method and log processing electronic equipment

A technology for processing electronic equipment and processing methods, which is applied in the field of log processing, and can solve the problems of inability to track, unable to locate error information, and low error checking efficiency, so as to achieve the effect of accurate error positioning and improving error checking efficiency.

Inactive Publication Date: 2016-07-27
LENOVO (BEIJING) CO LTD
View PDF5 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] This method will bring a lot of inconvenience to the log information processing in the microservice environment. For example, when a certain API (Application Programming Interface, application programming interface) penetrates and accesses between different microservices, the API cannot be well processed. To track the access behavior of the system, when an access error occurs, the error information cannot be quickly and accurately located at one time (such as locating the microservice where the error occurred and the cause of the error, etc.), but only for each service, one by one from the log information stored independently Call out the corresponding log, and analyze the log information of each service called out one by one, resulting in low error detection efficiency

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 processing method and log processing electronic equipment
  • Log processing method and log processing electronic equipment
  • Log processing method and log processing electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] refer to figure 1 , figure 1 It is a flow chart of Embodiment 1 of a log processing method provided by this application. The method is applicable to but not limited to log processing in a microservice environment, such as figure 1 As shown, the log processing method may include the following steps:

[0045] S101: Obtain target log information corresponding to at least one target service from the uniformly stored log information of each service when a preset type of log processing condition is met.

[0046] Wherein, the log processing condition of the preset type may be:

[0047] A log analysis time of a preset type for at least one target service is reached; or,

[0048] A log analysis request of a predetermined type is received for at least one target service; or,

[0049] A preset log push time for at least one target service is reached; or,

[0050] A log view request was received for at least one target service.

[0051] The preset type of log analysis can be ...

Embodiment 2

[0060] This embodiment provides a record storage and access solution for multi-service log information involved in the penetration access in the penetration access scenario.

[0061] Specifically, refer to image 3 The schematic diagram of log recording during penetrating access between multiple services is shown. When an API call performs penetrating access between multiple services, the log information during penetrating access to each service is recorded in a timeline manner. Wherein, the access ID (identification number, Identity) of this penetration access is specifically added in the request information of the API penetration access, such as specifically, the access ID can be added at the head of the access request information; on this basis, In the process of API penetrating access to multiple services, the access ID is added to the log information generated when API penetrating access to each service, so that for one penetrating API access, the log information finally ...

Embodiment 3

[0068] refer to Figure 5 , Figure 5 It is a flow chart of Embodiment 3 of a log processing method provided by this application. In this embodiment, when the log processing condition of the preset type is: reaching the log analysis time of the preset type for at least one target service or receiving When a preset type of log analysis request for at least one target service is received, the step S102 can be implemented through the following steps:

[0069] S501: Perform log analysis of the preset type on the target log information corresponding to the at least one target service to obtain a log analysis result;

[0070] S502: Push the log analysis result.

[0071] After obtaining the log information of at least one target service from the unified storage data of multi-service log information, the obtained log information of at least one target service may be processed accordingly based on actual log processing requirements.

[0072] Specifically, based on the log informatio...

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 discloses a log processing method and log processing electronic equipment. The method comprises the following steps: when a log processing condition of a preset type is conformed, obtaining target log information corresponding to at least one piece of target service from the log information of each piece of service which is uniformly stored; and carrying out the log processing of the preset type on the target log information. obviously, the multi-service log information is uniformly stored to overcome the problem caused in a way that the log information of each piece of service is independently stored in a partitioning way in the prior art; when a certain API (Application Program Interface) carries out penetration access among different pieces of micro-service, the log information of different pieces of service to which the penetration access relates can be uniformly obtained from the multi-service log information which is uniformly stored, so that the uniform analysis and the quick and accurate error positioning of the log information can be subsequently carried out, debugging efficiency is effectively improved, and convenience is provided for log processing under a micro-service environment.

Description

technical field [0001] The invention belongs to the technical field of log processing, and in particular relates to a log processing method and an electronic device for log processing. Background technique [0002] Currently, in the microservice environment, each microservice uses an independent management method to store and manage its own log information, that is, the log information of each microservice is stored in blocks and managed independently. [0003] This method will bring a lot of inconvenience to the log information processing in the microservice environment. For example, when a certain API (Application Programming Interface, application programming interface) penetrates and accesses between different microservices, the API cannot be well processed. To track the access behavior of the system, when an access error occurs, the error information cannot be quickly and accurately located at one time (such as locating the microservice where the error occurred and the ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/34
CPCG06F11/3466
Inventor 彭江
Owner LENOVO (BEIJING) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products