Unlock instant, AI-driven research and patent intelligence for your innovation.

Log file analysis method and system

A log file and analysis method technology, applied in the field of log file analysis methods and systems, can solve the problems of log file location search and low search efficiency, and achieve the effects of increasing readability, location search, and convenient reading

Active Publication Date: 2017-05-10
BEIJING NAURA MICROELECTRONICS EQUIP CO LTD
View PDF18 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a log file analysis method and system to solve the problem of low efficiency of log file location search and search

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 file analysis method and system
  • Log file analysis method and system
  • Log file analysis method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] refer to figure 1 , which shows a flow chart of the steps of an embodiment of a method for analyzing a log file according to an embodiment of the present invention, which may specifically include the following steps:

[0039] In step 101, a database is established, and the database includes process keywords and / or object keywords.

[0040] In this embodiment, before analyzing the log files, a database is established first. The database can specifically include a process database and an object database, wherein the process database includes process keywords, which can specifically be keywords that mark the start or end of a process; the object database includes object keywords, which are keys that can distinguish objects A word, specifically an object name. The object database can be established according to the actual hardware conditions during the specific implementation.

[0041] It should be noted that this embodiment does not limit the specific method of establis...

Embodiment 2

[0055] On the basis of the foregoing embodiments, this embodiment continues to describe the method for analyzing log files.

[0056] refer to figure 2 , which shows a flow chart of the steps of an embodiment of a method for analyzing a log file according to an embodiment of the present invention, which may specifically include the following steps:

[0057] In step 201, a database is established, and the database includes process keywords and / or object keywords.

[0058] In this embodiment, before analyzing the log files, a database is established first. The database can specifically include a process database and an object database, wherein the process database includes process keywords, which can specifically be keywords that mark the start or end of a process; the object database includes object keywords, which are keys that can distinguish objects A word, specifically an object name. The object database can be established according to the actual hardware conditions duri...

Embodiment 3

[0082] On the basis of the foregoing embodiments, this embodiment continues to describe the method for analyzing log files, and specifically describes the method for analyzing log files according to a flow.

[0083] refer to Figure 5 , shows a flow chart of the steps of an embodiment of a method for analyzing log files according to a process according to an embodiment of the present invention, which may specifically include the following steps:

[0084] Step 501, extract a new line of text stream from the beginning of the log file.

[0085] It should be noted that this embodiment is to clearly describe the method of analyzing log files according to the process, so the part related to the process analysis method in the previous embodiment is extracted for illustration, and the same part as the process analysis method and the object analysis method For example, the database is established first, and this embodiment will not be described in detail here, and it can be understood...

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 file analysis method and system, and aims at solving the problem that the positioning search efficiency of log files is not high. The log file analysis method comprises the following steps of: establishing a database, wherein the database comprises flow keywords and / or object keywords; receiving a to-be-analyzed log file, and extracting to-be-analyzed character flows from the log file in sequence according to lines; matching the character flows with the flow keywords or operation keywords in the database; classifying the character flows into flows to which the corresponding flow keywords belong or objects to which the corresponding object keywords belong according to the matching result; and classifying and storing the character flows according to the belonged flows or objects. According to the method and system provided by the invention, the character flows can be classified and stored according to the belonged flows or objects, so that the readability and positioning search efficiency of the log files are greatly increased, and the programmers can carry out reading and search conveniently.

Description

technical field [0001] The invention relates to the technical field of communications, in particular to a log file analysis method and system. Background technique [0002] In many large-scale software, electronic, and network systems, log files are indispensable, and they are of great significance for checking the status of the system. In a large software system, there are usually many threads running at the same time, and their logs are generally input in the same log file. If the log designer makes the operation of each important function to be recorded in the log, the content of the log will undoubtedly become very complicated. This kind of complicated log is usually multi-threaded and parallel, and the log is output to a file according to the time of occurrence; or there are many hardware terminals connected, and their driver layer, function layer, etc. operations will record logs; or there are many online users at the same time. Access to the server backend, their be...

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/30
CPCG06F16/3331G06F16/3344
Inventor 高卓立
Owner BEIJING NAURA MICROELECTRONICS EQUIP CO LTD