Data analysis method and device

By collecting and analyzing fault log files of Java virtual machine crashes, and using knowledge graphs and feature information retrieval libraries to quickly determine the cause of the crash, it solves the problem of difficulty in determining the cause of JVM crashes and improves fault handling efficiency.

CN118132447BActive Publication Date: 2024-10-08ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410536330.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-10-08
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

After a Java virtual machine (JVM) crashes, it is difficult to quickly determine the cause of the crash, making it difficult for operation and maintenance personnel to solve the application crash problem in a timely manner among the many crash causes.

Method used

By collecting the fault log files to be processed, extracting feature information, querying the target fault cause in the preset knowledge graph, and using the feature information retrieval library and knowledge graph to quickly determine the actual cause of the JVM crash.

Benefits of technology

It improves the efficiency and accuracy of determining the cause of JVM crash, reduces the time for operation and maintenance personnel to manually analyze various crash causes, and improves the speed of solving application crash problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118132447B_ABST
    Figure CN118132447B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a data analysis method and device, wherein the data analysis method includes: collecting a pending fault log file for a pending terminal, wherein the pending fault log file includes at least one pending fault data; extracting feature information of the pending fault log file and each pending fault data, obtaining pending log feature information and each pending fault feature information; querying at least one target log feature information in a preset feature information retrieval library based on the pending log feature information and each pending fault feature information; determining the target fault cause of the pending terminal in a preset knowledge graph based on each target log feature information, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file. The efficiency of determining the target fault cause of the pending terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and in particular, to a data analysis method, a data analysis apparatus, a computing device, a computer-readable storage medium, and a computer program product. Background Art

[0002] When a Java application runs on a JVM (Java Virtual Machine), it may encounter a JVM crash. After a JVM crash occurs, it is necessary to detect the problem in a timely manner and fix the crash to solve the online application crash. However, in actual applications, there are many reasons why the JVM crashes, and users may not be able to detect the cause of the JVM crash in a timely manner. Therefore, it is necessary to analyze the crash cause to determine the actual cause of the JVM crash among many crash causes, so that operation and maintenance personnel can solve the application crash problem based on the actual cause of the JVM crash. Therefore, it is particularly important to quickly determine the actual cause of the JVM crash. Summary of the invention

[0003] In view of this, the embodiments of this specification provide a data analysis method. One or more embodiments of this specification also relate to a data analysis device, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a data analysis method is provided, comprising:

[0005] Collecting a to-be-processed fault log file for the to-be-processed terminal, wherein the to-be-processed fault log file includes at least one to-be-processed fault data;

[0006] Extracting the feature information of the fault log file to be processed and each fault data to be processed, and obtaining the feature information of the log to be processed and the feature information of each fault to be processed;

[0007] According to the to-be-processed log characteristic information and each to-be-processed fault characteristic information, query at least one target log characteristic information in a preset characteristic information retrieval library;

[0008] According to the characteristic information of each target log, the target fault cause of the terminal to be processed is determined in a preset knowledge graph, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file.

[0009] According to a second aspect of an embodiment of this specification, there is provided a data analysis device, including:

[0010] A collection module is configured to collect a log file of a pending fault for a pending terminal, wherein the log file of the pending fault includes at least one pending fault data;

[0011] A feature extraction module is configured to extract feature information of the to-be-processed fault log file and each to-be-processed fault data, and obtain feature information of the to-be-processed log and feature information of each to-be-processed fault;

[0012] A query module, configured to query at least one target log feature information in a preset feature information retrieval library according to the to-be-processed log feature information and each to-be-processed fault feature information;

[0013] The determination module is configured to determine the target fault cause of the terminal to be processed in a preset knowledge graph according to the characteristic information of each target log, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file.

[0014] According to a third aspect of the embodiments of this specification, another data analysis method is provided, including:

[0015] Collecting a to-be-processed fault log file for a to-be-processed virtual machine, wherein the to-be-processed fault log file includes at least one to-be-processed fault data;

[0016] Extracting the feature information of the fault log file to be processed and each fault data to be processed, and obtaining the feature information of the log to be processed and the feature information of each fault to be processed;

[0017] According to the to-be-processed log characteristic information and each to-be-processed fault characteristic information, query at least one target log characteristic information in a preset characteristic information retrieval library;

[0018] According to the characteristic information of each target log, determine the target fault cause of the virtual machine to be processed in a preset knowledge graph, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file;

[0019] Determine the failure time of the to-be-processed virtual machine, and send the failure time and the target failure cause to the user terminal.

[0020] According to a fourth aspect of the embodiments of this specification, another data analysis device is provided, including:

[0021] A file collection module is configured to collect a to-be-processed fault log file for a to-be-processed virtual machine, wherein the to-be-processed fault log file includes at least one to-be-processed fault data;

[0022] An extraction module is configured to extract the feature information of the to-be-processed fault log file and each to-be-processed fault data, and obtain the to-be-processed log feature information and each to-be-processed fault feature information;

[0023] An information query module is configured to query at least one target log feature information in a preset feature information retrieval library according to the to-be-processed log feature information and each to-be-processed fault feature information;

[0024] A cause determination module is configured to determine the target fault cause of the virtual machine to be processed in a preset knowledge graph according to the characteristic information of each target log, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file;

[0025] The cause sending module is configured to determine the failure time when the failure of the to-be-processed virtual machine occurs, and send the failure time and the target failure cause to the user terminal.

[0026] According to a fifth aspect of an embodiment of this specification, a computing device is provided, including:

[0027] Memory and processor;

[0028] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the above-mentioned data analysis method are implemented.

[0029] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the above-mentioned data analysis method are implemented.

[0030] According to a seventh aspect of the embodiments of this specification, there is provided a computer program product, comprising a computer program / instruction, which implements the steps of the above-mentioned data analysis method when executed by a processor.

[0031] An embodiment of the present specification realizes that by collecting the pending fault log files of the pending terminal, the pending fault log files are processed, specifically, the characteristic information of the pending fault log files and each pending fault data in the pending fault log files are extracted, so that the target log characteristic information corresponding to the pending fault log files can be queried according to the characteristic information of the pending fault log files and the characteristic information of the pending fault data, and the efficiency of the target log characteristic information corresponding to the pending fault log files is improved by querying through the characteristic information; after obtaining the target log characteristic information, the target fault cause of the terminal to be processed can be determined in the preset knowledge graph, because the preset knowledge graph stores multiple log files and fault data associated with each log file, therefore, it is possible to quickly determine the target fault cause of the terminal to be processed in the preset knowledge graph according to the target log characteristic information, thereby improving the efficiency of determining the target fault cause of the terminal to be processed. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a schematic diagram of an application scenario of a data analysis method provided by an embodiment of this specification;

