CN-121996636-A - Control method, system and storage medium of log information tracing system
Abstract
The application discloses a control method, a system and a storage medium of a log information tracing system, which relate to the technical field of Internet and comprise the steps of acquiring running state information of terminal equipment at a sampling node if the sampling node associated with the current service scene of the terminal equipment is triggered; and responding to a tracing instruction aiming at the log information, mapping the log coding string contained in the log information into natural language time sequence information for log tracing. Based on the method, the log is stored in the form of the code string, occupation of log information is reduced, the code string is converted into structured natural voice time sequence information during tracing, specific event information can be rapidly obtained without manually screening redundant texts, and log tracing efficiency is improved.
Inventors
- SUN HAORAN
- SUI CHENGHAO
- PAN JUNJIE
- LIU YAOCHENG
Assignees
- 歌尔科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251229
Claims (10)
- 1. The control method of the log information tracing system is characterized by comprising the following steps of: if a sampling node associated with the current service scene of the terminal equipment is triggered, acquiring the running state information of the terminal equipment at the sampling node; generating a log coding string according to the running state information, and storing the log coding string as log information; and responding to a tracing instruction aiming at the log information, and mapping the log coding strings contained in the log information into natural language time sequence information for log tracing.
- 2. The control method of the log information tracing system according to claim 1, wherein after the step of triggering the sampling node associated with the current service scenario of the terminal device to obtain the running state information of the terminal device at the sampling node, the control method of the log information tracing system further comprises: generating a log code based on code information corresponding to the sampling node in a preset code table, and storing the log code as target log information; And responding to a tracing instruction aiming at the target log information, and mapping the log codes contained in the target log information into natural language information for log tracing.
- 3. The control method of a log information tracing system according to claim 1, wherein the step of generating a log code string according to the operation state information and storing the log code string as log information comprises: Generating a basic code based on codes corresponding to the sampling nodes in a preset code table; Determining node attribute information of the current process node according to the running state information, and generating attribute codes according to the node attribute information; generating the log coding string according to the basic code and the attribute code based on a preset coding structure and a separator; and storing the log coding string as the log information.
- 4. A method of controlling a log information tracing system according to claim 3, wherein said node attribute information includes a detail attribute, an association attribute and/or a time sequence attribute, and said step of determining node attribute information of said current process node and generating an attribute code based on said node attribute information includes: determining the detail attribute, the association attribute and/or the time sequence attribute of the current process node; generating a result code according to the node operation result corresponding to the detail attribute, and generating a detail code according to the operation detail corresponding to the detail attribute; Generating a module code according to the module identifier corresponding to the association attribute, and generating an association code according to the association identifier corresponding to the association attribute; and/or generating a time sequence code according to the time stamp information corresponding to the time sequence attribute.
- 5. The control method of a log information tracing system according to claim 1, wherein the step of mapping the log code string included in the log information to natural language timing information for log tracing in response to a tracing instruction for the log information comprises: Responding to a tracing instruction aiming at the log information, splitting the log coding string to obtain a plurality of log codes; mapping the log codes into text information according to a preset coding table; Generating natural language information corresponding to each log coding string according to the text information, and determining the acquisition time sequence of each log coding string; and generating the natural language time sequence information based on the acquisition time sequence and the natural language information.
- 6. The method for controlling a log information tracing system according to claim 5, wherein said step of splitting said log code string in response to a tracing instruction for said log information to obtain a plurality of log codes comprises: Responding to a tracing instruction of log information, and identifying a separator in the log coding string; Splitting the log code string into a base code and an attribute code according to the separator.
- 7. The control method of a log information tracing system according to any one of claims 1 to 6, wherein the step of generating a log code string from the operation state information and storing the log code string as log information further comprises: acquiring the log coding strings which are continuous and have the same prefix codes; integrating and compressing the continuous log coding strings based on the same prefix codes to obtain target coding strings; storing the target code string as the log information; the step of mapping the log code strings contained in the log information into natural language time sequence information for log tracing in response to a tracing instruction for the log information comprises the following steps: and in response to a tracing instruction for the log information, mapping the target coding string into natural language time sequence information for log tracing.
- 8. The control method of the log information tracing system according to claim 1, wherein after the step of triggering the sampling node associated with the current service scenario of the terminal device to obtain the running state information of the terminal device at the sampling node, the control method of the log information tracing system further comprises: Responding to a tracing instruction aiming at the log information, splitting the log coding string to obtain a plurality of log codes; mapping the log codes into text information according to a preset coding table; determining the acquisition time sequence of the log code, and determining a processing node and a processing event according to the acquisition time sequence and the text information; And constructing a starting node and an ending node, and adding the processing node and the processing event between the starting node and the ending node to obtain a time sequence flow chart for log tracing.
- 9. A log information tracing system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the method of controlling a log information tracing system according to any one of claims 1 to 8.
- 10. A storage medium, characterized in that the storage medium is a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the control method of the log information tracing system according to any one of claims 1 to 8.
Description
Control method, system and storage medium of log information tracing system Technical Field The application relates to the technical field of internet, in particular to a control method, a control system and a storage medium of a log information traceability system. Background The log is the core basis for tracing states and checking anomalies in program operation and maintenance. In the related logging method, logging of log information is generally performed by natural language description information. However, natural language description information is relatively large, i.e. contains redundant information such as modifier words, explanatory sentences, repeated expressions and the like. The burden of reading and data processing is increased during tracing, and key contents are manually screened sentence by sentence, so that the tracing efficiency is low. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The application mainly aims to provide a control method, a control system and a storage medium of a log information tracing system, and aims to solve the technical problems of large natural language information volume and low log tracing efficiency. In order to achieve the above object, the present application provides a control method of a log information tracing system, the method comprising: if a sampling node associated with the current service scene of the terminal equipment is triggered, acquiring the running state information of the terminal equipment at the sampling node; generating a log coding string according to the running state information, and storing the log coding string as log information; and responding to a tracing instruction aiming at the log information, and mapping the log coding strings contained in the log information into natural language time sequence information for log tracing. In an embodiment, after the step of triggering the sampling node associated with the current service scenario of the terminal device to obtain the running state information of the terminal device at the sampling node, the control method of the log information tracing system further includes: generating a log code based on code information corresponding to the sampling node in a preset code table, and storing the log code as target log information; And responding to a tracing instruction aiming at the target log information, and mapping the log codes contained in the target log information into natural language information for log tracing. In one embodiment, the step of generating a log code string according to the operation state information and storing the log code string as log information includes: Generating a basic code based on codes corresponding to the sampling nodes in a preset code table; Determining node attribute information of the current process node according to the running state information, and generating attribute codes according to the node attribute information; generating the log coding string according to the basic code and the attribute code based on a preset coding structure and a separator; and storing the log coding string as the log information. In one embodiment, the node attribute information includes a detail attribute, an association attribute, and/or a timing attribute, and the determining node attribute information of the current process node and generating an attribute code according to the node attribute information includes: determining the detail attribute, the association attribute and/or the time sequence attribute of the current process node; generating a result code according to the node operation result corresponding to the detail attribute, and generating a detail code according to the operation detail corresponding to the detail attribute; Generating a module code according to the module identifier corresponding to the association attribute, and generating an association code according to the association identifier corresponding to the association attribute; and/or generating a time sequence code according to the time stamp information corresponding to the time sequence attribute. In an embodiment, the step of mapping the log code string included in the log information to natural language timing information for log tracing in response to a tracing instruction for the log information includes: Responding to a tracing instruction aiming at the log information, splitting the log coding string to obtain a plurality of log codes; mapping the log codes into text information according to a preset coding table; Generating natural language information corresponding to each log coding string according to the text information, and determining the acquisition time sequence of each log coding string; and generating the natural language time sequence information based on the acquisition time