Operation log generation method and device and fault query method and device

A log and fault technology, applied in the computer field, can solve problems such as troubleshooting of fault points, difficulty in repairing operation and maintenance, difficulty in automatic processing, workload, etc., to achieve the effect of simple calling process, convenient processing, and strong applicability

Pending Publication Date: 2022-02-18
北京青云科技股份有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

First, scattered logs need to be extracted and analyzed in a targeted manner, which brings a certain amount of complexity and workload; second, the operation process is distributed, and a job may be executed sequentially among multiple services. If there is no pipelined record mode, it will bring a certain degree of difficulty in operation and maintenance to the troubleshooting and repair of fault points, and it is also difficult for the business side to achieve automated processing related to transaction rollback

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
  • Operation log generation method and device and fault query method and device
  • Operation log generation method and device and fault query method and device
  • Operation log generation method and device and fault query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] figure 1 A schematic flowchart of a method for generating an operation log provided in Embodiment 1 of the present application is given, and the method is suitable for recording operations when any operation is performed during the development process. The method can be executed by a computer device configured with a python operating environment, and the computer device can be composed of two or more physical entities, or can be composed of one physical entity. Generally speaking, the computer equipment may be a notebook, a desktop computer, a smart tablet, and the like.

[0034] Such as figure 1 As shown, a method for generating an operation log provided in Embodiment 1 specifically includes the following steps:

[0035] S101. Receive an operation to be executed, and generate a global job identifier.

[0036] In this embodiment, the operation to be performed may specifically be understood as an operation that needs to be performed by a computer, for example, creatin...

Embodiment 2

[0049] figure 2 It is a flow chart of a method for generating an operation log provided by Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above-mentioned technical solution, and specifically mainly includes the following steps:

[0050] S201. Receive an operation to be executed, and generate a job global identifier.

[0051] S202. Call the parsing function to parse the operation to be executed.

[0052] In this embodiment, the parsing function may specifically be understood as a function for parsing codes, character strings, and the like. Perform data analysis on the operation to be executed by calling the analysis function.

[0053] S203. Determine at least one job to be executed according to the parsing result.

[0054] Taking the operation to be executed as creating 3 virtual machines as an example, by calling the analysis function to perform data analysis on the operation to be executed, the obta...

Embodiment 3

[0106] Figure 5 It is a flowchart of a fault query method provided by Embodiment 3 of the present invention, the method includes:

[0107] S501. Obtain a job identifier to be queried and an operation log, where the operation log is generated by the method for generating an operation log in any embodiment of the present invention.

[0108] In this embodiment, the job ID to be queried can specifically be understood as a job ID with a query requirement. When performing troubleshooting or security audit, the user can input the ID of the job to be queried according to the requirement. The execution device of the present application obtains the job identifier to be queried, and obtains the operation log from the database.

[0109] S502. Query the task table in the operation log according to the job identifier to be queried, and determine the fault information.

[0110] In this embodiment, the fault information may include whether a fault occurs, the location of the fault when th...

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 an operation log generation method and device and a fault query method and device. The operation log generation method comprises the steps of: receiving a to-be-executed operation, and generating a job global identifier; determining at least one to-be-executed job according to the to-be-executed operation, creating a thread for each to-be-executed job, and generating job information; allocating job identifiers to the threads according to the job global identifier, executing the corresponding to-be-executed jobs through the threads, and generating task information; and generating an operation log according to the job global identifier, the job information, the job identifiers and the task information. The information generated in the operation process is identified, all the information generated in the operation execution process is recorded in a unified mode, the operation record format is unified, processing and analysis are convenient, and later information query and fault location are facilitated. The job identifiers are generated through the job global identifier, and a relationship between the job identifiers and a relationship between the jobs are established. Calling is simple, redundant codes are saved, and the applicability is high.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an operation log generation method, a fault query method and a device. Background technique [0002] With the development of information technology, the business scope of the Internet has become wider and wider, involving more and more services. Faced with the challenges of many manpower and time costs, the requirements of security audits, and the pressure of development, maintenance and operation. The public libraries used in the development of various service projects have security audit requirements, and their functions involving sensitive and security issues need to be audited to comply with security specifications. The operation logs of each product line need to be maintained in a unified manner. When developing new functions, there is a unified functional testing requirement, and it is expected to know whether the function's parameter passi...

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): G06F16/17G06F16/18
CPCG06F16/1734G06F16/1815
Inventor 林东森
Owner 北京青云科技股份有限公司
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