Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for generating XML log

A log and node technology, applied in the computer field, to achieve the effect of improving efficiency

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

AI Technical Summary

Problems solved by technology

[0005] This application provides a method and device for generating XML logs to solve the problem of how to improve the efficiency of analyzing logs

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
  • Method and device for generating XML log
  • Method and device for generating XML log
  • Method and device for generating XML log

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] refer to figure 1 , shows a schematic flowchart of an embodiment of a method for generating an XML log according to the present application.

[0046] The embodiment of the present application provides a method for generating XML logs, which is suitable for generating massive analyzable logs. The method can be executed by a log analyzer, such as figure 1 As shown, the method may include the following steps:

[0047] Step S101, receiving an instruction to create a top-level log node, and creating a top-level log node corresponding to the instruction, where the top-level log node includes the content of the top-level log node and an xml node.

[0048] In this implementation, a log pool (also called a node pool) may be established in advance. Wherein, the elements of the node pool may specifically include a top-level log node, such as a top-level xml node. When an instruction to create a top-level log node is received, the top-level log node corresponding to the instruct...

Embodiment 2

[0059] refer to figure 2 , which shows a flow chart of the steps of a preferred embodiment of a method for generating an XML log of the present application, which may specifically include the following steps:

[0060] Step S201, receiving an instruction to create a top-level log node, and creating a top-level log node corresponding to the instruction.

[0061] Wherein, the top-level log node may specifically include the content of the top-level log node and the xml node.

[0062] Step S202, receiving an instruction for creating a sub-log node, and creating a sub-log node corresponding to the instruction for creating a sub-log node.

[0063] The sub-log node may specifically include the content of the sub-log node and the pointer of the xml node passed to the sub-log node by the top-level log node.

[0064] Step S203, configuring error attributes for the top-level log node and the sub-log nodes; and setting the corresponding status values ​​of the error attributes of the top...

Embodiment 3

[0072] refer to image 3 , shows an example diagram of the steps of a method for generating an XML log in the present application. Specifically, the following steps may be included:

[0073] Step S301, generating an XML root node according to a trigger event.

[0074] Specifically, the trigger time may include: a trigger event when the user clicks on the graphical interface, and a trigger event generated by a timer. When a trigger event is detected, the log analyzer can determine a method for triggering XML logs, that is, an XML root node can be generated through a pre-established log pool, such as an XML root node pool.

[0075] Step S302, configuring attribute information for the XML node.

[0076] After generating the XML root node, the log analyzer can configure attribute information for the XML root node, such as setting time attributes, error attributes, etc., and set corresponding initial attribute values ​​for each attribute, such as setting the attribute value of t...

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 application provides a method and device for generating an XML log. The method comprises the following steps: receiving an instruction for creating a top log node, creating the top log node corresponding to the instruction, wherein the top log node comprises the content and xml node of the top log node; receiving an instruction for creating a sub-log node, creating the sub-log node corresponding to the instruction for creating the sub-log node, wherein the sub-log node comprises the content of the sub-log node and a pointer of the xml node transmitted to the sub-log node by the top log node; setting error attributes of the top log node and the sub-log node, wherein the error attributes are used for judging whether the content of the top log node and the content of the sub-log node are in error at the midway; detecting whether the content of the top log node and the content of the sub-log node are in error, determining the error attribute corresponding state value of each of the top log node and the sub-log node. By using the method provided by the application, whether the log node is in error at the midway can be judged through the error attribute corresponding state value, thereby improving the efficiency for analyzing the log.

Description

technical field [0001] This application relates to the field of computer technology, in particular to a method and device for generating XML logs. Background technique [0002] A log is a chronological record of information about hardware and software problems in a computer system, as well as monitoring events that occur in a computer system. You can check the cause of the computer system error through the log, or when the computer system is under attack, look for traces left by the attacker in the log. [0003] Specifically, multiple actions of multiple threads are usually recorded sequentially in the same text file in chronological order, that is, the log is recorded in chronological order in which the actions are executed. In the event of a serious security incident, the log records are analyzed by manual observation to obtain abnormal conditions. However, since the computer system generates a large amount of logs every day, it is difficult to find abnormal conditions i...

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/30
CPCG06F11/3086
Inventor 吕嘉文
Owner BEIJING NAURA MICROELECTRONICS EQUIP CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More