[0033] Figure 2 is a flow chart of a data analysis method provided by an embodiment of this specification;

[0034] Figure 3 is a schematic diagram of a preset knowledge graph provided by an embodiment of this specification;

[0035] Figure 4 It is a schematic diagram of a process for constructing a preset knowledge graph provided by an embodiment of this specification;

[0036] Figure 5 is a processing flow chart of a data analysis method provided by an embodiment of this specification;

[0037] Figure 6 is a structural schematic diagram of a data analysis device provided by an embodiment of this specification;

[0038] Figure 7 is a flow chart of another data analysis method provided by an embodiment of this specification;

[0039] Figure 8 is a schematic diagram of the structure of another data analysis device provided by an embodiment of this specification;

[0040] Fig. 9 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0041] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0042] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0043] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0044] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0045] First, the terms involved in one or more embodiments of this specification are explained.

[0046] JVM (Java Virtual Machine): Java virtual machine is an abstract computer that executes Java bytecode and provides Java programs with the ability to run across platforms.

[0047] Java Agent: A special Java application that can dynamically insert bytecodes into the JVM when it is started or during operation. It is used to monitor, modify or enhance the behavior of the application.

[0048] Data visualization: Presenting data in the form of graphics or images so that users can intuitively understand the information in the data.

[0049] Knowledge graph: A way of organizing knowledge that uses graphical structures to represent the relationships between entities. It is widely used in information retrieval, natural language processing and other fields.

[0050] Text similarity model: used to evaluate the similarity between two text documents and is one of the common task models in the field of natural language processing.

[0051] SimCSE (Simple Contrastive Learning of Sentence Embeddings): An unsupervised text similarity model training method that can generate positive samples for model training by using different dropout strategies.

[0052] BERT (Bidirectional Encoder Representations from Transformers): A pre-trained language representation model used to improve natural language processing systems’ understanding of language.

[0053] Faiss: A similarity search and dense vector clustering library, widely used for large-scale vector search.

[0054] In actual applications, users often encounter application crashes or device terminal crashes. In this case, technical operation and maintenance personnel are required to find the cause of the crash based on the current crash situation, so as to solve the current crash situation according to the cause of the crash, so that the application or device terminal can return to normal. For example, when a Java application is running on a JVM, it may encounter the problem of JVM crashes. After the JVM crashes, it is necessary to perceive the problem in time and fix the crash problem to solve the problem of online application crashes. However, in actual applications, there are many reasons for the JVM to crash, and users may not be able to perceive the reason for the JVM crash in time. Therefore, it is necessary to analyze the cause of the crash to determine the actual cause of the JVM crash among many crash reasons, so that the operation and maintenance personnel can solve the application crash problem according to the actual cause of the JVM crash.

[0055] In this specification, a data analysis method is provided. This specification also relates to a data analysis apparatus, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.

[0056] See also Figure 1 , Figure 1FIG. 1 is a schematic diagram showing an application scenario of a data analysis method provided according to an embodiment of the present specification. Figure 1 As shown, the data analysis method provided in this specification is applied to the JVM crash scenario as an example for explanation. In the application scenario of JVM crash, the Java Agent technology can be used to detect the applications running on each JVM to determine the running status of each application on the JVM. When each application crashes, the JVM crash log (i.e., JVM fault log file) generated during the operation of each application is collected through JavaAgent technology. After collecting and obtaining the JVM fault log files of each application, the pending fault data in the JVM fault log file is extracted, such as stack, error information and other data, and the JVM fault log file and the extracted pending fault data are input into the feature information extraction model to extract feature information, so that the log feature information corresponding to the JVM fault log file and the pending fault feature information corresponding to each pending fault data can be obtained. Furthermore, the target log feature information corresponding to the JVM fault log file can be searched based on the obtained feature information. Specifically, the feature information corresponding to each log file in the preset knowledge graph can be stored through the Faiss vector retrieval library. After obtaining the log feature information corresponding to the JVM fault log file and the pending fault feature information corresponding to each pending fault data, the target log feature information corresponding to the JVM fault log file can be searched in the Faiss vector retrieval library through these feature information. Since the preset knowledge graph stores both the text content of each log file and the fault data in each log file, and the feature information of each log file and the fault data in each log file, after obtaining the target log feature information, the target log file corresponding to the target log feature information and the target fault data corresponding to the target log file can be determined in the preset knowledge graph according to the target log feature information, thereby determining the target fault cause of the JVM.

[0057] Furthermore, in order to facilitate the user to intuitively understand the target fault cause of the JVM, the determined target fault cause of the JVM may be visualized and presented to the user in each user terminal.

[0058] The above only uses the application scenario of JVM crash as an example to explain the data analysis method provided in this specification. It is not limited to the application scenario of JVM crash, and can also be applied to any application scenario where the cause of the failure needs to be determined, such as application exceptions.

[0059] The data analysis method provided in this specification, through a feature information extraction model and a pre-built preset knowledge graph, can utilize the feature information extraction model and the preset knowledge graph to analyze and process the collected fault log files to determine the target fault cause of the terminal to be processed, without the need for manual analysis one by one among the numerous fault causes, thereby improving the efficiency and accuracy of determining the target fault cause.

[0060] See also Figure 2 , Figure 2 A flow chart of a data analysis method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0061] Step 202: Collect a log file of a pending fault for a pending terminal, wherein the log file of the pending fault includes at least one pending fault data.

[0062] When an application or a terminal device crashes, it is often necessary to manually determine the cause of the current application or terminal device crash from among many crash causes, which makes the process of determining the cause of the application or terminal device crash more difficult.

[0063] Based on this, the data analysis method provided in this specification can automatically collect crash log files (i.e., fault log files) when an application or device crashes, and determine the cause of the crash of the application or device terminal by analyzing and processing the collected crash log files.

[0064] The "terminal to be processed" refers to a terminal or virtual machine that has a fault, and also refers to a terminal or virtual machine running a faulty application. The "fault log file to be processed" refers to a fault log file used to determine the fault cause of the terminal to be processed, specifically, a fault log file generated by an application running on the terminal to be processed when the terminal to be processed fails, and also a fault log file generated when an application running on the terminal to be processed fails.

[0065] Specifically, when a fault occurs in the terminal to be processed, or when a fault occurs in an application running on the terminal to be processed, the fault log file to be processed for the terminal to be processed is collected, so as to determine the fault cause of the terminal to be processed based on the fault log file to be processed in the subsequent process. In actual applications, an application with the function of detecting the running behavior of an application can be used to collect the fault log file to be processed, for example, Java Agent; a container for detecting the running behavior of an application can also be created for collection, etc.

[0066] Since the fault log file often records various reasons for the fault, after obtaining the pending fault log file, at least one pending fault data can be extracted from the pending fault log file. The pending fault data refers to the data in the pending fault log file that may affect the failure of the pending terminal, such as stacks, signals, threads, operating systems (OS), etc.

[0067] In the process of extracting the pending fault data from the pending fault log file, it can be achieved by manual extraction. To further improve the efficiency of extracting the pending fault data, it is also possible to extract the pending fault data by training a fault data extraction model. This specification does not limit the extraction method of the pending fault data from the pending fault log file.

[0068] Step 204: extracting the feature information of the to-be-processed fault log file and each to-be-processed fault data, and obtaining the to-be-processed log feature information and each to-be-processed fault feature information.

[0069] After obtaining the pending fault log file and each pending fault data in the pending fault log file, feature extraction can be performed on the pending fault log file and each pending fault data to obtain feature information corresponding to the pending fault log file and feature information corresponding to each pending fault data, so as to further process the pending fault log file based on the feature information in the subsequent process.

[0070] The characteristic information may be a characteristic vector or a characteristic matrix. The characteristic information of the log to be processed is the characteristic vector or characteristic matrix of the fault log file to be processed; the characteristic information of the fault to be processed is the characteristic vector or characteristic matrix of the fault data to be processed. In practical applications, the implementation method of extracting the characteristic information of the log to be processed and the characteristic information of the fault to be processed is as follows:

[0071] In a specific implementation manner provided in this specification, extracting the characteristic information of the to-be-processed fault log file and each to-be-processed fault data to obtain the to-be-processed log characteristic information and each to-be-processed fault characteristic information includes:

[0072] Inputting the pending fault log file and each pending fault data into a feature information extraction model;

[0073] The feature information of the log to be processed and the feature information of each fault to be processed output by the feature information extraction model are obtained.

[0074] The feature information extraction model is used to extract feature information from each fault log file and the fault data associated with each fault log file. For example, the feature information extraction model may be a BERT model, a Transformer model, and the like.

[0075] Specifically, after obtaining the pending fault log file and each pending fault data, the pending fault log file and each pending fault data can be input into the feature information extraction model, and the feature information extraction model performs feature extraction on the pending fault log file and the pending fault data, thereby outputting and obtaining the pending log feature information corresponding to the pending fault log file and the pending fault feature information corresponding to the pending fault data.

[0076] Since the feature information extraction model is the basis for feature extraction, before feature extraction, the untrained feature information extraction model needs to be trained to obtain a trained feature information extraction model.

[0077] In a specific implementation manner provided in this specification, the feature information extraction model is trained based on the following method:

[0078] Acquire training sample data from the preset knowledge graph;

[0079] Performing feature extraction twice on the first training sample data based on the feature information extraction model to obtain first sample feature information and second sample feature information, wherein the first training sample data is any one of the training sample data;

[0080] Performing feature extraction on the second training sample data based on the feature information extraction model to obtain third sample feature information, wherein the second training sample data is any one of the training sample data except the first training sample data;

[0081] Calculating a first loss value of the feature information extraction model according to the first sample feature information and the second sample feature information;

[0082] Calculating a second loss value of the feature information extraction model according to the first sample feature information and the third sample feature information;

[0083] According to the first loss value and the second loss value, the model parameters of the feature information extraction model are adjusted, and the feature information extraction model is continuously trained until a training stop condition is reached.

[0084] Among them, the training sample data is the data used to train the feature information extraction model. The training sample data can be obtained from the preset knowledge graph. At this time, the knowledge graph stores the text content of each log file and the fault data in each log file, but does not yet store the feature information of each log file and the fault data in each log file.

[0085] The first training sample data is any one of the training sample data; the second training sample data is any sample data in the training sample data except the first training sample data. The first sample feature information and the second sample feature information are feature information obtained by inputting the first training sample data into the feature information extraction model twice. The third sample feature information is feature information obtained by inputting the second training sample data into the feature information extraction model.

[0086] Since the first sample feature information and the second sample feature information are both feature information of the first training sample data, the first sample feature information and the second sample feature information constitute a positive sample pair; the first sample feature information is the feature information of the first training sample data, and the third sample feature information is the feature information of the second training sample data, that is, the first sample feature information and the third sample feature information are feature information of different training sample data, respectively, therefore, the first sample feature information and the third sample feature information constitute a negative sample pair. In practical applications, the dropout technology can be used to construct positive samples, and other data in the same batch of training sample data can be used as negative samples.

[0087] The first loss value refers to the difference value between the first sample feature information and the second sample feature information, which is used to measure the difference between the first sample feature information and the second sample feature information, that is, used to measure the difference between positive samples; the second loss value refers to the difference value between the first sample feature information and the third sample feature information, which is used to measure the difference between the first sample feature information and the third sample feature information, that is, used to measure the difference between negative samples.

[0088] Specifically, after obtaining the training sample data from the preset knowledge graph, the training sample data is input into the feature information extraction model, and positive samples and negative samples can be constructed. The feature information extraction model is used to generate feature information corresponding to the training sample data. At this time, the feature information extraction model is a model that has not been trained yet. There will be a deviation between the generated feature information and the actual feature information, and the model parameters of the feature information extraction model need to be adjusted accordingly. The first loss value of the feature information extraction model (i.e., the loss value between positive samples) is calculated according to the first sample feature information and the second sample feature information, and the second loss value of the feature information extraction model (i.e., the loss value between negative samples) is calculated according to the first sample feature information and the third sample feature information. The loss function for calculating the loss value can be a 0-1 loss function, a square loss function, a cross entropy loss function, etc. in actual applications. In this specification, preferably, the cross entropy function is selected as the loss function for calculating the first loss value and the second loss value, and the model parameters of the feature information extraction model are adjusted according to the first loss value and the second loss value. The feature information extraction model is continuously trained based on the adjusted model parameters for the next batch of training sample data until the stop condition of the model training is reached.

