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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


