A log operation and maintenance root cause analysis method, device, electronic device and storage medium

By pruning, clustering and constructing a retrospective tree model of log data, and combining it with the knowledge base to generate natural language descriptions, the problems of high error rate and low accuracy of root cause analysis in the existing technology are solved, and more accurate root causes are achieved. Identification and operation and maintenance alarm processing.

CN112306820BActive Publication Date: 2024-09-03NANJING XINHUA SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011345726.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2024-09-03
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

The error rate in the root cause report obtained by the existing log operation and maintenance root cause analysis method is high, the adaptability and accuracy of the data model are low, and the root cause of the system anomaly cannot be effectively identified.

Method used

By clipping and filtering the collected log data, removing interference information, clustering and generalizing the log data, constructing a retrospective tree data model, calculating correlation entropy, using the knowledge base to generate root cause results described in natural language, and feedback early warning information to improve reporting accuracy.

Benefits of technology

It significantly improves the accuracy of root cause reports and analysis results, can discover new root cause chains, and feeds back into the knowledge base, improving the error location efficiency of operation and maintenance engineers and the timeliness of alarm processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112306820B
    Figure CN112306820B
Patent Text Reader

Abstract

The present invention discloses a log operation and maintenance root cause analysis method, device, electronic device and storage medium, belonging to the field of log operation and maintenance technology. The method cuts and filters the collected log data, removes part of the interference information, clusters the erroneous second log data, and generalizes the second log data; constructs a backtracking tree data model according to a predetermined order with the generalized second log data, traverses the data structure of the backtracking tree, calculates the correlation entropy of each link, and obtains the link with the smallest entropy value as the root cause chain entropy; then uses the knowledge base to generate a natural language description map of the root cause result; because the knowledge base itself has covered more than 90% of the known error types and error chains, the data fitting during analysis is more accurate, and the analysis results can discover new root cause chains, which feed back the root cause knowledge base, and then generates a natural language warning based on the backtracking report for data feedback, which greatly improves the accuracy of the root cause report.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of log operation and maintenance, and in particular, relates to a log operation and maintenance root cause analysis method, device, electronic equipment and storage medium. Background Art

[0002] With the widespread application of computer information, more and more business needs require the support of computer information systems, and various enterprises attach great importance to the maintenance and management of computer software and hardware resources. Among them, the analysis of abnormal operation and maintenance data has undoubtedly become an effective basis for discovering system problems and for operation and maintenance personnel to deal with problems. It can help operation and maintenance personnel to find out the reasons for abnormal system operation or prevent the occurrence of system failures to a certain extent, turning passive maintenance into active prevention, and shifting the focus of operation and maintenance personnel's work to risk analysis and fault handling, effectively avoiding risks, improving the work efficiency of operation and maintenance personnel, and improving the fault monitoring and risk warning capabilities of the operation and maintenance system.

[0003] The current root cause analysis system for logs mainly focuses on three types: a) Using clustering algorithms to aggregate and classify logs, summarize the logs, generalize and cluster the summary information through clustering algorithms, extract alarm information based on the aggregated information, and issue alarms; b) Using tree data structures to perform log association analysis, build a tree-structured log analysis chain through data modeling, use decision tree algorithms or random forest algorithms to perform root cause retrieval, and generate root cause reports; c) Rapidly retrieve massive logs, and provide a graphical interface to support users in manual analysis.

[0004] However, the above three root cause analysis methods all have the following defects: a) The information obtained is relatively general, and there is no natural language translation of the special terms involved in the development, so the root cause report contains a large proportion of unknown errors; b) The tree-shaped data model can cope with relatively few scenarios, and the accuracy of the root cause results is relatively low. In summary, in view of the shortcomings of the current root cause analysis system, it is urgent to develop a new log operation and maintenance root cause analysis method. Summary of the invention

[0005] 1. Problems to be solved

[0006] Aiming at the problem that the root cause report obtained by the root cause analysis method has a high error rate and the adaptability and accuracy of the constructed data model are relatively low in the current log operation and maintenance process, the present invention cuts and filters the collected log data to remove part of the interference information, clusters the erroneous second log data, and generalizes the second log data; constructs a backtracking tree data model according to a predetermined order with the generalized second log data, traverses the data structure of the backtracking tree, calculates the correlation entropy of each link, and obtains the link with the smallest entropy value as the root cause chain entropy; generates a natural language description map of the root cause result by means of a knowledge base, because the knowledge base itself has covered more than 90% of the known error types and error chains, the data fitting during analysis is more accurate, and the analysis results can discover new root cause chains, which feed back the root cause knowledge base, and then generates a natural language warning according to the backtracking report for data feedback, which greatly improves the accuracy of the root cause report.

[0007] 2. Technical solution

[0008] To solve the above problems, the present invention adopts the following technical solutions.

[0009] A first aspect of the present invention provides a log operation and maintenance root cause analysis method, the method comprising:

[0010] Collecting log data, trimming the log data, and filtering out first log data, where the first log data includes log error information;

[0011] Traversing the first log data, screening key data fields of the first log data, and obtaining second log data; the key data fields at least include one of the time of the first log data, error log summary, error log content, and the line number of the error code;

[0012] Clustering the second log data to generalize the second log data; constructing a backtracking tree data model from the generalized second log data in a predetermined order;

[0013] Traversing the data model of the backtracking tree, calculating the relevance entropy of each link, and obtaining the link with the smallest entropy value as the root cause chain entropy;

[0014] The knowledge base is used to generate a natural language description graph of the root cause results, and a natural language warning is generated based on the backtracking report for data feedback.

[0015] In some embodiments, the tree data structure is traversed to calculate the relevance entropy of each link, and the link with the smallest entropy value is obtained as the root cause. The calculation formula of the entropy is as follows:

[0016]

[0017] Among them, L represents the weight of each node, n represents the node depth; k represents a natural number greater than 1; i represents the link index.

[0018] In some embodiments, data fitting is performed in a root cause training library, and training results with similarities within a threshold range are used as the root cause tracing report.

[0019] In some embodiments, the similarity calculation step includes:

[0020] Generate a summary vector from the summary of the error log information of each node on the root cause chain;

[0021] Traversing the root cause training library, and calculating the vector distance between the summary vector and each vector in the training library;

[0022] Get the N training library vectors with the smallest vector distance as the similarity fitting set;

[0023] In the fitting set, nodes are split again according to the root cause chain, and the weights of the split nodes are calculated by weighted mean with the vectors in the fitting set to form a similarity quantification result.

[0024] In some embodiments, the step of generating a natural language description graph of the root cause result by using a knowledge base, and generating a natural language warning for data feedback according to the backtracking report includes:

[0025] A natural language description map of root cause results is generated by means of a knowledge base, and the error chain in the traceback report is mapped according to the natural language description map of root cause results;

[0026] Obtaining the error chain time dimension and error information of the error chain in the corresponding time dimension; organizing and translating the error information into natural language to generate warning information;

[0027] The warning information is added to the warning queue, and the objects to be received are matched according to the content of the warning.

[0028] In some embodiments, the steps of obtaining log data, trimming the log data, and filtering out the first log data include:

[0029] Obtaining log data, loading the log data into a search engine for retrieval, trimming the log data, removing interfering data, and obtaining first log data;

[0030] The interference data includes: debugging information, business data, user operation data and system terminal output content log in the log data.

[0031] In some embodiments, the clipping step includes:

[0032] First, use the query request method in the search engine to filter out logs of a predetermined level based on keywords for trimming;

[0033] In the remaining log data, the remaining log data is divided vertically according to the output log rule to form two-dimensional first log data.

[0034] A second aspect of the present invention provides a log operation and maintenance root cause analysis method and device, comprising:

[0035] A data screening module, which is used to collect log data, cut the log data, and screen out first log data, where the first log data includes log error information;

[0036] A data filtering module, which is used to traverse the first log data, filter the key data fields of the first log data, and obtain the second log data; the key data fields at least include the time of the first log data, the error log summary, the error log content, and the line number of the error code;

[0037] A data clustering module, which is used to cluster the second log data and generalize the second log data; construct a tree data model according to a predetermined order for the generalized second log data to obtain a backtracking tree;

[0038] A calculation module, which is used to traverse the backtracking tree data structure, calculate the correlation entropy of each link, and obtain the link with the smallest entropy value as the root cause chain entropy; and

[0039] The feedback module is used to generate a natural language description map of the root cause results by using the knowledge base, and generate a natural language warning based on the backtracking report for data feedback.

[0040] A third aspect of the present invention provides an electronic device, comprising a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are connected in sequence, the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the above method.

[0041] A fourth aspect of the present invention provides a readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the above method.

[0042] 3. Beneficial effects

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] (1) The present invention cuts and filters the collected log data to remove some interference information, clusters the erroneous second log data, and generalizes the second log data; constructs a backtracking tree data model with the generalized second log data in a predetermined order, traverses the data structure of the backtracking tree, calculates the correlation entropy of each link, and obtains the link with the smallest entropy value as the root cause chain entropy; generates a natural language description map of the root cause result by means of a knowledge base. Since the knowledge base itself has covered more than 90% of the known error types and error chains, the data fitting during analysis is more accurate. At the same time, the analysis results can discover new root cause chains, which feed back to the root cause knowledge base. Then, a natural language warning is generated according to the backtracking report for data feedback, which greatly improves the accuracy of the root cause report.

[0045] (2) The root cause analysis method of the present invention is added to the existing log data collection equipment, which can make the alarm of the business system more timely and accurate. Through natural language translation, the goal of alarm processing is clearer, which improves the timeliness of error feedback of operation and maintenance engineers and the efficiency of problem location of development engineers.

[0046] (3) During the log data clipping and collection process, the present invention uses a search engine to perform data retrieval, and its speed is more than 10 times the retrieval efficiency of traditional text or databases, which can make the data model generation speed faster and data clipping simpler.

[0047] (4) The tree data structure of the error log in the present invention is constructed in which the time dimension is used as a key dimension to more realistically simulate the clue chain of manual error analysis, and the root cause chain algorithm uses Fourier transform to achieve data quantification and fitting of the real weights, making the analysis results more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The above and other purposes, features and advantages of the present application will become more apparent by describing the embodiments of the present application in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps. In the accompanying drawings:

[0049] Figure 1 This is a flow chart of a log operation and maintenance root cause analysis method provided by an embodiment of the present invention;

[0050] Figure 2 This is a block diagram of a log operation and maintenance root cause analysis device provided by an embodiment of the present invention;

[0051] Figure 3 It is a verification diagram of the loading verification result of log data provided by an embodiment of the present invention;

[0052] Figure 4 is a block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] Below, the embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the embodiments described here.

[0054] Exemplary Methods

[0055] like Figure 1 and 3 As shown, a log operation and maintenance root cause analysis method includes the following steps:

[0056] S102: Collect log data, trim the log data, and filter out first log data, where the first log data includes log error information.

[0057] Specifically, log data is collected, loaded into a search engine for retrieval, the log data is trimmed, interference data is removed, and first log data is obtained; wherein the interference data includes: debugging information in the log system, business data, user operation data, system terminal output content log, and JVM output information in the error log, etc.

[0058] As a possible implementation, the cutting step includes:

[0059] In this example, the open source search engine is Elastic Search. First, the query request (query) method of the search engine is used to filter out debug and info level log documents according to keywords for cutting; in the remaining log data (document), the remaining log data is vertically divided according to the output log rules to form two-dimensional first log data. In this example, the two-dimensional first log data is similar to a table structure, with data rows in the horizontal direction and data columns in the vertical direction.