[0089] Specifically, the model training stopping conditions include that the model loss value is less than a preset threshold and / or the training rounds reach a preset round.

[0090] In a specific implementation provided in this specification, taking the training stop condition of the model loss value being less than a preset threshold as an example, the preset threshold is 0.3, and when the first loss value and the second loss value are both less than 0.3, it is considered that the feature information extraction model training is completed. It is also possible to set preset thresholds for the first loss value and the second loss value for training according to actual application conditions. When the first loss value and the second loss value are both less than their corresponding preset thresholds, it is considered that the feature information extraction model training is completed.

[0091] In another specific implementation provided in the present specification, taking the preset number of training rounds as the training stop condition as an example, the preset number of training rounds is 30 rounds. When the training rounds of the training sample data reach 30 rounds, it is considered that the feature information extraction model training is completed.

[0092] In another specific implementation manner provided in the present specification, two training stop conditions, namely a preset threshold and a preset training round, are set, and the model loss value and the training rounds are monitored simultaneously. When either the model loss value or the training rounds meets the training stop condition, the feature information extraction model training is considered completed.

[0093] By obtaining training sample data from a preset knowledge graph, and constructing positive sample data and negative sample data for training the feature information extraction model based on the training sample data and the feature information extraction model, the feature information extraction model is trained unsupervisedly based on the constructed positive sample data and negative sample data. There is no need to manually annotate the training data to obtain sample labels, thereby improving the accuracy of feature information extraction model training while reducing the cost of manual annotation.

[0094] See also Figure 3 , Figure 3 A schematic diagram of a preset knowledge graph provided according to an embodiment of this specification is shown. Figure 3 As shown in the figure, a preset knowledge graph can be constructed based on the historical fault problems obtained. Specifically, the components, labels, versions, descriptions and other information of the fault problems can be extracted as entities of the preset knowledge graph (such as Figure 3 ), extract key information (fault data) in the fault log file from the description of the fault problem, components and other information, such as stack, signal, thread, CPU (Central Processing Unit), OS (Operating System), etc. as entities of the preset knowledge graph. In practical applications, the preset knowledge graph can be constructed manually or by training a model. It should be noted that the preset knowledge graph can also store the characteristic information of the fault log file and the characteristic information of each fault data ( Figure 3 not shown).

[0095] Specifically, after the feature information extraction model is trained, the trained feature information extraction model can be used to extract features from each entity in the preset knowledge graph, and the feature information obtained after feature extraction is stored in the preset knowledge graph. For details, see Figure 4 , Figure 4 This is a schematic diagram of a process for constructing a preset knowledge graph provided by an embodiment of this specification. Figure 4 As shown in the figure, data for building a preset knowledge graph can be obtained from the JDK Bug System. Figure 3 The method shown constructs a preset knowledge graph that has stored the text content of each log file and the fault data in each log file, inputs each entity in the preset knowledge graph into the trained feature information extraction model, obtains the feature information of each log file output by the feature information extraction model, and the feature information of each fault data, and stores the obtained feature information in the preset knowledge graph, so as to obtain a preset knowledge graph that stores both the text content of each log file and the fault data in each log file and the feature information of each log file and the fault data in each log file.

[0096] The data analysis method provided in this specification uses a trained feature information extraction model to extract features from the fault log files to be processed and each fault data to be processed, thereby improving the accuracy of obtaining the feature information of the logs to be processed and the feature information of each fault to be processed.

[0097] Step 206: According to the to-be-processed log characteristic information and each to-be-processed fault characteristic information, query at least one target log characteristic information in a preset characteristic information retrieval library.

[0098] In practical applications, after the preset knowledge graph is constructed, an index can be constructed for each fault log file in the preset knowledge graph in the preset feature information retrieval library, that is, each log feature information in the preset knowledge graph is stored in the preset feature information retrieval library. Therefore, after obtaining the feature information of the log to be processed and the feature information of each fault to be processed based on the feature information extraction model, the target log feature information of the target log file corresponding to the fault log file to be processed can be queried in the preset feature information retrieval library based on the feature information of the log to be processed and the feature information of each fault to be processed.

[0099] Among them, the preset feature information retrieval library refers to a retrieval library created in advance for storing preset log feature information, which can be specifically a Faiss vector retrieval library. The target log feature information refers to the preset log feature information in the preset feature information retrieval library that has a high feature similarity with the log feature information to be processed. The number of target log feature information is determined according to a preset similarity threshold or a preset number of logs. The preset similarity threshold specifically refers to the lower limit of feature similarity between each preset log feature information in the preset feature information retrieval library and the log feature information to be processed. The preset number of logs specifically refers to the number of target log feature information determined in the preset feature information retrieval library.

[0100] Since a fault log file often records multiple fault data, it is necessary to consider each pending fault feature information when searching for the target log feature information corresponding to the pending log feature information in the preset feature information retrieval library. Since there is a large amount of pending fault feature information, it is cumbersome to search in the preset feature information retrieval library. In order to simplify the query process, the pending log feature information can be weighted according to each pending fault feature information, and the preset feature information retrieval library can be queried based on the weighted feature information. The implementation process is as follows:

[0101] In a specific implementation manner provided in this specification, according to the to-be-processed log characteristic information and each to-be-processed fault characteristic information, searching for at least one target log characteristic information in a preset characteristic information retrieval library includes:

[0102] Acquire preset search weight information, wherein the preset search weight information includes preset search weights corresponding to the feature information of the log to be processed and each feature information of the fault to be processed;

[0103] According to the preset retrieval weight information, weight the to-be-processed log characteristic information and each to-be-processed fault characteristic information to obtain user log characteristic information;

[0104] According to the user log characteristic information, at least one target log characteristic information is searched in the preset characteristic information retrieval library.

[0105] The preset search weight information refers to the preset search weights for each fault log file or each log feature information, and the search weights corresponding to each fault data or each fault feature information. The user log feature information refers to the feature information obtained by weighting the log feature information to be processed and the fault feature information to be processed based on the preset search weight information.

