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

Log analysis method and device, computer equipment and storage medium

An analysis method and log technology, applied in the field of data processing, can solve the problems of cumbersome process of analyzing log and locating abnormality, achieve the effect of efficient analysis and problem location, and simplify the analysis process

Active Publication Date: 2017-11-07
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 49 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a log analysis method and device, computer equipment, and storage media, so as to solve the problem of cumbersome processes in the method of locating abnormalities by analyzing logs in the prior art

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 analysis method and device, computer equipment and storage medium
  • Log analysis method and device, computer equipment and storage medium
  • Log analysis method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] figure 1 This is a flowchart of the log analysis method provided in Embodiment 1 of the present invention. This embodiment can be applied to the situation of analyzing logs and locating problems. The method can be executed by a log analysis device, and the device can use software and / or hardware. way to achieve. like figure 1 As shown, the method specifically includes:

[0027] S101. In response to the log analysis request, search for a service chain log information group corresponding to the log analysis request from the log according to the service chain identifier buried point information in the log.

[0028] One of the purposes of analyzing the log is to locate the problem. Take the takeaway order system as an example. If the user reports that he has placed an order, but the delivery record cannot be queried after half an hour, the log generated by the order system needs to be analyzed. to find the problem. Usually, the user will provide order-related informatio...

Embodiment 2

[0047] figure 2 This is a flowchart of the log analysis method provided in the second embodiment of the present invention, and the second embodiment is further optimized on the basis of the first embodiment. like figure 2 As shown, the method includes:

[0048] S200. Store a pre-defined directed graph of business chains. Wherein, the business chain directed graph is defined in advance according to all business scenarios using an adjacency matrix, the adjacency matrix includes adjacent vertices and adjacent edges, and the content stored by the adjacent vertices includes node identification, current node description, root node identification, adjacent The content stored by the edge includes the current node ID, the successor node ID, the current process description and the order within the group.

[0049] S201. In response to the log analysis request, search the log for a log whose business chain tracking identifier and time stamp identifier match the information in the log...

Embodiment 3

[0060] image 3 This is a schematic structural diagram of the log analysis device in Embodiment 3 of the present invention, and this embodiment can be applied to the situation of analyzing logs and locating problems. like image 3 As shown, the log analysis device 3 includes:

[0061] The search module 310 is configured to, in response to the log analysis request, find out the business chain log information group corresponding to the log analysis request from the log according to the business chain identifier buried point information in the log;

[0062] The reorganization module 320 is configured to reorganize the log information in the log information group of the business chain according to the predefined directed graph of the business chain and the buried point information of the reorganized business chain in the log, and generate a corresponding log analysis request. The directed graph of the target business chain;

[0063] The determining module 330 is configured to l...

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 embodiment of the invention discloses a log analysis method and device, computer equipment and a storage medium. The method comprises the steps of in response to a log analysis request, according to service chain identification burying point messages in a log, finding a service chain log message block corresponding to the log analysis request from the log; according to a pre-defined service chain directed graph and reorganization service chain burying point messages in the log, reorganizing the log messages in the service chain log message block, and generating a target service chain directed graph corresponding to the log analysis request; according to a question positioning burying point message in the log, determining a question flow in the target service chain directed graph. According to the log analysis method and device, the computer equipment and the storage medium, based on the service chain directed graph, the service chain identification burying point messages and the burying point message for reorganizing the log and positioning questions, log analysis is implemented in a service scene. For the situation that context scenarios of services are distributed in multiple terminal requests, the analysis process is simplified, and efficient analysis and question positioning are achieved.

Description

technical field [0001] Embodiments of the present invention relate to data processing technologies, and in particular, to a log analysis method and apparatus, computer equipment, and storage medium. Background technique [0002] Current Internet services are usually implemented using large-scale distributed clusters. With the deepening of interaction and the high coupling of business, it becomes more and more difficult for R&D personnel to control the complete business scenario. Especially when an abnormality occurs online, it becomes more time-consuming to accurately locate the abnormal link and solve the problem. [0003] In the prior art, Google has developed and released the distributed tracking system Dapper. Based on the core theory of automatically associating context and tracking the call chain, it can clearly describe a complete internal RPC (RemoteProcedure Call Protocol) call of a server request. relationship, and can do network topology, performance and other an...

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): G06F17/30G06Q10/10G06Q30/06G06Q50/12
CPCG06F16/1815G06F16/9024G06Q10/103G06Q30/0635G06Q50/12
Inventor 王辉姚垒
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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