[0060] It should be noted that the above steps cut out information (interference data) that is not related to the error in the log. This method has obvious advantages in terms of storage time compared to data cleaning through a program before storage. In theory, the storage time is greatly reduced. Those skilled in the art should understand that the process of cleaning logs consumes a lot of time. This is because the storage of complete logs does not require any calculations, only data copying, and the time complexity is log(n) / n. 2 log(n) difference. Figure 3As shown in the figure, under the same configuration, the time consumed for storing 100M, 1G, 10G and 100G log data is compared. In this example, the first data trimming only retains the key information of the error log, reduces the interference of subsequent cluster analysis, and improves the analysis efficiency. It should also be noted that the log loading method in this example can also be implemented using open source tools such as ELK, but is not limited to this.

[0061] S104: traverse the first log data, filter the key data fields of the first log data, and obtain second log data; the key data fields include at least one of the time of the first log data, the error log summary, the error log content, and the line number of the error code.

[0062] Specifically, in the full-text search engine, the first log data is traversed and the second log data is filtered. In this example, the second log data is an alarm error log, and the filtered result is saved in json data format for the purpose of data trimming to support the next step of error log aggregation.

[0063] As a possible implementation method, the filter adopts existing technology and is ready-made by using the ElasticSearch toolkit. The data processing process is: traverse the first cropped data results in the search engine, sort the error information of each row, filter out the key data fields after sorting, the key fields here include the time of the error log, the code package name, the error code line, the error log summary and the error log content, and then save the data results of this cropping and filtering to ElasticSearch. The structure of the data is: [{time, code package name, error code line, error log content}], and the cropped data is saved in the memory in json format.

[0064] S106: clustering the second log data to generalize the second log data; constructing a backtracking tree data model according to a predetermined order using the generalized second log data.

[0065] Specifically, the generalized second log data is used to construct a tree data model in chronological order. In this example, the default setting is 1 day of log data. The final error is defined as the root node to generate a backtracking tree to form leaf nodes. The clustering summary is summarized and the weight factor is set. Among them, the clustering algorithm adopts the root cause analysis algorithm described in the paper "Clustering Intrusion Detection Alarms to Support Root Cause Analysis [KLAUS JULISCH, 2002]". In this algorithm: the error log is generalized, and the generalized error obtained can represent the main characteristics of the error. Therefore, we first define the dimensions of multiple error logs; for example, database driver, database script execution, database internal error, null pointer error, memory overflow error, stack overflow error and other generalized dimensions are used for classification of aggregation results.

[0066] In one possible implementation:

[0067] (a) From the operation and maintenance case library, through word segmentation and word frequency analysis, an error summary vector experience set is formed, such as: ("db connection error", dbconnection,,nullpoint,socket,timeout,30,20,50).

[0068] (b) Match the error keyword of each leaf node of the backtracking tree in the error vector experience set, calculate the number of matches, and calculate the variance based on the number as the weight factor.

[0069] It should be noted that clustering algorithms are widely used in log filtering algorithms. The purpose of clustering algorithms is to classify objects based on their similarities. Clustering algorithms are unsupervised, and they can learn to find patterns in input logs without requiring input of label data; thus, the accuracy of labeling is improved. Clustering algorithms do not require system administrators to provide a range description of whether logs are valid before use.

[0070] S108: traverse the data model of the backtracking tree, calculate the relevance entropy of each link, and obtain the link with the smallest entropy value as the root cause chain entropy.

[0071] In this example, the calculation formula is as follows:

[0072]

[0073] Among them, L represents the weight of each node, n represents the node depth; k represents a natural number greater than 1; i represents the link index.

[0074] As a variation, in order to make the calculation result more consistent with the root cause judgment result, data fitting is performed in the root cause training library, and the training result with similarity within the threshold range is used as the root cause tracing report.

[0075] Specifically, a summary vector is generated by summarizing the error log information of each node on the root cause chain;

[0076] Traversing the root cause training library, calculating the vector distance (Manhattan distance) between the summary vector and each vector in the training library;

[0077] Get the N training library vectors with the smallest vector distance as the similarity fitting set;

[0078] In the fitting set, nodes are split again according to the root cause chain, and the weights of the split nodes are calculated with the weighted mean of the vectors in the fitting set to form a similarity quantification result.

[0079] In this example, the construction of the tree data structure of the error log uses the time dimension as the key dimension to more realistically simulate the clue chain of manual error analysis, and the root cause chain algorithm uses Fourier transform to achieve data quantification and fitting of the real weights, making the analysis results more accurate.

[0080] S110: Generate a natural language description map of the root cause results using the knowledge base, and generate a natural language warning based on the backtracking report for data feedback

[0081] Specifically, the natural language description map of the root cause result generated by the knowledge base is used to map the error chain in the traceback report according to the natural language description map of the root cause result; in this example, the natural language result is as follows: database abnormality->too many user connections->concurrency is higher than the threshold->database connection configuration value is not optimal. Among them, the error chain is formed in the following way: in the result of step S108, the Cartesian product of the summary vector is performed; the collection of the summary Cartesian product forms a chain structure according to the order of the vector parameters; the chain result uses the least squares method to form a binary tree to obtain the error chain.

[0082] Obtaining the error chain time dimension and error information of the error chain in the corresponding time dimension; organizing and translating the error information into natural language to generate warning information;

[0083] The warning information is added to the warning queue, and the object to be received is matched according to the content of the warning. In this example, the object to be received is the content matching business personnel or the operation and maintenance person in charge, but it is not limited to this.

[0084] Exemplary Devices

[0085] like Figure 2As shown, a log operation and maintenance root cause analysis device includes:

[0086] A data screening module, which is used to collect log data, cut the log data, and screen out first log data, where the first log data includes log error information;

[0087] A data filtering module, which is used to traverse the first log data, filter the key data fields of the first log data, and obtain the second log data; the key data fields at least include the time of the first log data, the error log summary, the error log content, and the line number of the error code;

[0088] A data clustering module, which is used to cluster the second log data and generalize the second log data; construct a tree data model according to a predetermined order for the generalized second log data to obtain a backtracking tree;

[0089] A calculation module, which is used to traverse the backtracking tree data structure, calculate the correlation entropy of each link, and obtain the link with the smallest entropy value as the root cause chain entropy; and

[0090] The feedback module is used to generate a natural language description map of the root cause results by using the knowledge base, and generate a natural language warning based on the backtracking report for data feedback.

[0091] Exemplary Electronic Devices

[0092] Below, reference Figure 4 The electronic device according to the embodiment of the present application is described. The electronic device may be the mobile device itself, or a stand-alone device independent of the mobile device, which can communicate with the mobile device to receive the collected input signals from the mobile device and send the combined image information to the mobile device.

[0093] Figure 4 A block diagram of an electronic device according to an embodiment of the present application is illustrated.

[0094] like Figure 4 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .

[0095] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.

[0096] The memory 12 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may execute the program instructions to implement the decision-making method of each embodiment of the present application described above and / or other desired functions.

[0097] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). For example, the input device 13 may include various devices such as a camera, a video player, etc. The input device 13 may also include, for example, a keyboard, a mouse, etc. The output device 14 may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0098] Of course, to simplify, Figure 4 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.

[0099] Exemplary computer program products and computer-readable storage media

[0100] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the decision-making method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0101] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0102] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the decision-making method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0103] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0104] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0105] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0106] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0107] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0108] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A log operation and maintenance root cause analysis method, characterized in that: The method comprises: Collecting log data, trimming the log data, and filtering out first log data, where the first log data includes log error information; Traversing the first log data, screening key data fields of the first log data, and obtaining second log data; the key data fields at least include one of the time of the first log data, the error log summary, the error log content, and the line number of the error code; Clustering the second log data to generalize the second log data; constructing a backtracking tree data model from the generalized second log data in a predetermined order; Traversing the data model of the backtracking tree, calculating the correlation entropy of each link, and obtaining the link with the smallest entropy value as the root cause chain; Data fitting is performed in the root cause training library, and the training results with similarity within the threshold range are used as the root cause tracing report; the similarity calculation step includes: Generate a summary vector from the summary of the error log information of each node on the root cause chain; Traversing the root cause training library, and calculating the vector distance between the summary vector and each vector in the training library; Get the N training library vectors with the smallest vector distance as the similarity fitting set; In the fitting set, nodes are split again according to the root cause chain, and the weights of the split nodes are weighted averaged with the vectors in the fitting set to form a similarity quantification result; A natural language description graph of the root cause results is generated using the knowledge base, and a natural language warning is generated based on the root cause traceback report for data feedback.

2. The log operation and maintenance root cause analysis method according to claim 1, characterized in that: The tree data structure is traversed to calculate the correlation entropy of each link, and the link with the smallest entropy value is obtained as the root cause chain. The entropy calculation formula is as follows: Among them, L represents the weight of each node, n represents the node depth; k represents a natural number greater than 1; i represents the link index.

3. The log operation and maintenance root cause analysis method according to claim 2, characterized in that: The step of generating a natural language description graph of the root cause result by using the knowledge base, and generating a natural language warning for data feedback according to the backtracking report includes: A natural language description map of root cause results is generated by means of a knowledge base, and the error chain in the traceback report is mapped according to the natural language description map of root cause results; Obtaining the error chain time dimension and error information of the error chain in the corresponding time dimension; organizing and translating the error information into natural language to generate warning information; The warning information is added to the warning queue, and the objects to be received are matched according to the content of the warning.

4. The log operation and maintenance root cause analysis method according to claim 1, characterized in that: The steps of obtaining log data, trimming the log data, and filtering out the first log data include: Obtaining log data, loading the log data into a search engine for retrieval, trimming the log data, removing interfering data, and obtaining first log data; The interference data includes: debugging information, business data, user operation data and system terminal output content log in the log data.

5. The log operation and maintenance root cause analysis method according to claim 4 is characterized in that: The cutting step comprises: First, use the query request method in the search engine to filter out logs of a predetermined level based on keywords for trimming; In the remaining log data, the remaining log data is divided vertically according to the output log rule to form two-dimensional first log data.

6. A log operation and maintenance root cause analysis device, characterized in that: include: A data screening module, which is used to collect log data, cut the log data, and screen out first log data, where the first log data includes log error information; A data filtering module, which is used to traverse the first log data, filter the key data fields of the first log data, and obtain the second log data; the key data fields at least include the time of the first log data, the error log summary, the error log content, and the line number of the error code; A data clustering module, which is used to cluster the second log data and generalize the second log data; construct a data model of a backtracking tree according to a predetermined order using the generalized second log data; A calculation module, which is used to traverse the backtracking tree data structure, calculate the correlation entropy of each link, and obtain the link with the smallest entropy value as the root cause chain; Perform data fitting in the root cause training library, and use the training results with similarity within the threshold range as the root cause tracing report; The similarity calculation step comprises: Generate a summary vector from the summary of the error log information of each node on the root cause chain; Traversing the root cause training library, and calculating the vector distance between the summary vector and each vector in the training library; Get the N training library vectors with the smallest vector distance as the similarity fitting set; In the fitting set, nodes are split again according to the root cause chain, and the weights of the split nodes are weighted averaged with the vectors in the fitting set to form a similarity quantification result; The feedback module is used to generate a natural language description map of the root cause results by using the knowledge base, and generate a natural language warning based on the backtracking report for data feedback.

7. An electronic device, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are connected in sequence, the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 5.

8. A readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 5.