[0106] Specifically, before searching for target log feature information in the preset feature information retrieval library based on the log feature information to be processed and the fault feature information to be processed, the preset retrieval weight information is obtained. Since the preset retrieval weight information includes the retrieval weights corresponding to each fault log file or each log feature information, and each fault data or each fault feature information, the preset retrieval weights corresponding to the log feature information to be processed and each fault feature information to be processed can be determined in the preset retrieval weight information. According to the preset retrieval weight, the log feature information to be processed and the fault feature information to be processed are weighted and summed to obtain the weighted feature information, i.e., the user log feature information. Then, according to the user log feature information, the target log feature information can be queried in the preset feature information retrieval library.

[0107] Based on this, the query process can be simplified and the query efficiency can be improved in the process of querying the target log feature information.

[0108] Furthermore, after the user log feature information is obtained by weighting, the target log feature information may be determined by calculating the feature similarity between the user log feature information and each preset log feature information in the preset feature information retrieval library.

[0109] In a specific implementation manner provided in this specification, according to the user log characteristic information, searching for at least one target log characteristic information in the preset characteristic information retrieval library includes:

[0110] Obtaining each preset log feature information in the preset feature information retrieval library;

[0111] Calculating the feature similarity between the user log feature information and each preset log feature information respectively;

[0112] At least one target log feature information is determined in each preset log feature information according to the feature similarity between the user log feature information and each preset log feature information.

[0113] Specifically, after obtaining the user log feature information, each preset log feature information stored in the preset feature information retrieval library is obtained, and the feature similarity between the user log feature information and each preset log feature information is calculated respectively. According to the preset similarity threshold, the preset log feature information greater than or equal to the preset similarity threshold is determined as the target log feature information. It is also possible to determine the preset log feature information of the preset log number as the target log feature information according to the order of the feature similarity between the user log feature information and each preset log feature information from large to small according to the preset log number.

[0114] By determining target log feature information with high similarity to the log feature information to be processed based on the feature similarity between the user log feature information and each preset log feature information in the preset feature information retrieval library, the accuracy and efficiency of determining the target log feature information are improved.

[0115] Step 208: Determine the target fault cause of the terminal to be processed in a preset knowledge graph according to the characteristic information of each target log, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file.

[0116] Since the preset knowledge graph stores not only the text content of each log file and the fault data in each log file, but also the characteristic information of each log file and the fault data in each log file, after obtaining the characteristic information of each target log through query, the target log file corresponding to the target log characteristic information and the fault data associated with the target log file can be determined in the preset knowledge graph according to the target log characteristic information, thereby knowing the target fault cause of the terminal to be processed.

[0117] The target fault cause refers to the fault cause of the determined terminal to be processed.

[0118] In a specific implementation manner provided in this specification, according to each target log feature information, determining the target fault cause of the terminal to be processed in a preset knowledge graph includes:

[0119] According to each target log feature information, determine the target fault feature information associated with each target log feature information in the preset knowledge graph, and the target fault data corresponding to each target fault feature information;

[0120] The target fault cause of the terminal to be processed is determined according to each target fault data.

[0121] The target fault characteristic information refers to the fault characteristic information associated with the target log characteristic information, and the target fault data refers to the fault data of the text content corresponding to the target fault characteristic information.

[0122] Specifically, after obtaining each target log feature information, target fault feature information associated with each target log feature information is determined in the preset knowledge graph according to each target log feature information, and target fault data corresponding to the target fault feature information is determined, and the target fault cause of the terminal to be processed is determined according to the target fault data. For example, if the target fault data is an erroneous operating system, an erroneous version, etc., then the target fault cause of the terminal to be processed can be determined to be an operating system fault, a system version error, etc.

[0123] Furthermore, in order to facilitate the user to intuitively understand the target fault cause, the target fault cause may be visualized.

[0124] Based on this, in a specific implementation manner provided in this specification, after determining the target fault cause of the terminal to be processed in a preset knowledge graph according to each target log feature information, the method further includes:

[0125] Visualize the target fault cause of the terminal to be processed.

[0126] After determining the target fault cause of the terminal to be processed, the target fault cause is read and visually analyzed to be presented to the user on the user terminal, so that the user can intuitively understand the target fault cause of the terminal to be processed.

[0127] In actual applications, after determining the target fault cause of the terminal to be processed, in order to facilitate solving the fault occurring in the terminal to be processed, the target fault cause may also be sent to the user terminal, as follows:

[0128] In a specific implementation manner provided in this specification, after determining the target fault cause of the terminal to be processed in a preset knowledge graph according to each target log feature information, the method further includes:

[0129] Determine the fault time when the terminal to be processed fails;

[0130] The fault time and the target fault cause are sent to the user terminal.

[0131] In order to promptly resolve the faults occurring in the processing terminal, the time when the fault occurred can be further known so that the operation and maintenance personnel can perceive the occurrence of the fault in time and resolve the fault as soon as possible.

[0132] The user terminal may be a terminal for operation and maintenance personnel. Specifically, the fault time of the terminal to be processed is determined, and the fault time and target fault cause are sent to the user terminal, so that the operation and maintenance personnel can timely perceive the occurrence of the fault based on the fault time. Specifically, the operation and maintenance personnel can be notified by email, text message, etc. After receiving the notification, the operation and maintenance personnel can process the terminal to be processed according to the target fault cause.

[0133] The data analysis method provided in the present specification includes: collecting a pending fault log file for a pending terminal, wherein the pending fault log file includes at least one pending fault data; extracting feature information of the pending fault log file and each pending fault data to obtain pending log feature information and each pending fault feature information; querying at least one target log feature information in a preset feature information retrieval library based on the pending log feature information and each pending fault feature information; determining a target fault cause of the pending terminal in a preset knowledge graph based on each target log feature information, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file.

[0134] An embodiment of the present specification realizes collecting the fault log files to be processed, analyzing and processing the fault log files to be processed through a feature information extraction model and a preset knowledge graph, so as to determine the target fault cause of the terminal to be processed, thereby improving the efficiency of fault cause determination; after determining the target fault cause of the terminal to be processed, the fault time and the target fault cause can also be sent to the user terminal, so that the operation and maintenance personnel can perceive the occurrence of the fault in time, and process the terminal to be processed according to the target fault cause, thereby improving the efficiency and timeliness of the operation and maintenance personnel in solving the fault of the terminal to be processed.

[0135] The following combination Figure 5 , taking the application of the data analysis method provided in this specification in the Java virtual machine crash failure scenario as an example, the data analysis method is further explained. Figure 5 A processing flow chart of a data analysis method provided by an embodiment of the present specification is shown, Figure 5As shown, the dotted arrow process part is the process of building a preset knowledge graph, and the solid arrow part is the application process of the data analysis method. For the process of building a preset knowledge graph, the data used to build the preset knowledge graph can be obtained from the JDK Bug System, and the components, tags, versions, descriptions and other information of the JVM fault problem are extracted as entities of the preset knowledge graph. The JVM fault log file is screened out from the description and components of the JVM fault problem, and analyzed, and the fault data in the JVM fault log file, such as stack, signal, thread and other data, is extracted as the entity of the preset knowledge graph, thereby obtaining a preset knowledge graph storing the fault log file and the text content of the fault data. Based on the data in the preset knowledge graph constructed at this time, the feature information extraction model is trained to obtain the trained feature information extraction model, the data in the constructed preset knowledge graph is input into the trained feature information extraction model, the feature information of the fault log file and the feature information of each fault data are obtained, and the obtained feature information is stored in the preset knowledge graph, so that a preset knowledge graph that stores both the text content of each fault log file and the fault data in each fault log file and the feature information of each fault log file can be obtained.

[0136] According to the application process of the data analysis method, the JVM fault log files generated by each application during operation are collected, the fault data in the JVM fault log files are extracted, and the JVM fault log files and the extracted fault data are input into the feature information extraction model to obtain the feature information of the JVM fault log files and each fault data. Based on the obtained feature information, the target log feature information is queried in the preset feature information retrieval library, and then the target fault cause of the Java virtual machine failure is determined in the preset knowledge graph based on the target log feature information, the target fault cause is visualized, and the visualized target fault cause is fed back to the user terminal to present the target fault cause of the Java virtual machine to the user on the user terminal.

[0137] An embodiment of the present specification realizes, through a feature information extraction model and a preset knowledge graph, analyzing and processing the collected JVM fault log files to determine the target fault cause of the terminal to be processed, and visualizing the target fault cause and feeding it back to the user terminal, thereby improving the efficiency and accuracy of determining the target fault cause.

[0138] Corresponding to the above method embodiment, this specification also provides a data analysis device embodiment, Figure 6 FIG. 1 is a schematic diagram showing the structure of a data analysis device provided by an embodiment of the present specification. Figure 6 As shown, the device comprises:

[0139] The collection module 602 is configured to collect a log file of a pending fault for a pending terminal, wherein the log file of the pending fault includes at least one pending fault data;

[0140] The feature extraction module 604 is configured to extract feature information of the to-be-processed fault log file and each to-be-processed fault data, and obtain feature information of the to-be-processed log and feature information of each to-be-processed fault;

[0141] The query module 606 is configured to query at least one target log feature information in a preset feature information retrieval library according to the feature information of the log to be processed and the feature information of each fault to be processed;

[0142] The determination module 608 is configured to determine the target fault cause of the terminal to be processed in a preset knowledge graph according to the characteristic information of each target log, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file.

[0143] Optionally, the feature extraction module 604 is further configured to:

[0144] Inputting the pending fault log file and each pending fault data into a feature information extraction model;

[0145] The feature information of the log to be processed and the feature information of each fault to be processed output by the feature information extraction model are obtained.

[0146] Optionally, the query module 606 is further configured to:

[0147] Acquire preset search weight information, wherein the preset search weight information includes preset search weights corresponding to the feature information of the log to be processed and each feature information of the fault to be processed;

[0148] According to the preset retrieval weight information, weight the to-be-processed log characteristic information and each to-be-processed fault characteristic information to obtain user log characteristic information;

[0149] According to the user log characteristic information, at least one target log characteristic information is searched in the preset characteristic information retrieval library.

[0150] Optionally, the query module 606 is further configured to:

[0151] Obtaining each preset log feature information in the preset feature information retrieval library;

[0152] Calculating the feature similarity between the user log feature information and each preset log feature information respectively;

[0153] At least one target log feature information is determined in each preset log feature information according to the feature similarity between the user log feature information and each preset log feature information.

[0154] Optionally, the determining module 608 is further configured to:

[0155] According to each target log feature information, determine the target fault feature information associated with each target log feature information in the preset knowledge graph, and the target fault data corresponding to each target fault feature information;

[0156] The target fault cause of the terminal to be processed is determined according to each target fault data.

[0157] Optionally, the device further includes a processing module configured to:

[0158] Visualize the target fault cause of the terminal to be processed.

[0159] Optionally, the device further includes a sending module configured to:

[0160] Determine the fault time when the terminal to be processed fails;

[0161] The fault time and the target fault cause are sent to the user terminal.

[0162] Optionally, the device further comprises a training module configured to:

[0163] Acquire training sample data from the preset knowledge graph;

[0164] Performing feature extraction twice on the first training sample data based on the feature information extraction model to obtain first sample feature information and second sample feature information, wherein the first training sample data is any one of the training sample data;

[0165] Performing feature extraction on the second training sample data based on the feature information extraction model to obtain third sample feature information, wherein the second training sample data is any one of the training sample data except the first training sample data;

[0166] Calculating a first loss value of the feature information extraction model according to the first sample feature information and the second sample feature information;

[0167] Calculating a second loss value of the feature information extraction model according to the first sample feature information and the third sample feature information;

[0168] According to the first loss value and the second loss value, the model parameters of the feature information extraction model are adjusted, and the feature information extraction model is continuously trained until a training stop condition is reached.

[0169] The data analysis device provided in the present specification includes: a collection module, configured to collect a pending fault log file for a pending terminal, wherein the pending fault log file includes at least one pending fault data; a feature extraction module, configured to extract feature information of the pending fault log file and each pending fault data, and obtain pending log feature information and each pending fault feature information; a query module, configured to query at least one target log feature information in a preset feature information retrieval library according to the pending log feature information and each pending fault feature information; a determination module, configured to determine the target fault cause of the terminal to be processed in a preset knowledge graph according to each target log feature information, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file.

[0170] An embodiment of the present specification realizes collecting the fault log files to be processed, analyzing and processing the fault log files to be processed through a feature information extraction model and a preset knowledge graph, so as to determine the target fault cause of the terminal to be processed, thereby improving the efficiency of fault cause determination; after determining the target fault cause of the terminal to be processed, the fault time and the target fault cause can also be sent to the user terminal, so that the operation and maintenance personnel can perceive the occurrence of the fault in time, and process the terminal to be processed according to the target fault cause, thereby improving the efficiency and timeliness of the operation and maintenance personnel in solving the fault of the terminal to be processed.

[0171] The above is a schematic scheme of a data analysis device of this embodiment. It should be noted that the technical scheme of the data analysis device and the technical scheme of the above data analysis method belong to the same concept, and the details not described in detail in the technical scheme of the data analysis device can be referred to the description of the technical scheme of the above data analysis method.

[0172] See also Figure 7 , Figure 7 A flow chart of another data analysis method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0173] Step 702: Collect a to-be-processed fault log file for the to-be-processed virtual machine, wherein the to-be-processed fault log file includes at least one to-be-processed fault data.

[0174] A pending virtual machine is any virtual machine that has experienced a fault, or a virtual machine that is running a faulty application.

[0175] Step 704: extract the feature information of the to-be-processed fault log file and each to-be-processed fault data, and obtain the to-be-processed log feature information and each to-be-processed fault feature information.

[0176] Step 706: According to the to-be-processed log characteristic information and each to-be-processed fault characteristic information, query at least one target log characteristic information in a preset characteristic information retrieval library.

[0177] Step 708: Determine the target failure cause of the virtual machine to be processed in a preset knowledge graph according to the characteristic information of each target log, wherein the preset knowledge graph stores at least one log file and failure data associated with each log file.

[0178] Step 710: Determine the failure time when the virtual machine to be processed fails, and send the failure time and the target failure cause to the user terminal.

[0179] Another embodiment provided in the present specification realizes analyzing and processing the pending fault log files of the pending virtual machine through a feature information extraction model and a preset knowledge graph to determine the target fault cause of the pending virtual machine and improve the efficiency of fault cause determination; after determining the target fault cause of the pending virtual machine, the fault time and the target fault cause are sent to the user terminal so that the operation and maintenance personnel can perceive the occurrence of the fault in time and process the pending virtual machine according to the target fault cause, thereby improving the efficiency and timeliness of the operation and maintenance personnel in resolving the failure of the pending virtual machine.

[0180] The technical solution of another data analysis method provided in this specification belongs to the same concept as the technical solution of the above-mentioned data analysis method. For details not described in detail in the technical solution of this data analysis method, please refer to the description of the technical solution of the above-mentioned data analysis method.

[0181] Corresponding to the above method embodiment, this specification also provides another data analysis device embodiment, Figure 8 FIG. 2 shows a schematic diagram of the structure of another data analysis device provided by an embodiment of the present specification. Figure 8 As shown, the device comprises:

[0182] The file collection module 802 is configured to collect a to-be-processed fault log file for the to-be-processed virtual machine, wherein the to-be-processed fault log file includes at least one to-be-processed fault data;

[0183] The extraction module 804 is configured to extract the feature information of the to-be-processed fault log file and each to-be-processed fault data, and obtain the to-be-processed log feature information and each to-be-processed fault feature information;

[0184] The information query module 806 is configured to query at least one target log feature information in a preset feature information retrieval library according to the feature information of the log to be processed and the feature information of each fault to be processed;

[0185] The cause determination module 808 is configured to determine the target fault cause of the virtual machine to be processed in a preset knowledge graph according to the characteristic information of each target log, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file;

[0186] The reason sending module 810 is configured to determine the failure time when the failure of the to-be-processed virtual machine occurs, and send the failure time and the target failure cause to the user terminal.

[0187] Another embodiment provided in the present specification realizes analyzing and processing the pending fault log files of the pending virtual machine through a feature information extraction model and a preset knowledge graph to determine the target fault cause of the pending virtual machine and improve the efficiency of fault cause determination; after determining the target fault cause of the pending virtual machine, the fault time and the target fault cause are sent to the user terminal so that the operation and maintenance personnel can perceive the occurrence of the fault in time and process the pending virtual machine according to the target fault cause, thereby improving the efficiency and timeliness of the operation and maintenance personnel in resolving the failure of the pending virtual machine.

[0188] The above is a schematic scheme of another data analysis device of this embodiment. It should be noted that the technical scheme of the data analysis device and the technical scheme of the above data analysis method belong to the same concept, and the details not described in detail in the technical scheme of the data analysis device can be referred to the description of the technical scheme of the above data analysis method.

[0189] Fig. 9 The structure block diagram of a computing device 900 provided according to an embodiment of the present specification is shown. The components of the computing device 900 include but are not limited to a memory 910 and a processor 920. The processor 920 is connected to the memory 910 via a bus 930, and a database 950 is used to store data.

[0190] The computing device 900 also includes an access device 940 that enables the computing device 900 to communicate via one or more networks 960. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 940 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0191] In one embodiment of the present specification, the above components of the computing device 900 and Fig. 9 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig. 9 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0192] The computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 900 may also be a mobile or stationary server.

[0193] The processor 920 is used to execute the following computer program / instructions, which implement the steps of the above-mentioned data analysis method when executed by the processor.

[0194] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computing device embodiment, since it is basically similar to the data analysis method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the data analysis method embodiment.

[0195] An embodiment of the present specification also provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above-mentioned data analysis method when executed by a processor.

[0196] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computer-readable storage medium embodiment, since it is basically similar to the data analysis method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the data analysis method embodiment.

[0197] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned data analysis method when executed by a processor.

[0198] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the above data analysis method belong to the same concept, and the details not described in detail in the technical scheme of the computer program product can be referred to the description of the technical scheme of the above data analysis method.

