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

JS-based log analysis method and device, electronic equipment and medium

An analysis method and log technology, applied in the computer field, can solve problems such as large manpower maintenance time cost, long single request link, and difficulty in analyzing and locating problems, so as to save manpower and time costs, low performance consumption, and high application value Effect

Pending Publication Date: 2022-05-06
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the cloud era, applications under the distributed micro-service architecture are becoming more and more abundant, and various application exception problems follow one after another. The mutual calling relationship between micro-services is extremely complicated, and some individual request links are also very long, which leads to analysis and positioning problems. extremely difficult
The traditional method has caused a lot of human maintenance and time costs to the enterprise.

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
  • JS-based log analysis method and device, electronic equipment and medium
  • JS-based log analysis method and device, electronic equipment and medium
  • JS-based log analysis method and device, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] This application provides a log analysis method based on JS, refer to figure 1 ,include:

[0049] S1. Create an application component to be detected based on the JavaScript operating environment.

[0050] S2. The Java acquisition probe injected into the JavaScript operating environment by the application component to be detected.

[0051] S3. Enhance one or more call methods, and generate a unique call chain index identifier for each call method.

[0052] S4. Receive the data collection task request, use the Java collection probe to collect data in real time according to the data collection task request and the calling method, and report the data to the log service system.

[0053] S5. In the log service system, search the call chain index identifier through the keyword index to view the log corresponding to the entire link, so as to locate the business abnormality.

[0054] Specifically, JavaScript is an advanced, interpreted programming language that supports object-...

Embodiment 2

[0079] Corresponding to the above-mentioned embodiments, the present application also provides a log analysis device based on JS, referring to image 3 , the device includes an application component management module, a collection probe injection module, a probe enhancement module, a data collection and reporting module, and a log service module.

[0080] Wherein, the application component management module is used to create the application component to be detected based on the JavaScript operating environment; the acquisition probe injection module is used to inject the Java acquisition probe of the JavaScript operating environment into the application component to be detected; the probe enhancement A module for enhancing one or more calling methods, generating a unique calling chain index identifier for each calling method; a data collection and reporting module for receiving a data collection task request, and according to the data collection task request and the calling me...

Embodiment 3

[0089] Corresponding to the above-mentioned embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the above-mentioned JS-based log analysis method can be implemented .

[0090] Such as Figure 4 As shown, in some embodiments, the system can be used as the above-mentioned electronic device in any one of the above-mentioned embodiments for the log analysis method based on JS. In some embodiments, a system may include one or more computer-readable media (e.g., system memory or NVM / storage devices) having instructions and coupled to the one or more computer-readable media and configured to execute the instructions to One or more processors (eg, processor(s)) that implement a module such that the actions described in this application are performed.

[0091] For one embodiment, the system control module may include ...

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 discloses a log analysis method and device based on JS, electronic equipment and a medium, and relates to the technical field of computers. The method comprises the following steps: creating a to-be-detected application component based on a JS running environment; injecting a Java acquisition probe of the JS running environment into the to-be-detected application component; enhancing one or more calling methods, and generating a unique calling chain index identifier for each calling method; receiving a data acquisition task request, performing data acquisition in real time by using the Java acquisition probe according to the data acquisition task request and the calling method, and reporting the data to a log service system; and in the log service system, searching the call chain index identifier through the keyword index to view the log corresponding to the full link so as to locate the business exception. According to the method, the abnormal problem of the call link can be quickly and accurately positioned and diagnosed from the code level through log analysis.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a JS-based log analysis method, device, electronic equipment and media. Background technique [0002] Container technology is a virtualization technology that saves computing resources and is more flexible than virtual machine technology. With the development of container technology, many container orchestration engines have emerged to manage containers, and Kubernetes technology stands out as the de facto standard in the field of container orchestration. Kubernetes is a container orchestration engine open sourced by Google, which supports automated deployment, large-scale scalability, and application container management. [0003] In the cloud era, applications under the distributed micro-service architecture are becoming more and more abundant, and various application exceptions come one after another. The mutual calling relationship between micro-services is extre...

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): G06F11/07
CPCG06F11/0787G06F11/079Y02D10/00
Inventor 王成龙吴栋
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD