Log processing method and device

A processing method and a technology of a processing device, which are applied in the field of logs, can solve problems such as low efficiency, and achieve the effect of solving low extraction efficiency

Inactive Publication Date: 2020-02-07
HUAWEI TECH CO LTD
View PDF9 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Usually users have to manually log in to the virtual machine of each microservice to view related lo...

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 device
  • Log processing method and device
  • Log processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] The network architecture and business scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. For the evolution of architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0068] figure 1 A schematic diagram of the architecture of a log processing system provided in the embodiment of this application, such as figure 1 As shown, the embodiment of the present application provides a log processing system 11 including at least one server 110. The log processing system composed of the at least one server 110 may be a distributed server system or a centralized server cluster. The log processing system Different servers 110 ...

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 processing method and device. According to a tracking identifier set in a log line of the log, transaction context extraction is carried out on the log, wherein the tracking identifier is arranged in a log line through a log printing function; the log events belonging to the same calling chain of the same transaction have the same tracking identifier; furthermore, theextracted transaction contexts are sorted according to the log line acquisition time of the log lines, and the transaction contexts in the logs are determined, so that the log contexts can be rapidlyextracted, and related personnel can conveniently perform problem positioning, analysis and the like based on the log contexts; a log event identifier can be set according to a log line of the log; and the occurrence frequency of the log event identified by the same target log event in the preset time period is obtained, and the log is analyzed and detected according to the occurrence frequency, for example, log abnormal event detection and active problem discovery are carried out, and potential safety hazards are solved in time, and reasons are prevented from being found after an accident happens, and losses are reduced.

Description

technical field [0001] The present application relates to the technical field of logs, in particular to a log processing method and device. Background technique [0002] Logs play a very important role in today's software development process. Log refers to the addition of some specific statements in the software source code, which can record the real-time status of the software operation in a text file. Software developers (or operation and maintenance staff) can grasp the real-time status of software operation by reading logs, which can be used in scenarios such as software debugging, performance optimization, and business analysis. [0003] If there is an error in the log, keywords are usually used to query the wrong log line. Exemplarily, firstly, user logs are collected and stored in a unified manner. These text data (unstructured data) are then indexed (using lucene for example). Based on the index table, look up relevant content in the log through keywords. For ex...

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/34G06F11/36G06F11/07
CPCG06F11/0766G06F11/079G06F11/3476G06F11/3636
Inventor 王琛邵增卫行帅
Owner HUAWEI TECH 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