[0199] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0200] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0201] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0202] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0203] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A data analysis method, comprising: Collecting a to-be-processed fault log file for the to-be-processed terminal, wherein the to-be-processed fault log file includes at least one to-be-processed fault data; Extracting the feature information of the fault log file to be processed and each fault data to be processed, and obtaining the feature information of the log to be processed and the feature information of each fault to be processed; According to the to-be-processed log feature information and each to-be-processed fault feature information, at least one target log feature information is queried in a preset feature information retrieval library, wherein the target log feature information is determined based on the feature similarity between the user log feature information and each preset log feature information in the preset feature information retrieval library, and the user log feature information is obtained by weighting the to-be-processed log feature information and each to-be-processed fault feature information based on preset retrieval weight information; According to each target log feature information, the target fault cause of the terminal to be processed is determined in a preset knowledge graph, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file. The target fault cause of the terminal to be processed is determined in the preset knowledge graph according to each target log feature information, including determining, in the preset knowledge graph according to each target log feature information, target fault feature information associated with each target log feature information and target fault data corresponding to each target fault feature information, determining the target fault cause of the terminal to be processed according to each target fault data, the target fault data being fault data of text content corresponding to the target fault feature information, and the preset knowledge graph storing each fault log file and the text content of the fault data in each fault log file, as well as each fault log file and the feature information of the fault data in each fault log file.

2. The method according to claim 1, extracting the characteristic information of the pending fault log file and each pending fault data to obtain the pending log characteristic information and each pending fault characteristic information, comprising: Inputting the pending fault log file and each pending fault data into a feature information extraction model; The feature information of the log to be processed and the feature information of each fault to be processed output by the feature information extraction model are obtained.

3. The method according to claim 1, querying at least one target log feature information in a preset feature information retrieval library according to the feature information of the log to be processed and the feature information of each fault to be processed, comprising: Acquire preset search weight information, wherein the preset search weight information includes preset search weights corresponding to the feature information of the log to be processed and each feature information of the fault to be processed; According to the preset retrieval weight information, weight the to-be-processed log characteristic information and each to-be-processed fault characteristic information to obtain user log characteristic information; According to the user log characteristic information, at least one target log characteristic information is searched in the preset characteristic information retrieval library.

4. The method according to claim 3, searching for at least one target log feature information in the preset feature information retrieval library according to the user log feature information, comprising: Obtaining each preset log feature information in the preset feature information retrieval library; Calculating the feature similarity between the user log feature information and each preset log feature information respectively; At least one target log feature information is determined in each preset log feature information according to the feature similarity between the user log feature information and each preset log feature information.

5. The method according to claim 1, after determining the target fault cause of the terminal to be processed in a preset knowledge graph according to each target log feature information, the method further comprises: Visualize the target fault cause of the terminal to be processed.

6. The method according to claim 1, after determining the target fault cause of the terminal to be processed in a preset knowledge graph according to each target log feature information, the method further comprises: Determine the fault time when the terminal to be processed fails; The fault time and the target fault cause are sent to the user terminal.

7. The method according to claim 2, wherein the feature information extraction model is trained based on the following method: Acquire training sample data from the preset knowledge graph; Based on the feature information extraction model, feature extraction is performed twice on the first training sample data to obtain first sample feature information and second sample feature information, wherein: The first training sample data is any one of the training sample data; Performing feature extraction on the second training sample data based on the feature information extraction model to obtain third sample feature information, wherein the second training sample data is any one of the training sample data except the first training sample data; Calculating a first loss value of the feature information extraction model according to the first sample feature information and the second sample feature information; Calculating a second loss value of the feature information extraction model according to the first sample feature information and the third sample feature information; According to the first loss value and the second loss value, the model parameters of the feature information extraction model are adjusted, and the feature information extraction model is continuously trained until a training stop condition is reached.

8. A data analysis method, comprising: Collecting a to-be-processed fault log file for a to-be-processed virtual machine, wherein the to-be-processed fault log file includes at least one to-be-processed fault data; Extracting the feature information of the fault log file to be processed and each fault data to be processed, and obtaining the feature information of the log to be processed and the feature information of each fault to be processed; According to the to-be-processed log feature information and each to-be-processed fault feature information, at least one target log feature information is queried in a preset feature information retrieval library, wherein the target log feature information is determined based on the feature similarity between the user log feature information and each preset log feature information in the preset feature information retrieval library, and the user log feature information is obtained by weighting the to-be-processed log feature information and each to-be-processed fault feature information based on preset retrieval weight information; According to each target log characteristic information, determine the target fault cause of the virtual machine to be processed in a preset knowledge graph, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file, and the determining the target fault cause of the virtual machine to be processed in the preset knowledge graph according to each target log characteristic information includes determining, in the preset knowledge graph according to each target log characteristic information, target fault characteristic information associated with each target log characteristic information, and target fault data corresponding to each target fault characteristic information, and determining the target fault cause of the virtual machine to be processed according to each target fault data, the target fault data being fault data of text content corresponding to the target fault characteristic information, and the preset knowledge graph stores each fault log file and the text content of the fault data in each fault log file, as well as each fault log file and the characteristic information of the fault data in each fault log file; Determine the failure time of the to-be-processed virtual machine, and send the failure time and the target failure cause to the user terminal.

9. A data analysis device, comprising: A collection module is configured to collect a log file of a pending fault for a pending terminal, wherein the log file of the pending fault includes at least one pending fault data; A feature extraction module is configured to extract feature information of the to-be-processed fault log file and each to-be-processed fault data, and obtain feature information of the to-be-processed log and feature information of each to-be-processed fault; A query module is configured to query at least one target log feature information in a preset feature information retrieval library according to the to-be-processed log feature information and each to-be-processed fault feature information, wherein the target log feature information is determined based on feature similarity between the user log feature information and each preset log feature information in the preset feature information retrieval library, and the user log feature information is obtained by weighting the to-be-processed log feature information and each to-be-processed fault feature information based on preset retrieval weight information; A determination module is configured to determine the target fault cause of the terminal to be processed in a preset knowledge graph according to each target log feature information, wherein the preset knowledge graph stores at least one log file and fault data associated with each log file, and the target fault cause of the terminal to be processed in the preset knowledge graph according to each target log feature information includes determining the target fault feature information associated with each target log feature information in the preset knowledge graph according to each target log feature information, and the target fault data corresponding to each target fault feature information, and determining the target fault cause of the terminal to be processed according to each target fault data, the target fault data being fault data of text content corresponding to the target fault feature information, and the preset knowledge graph stores each fault log file and the text content of the fault data in each fault log file, as well as each fault log file and the feature information of the fault data in each fault log file.

10. A computing device comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.