Event graph construction method and device

By acquiring log data on a computing device, extracting multiple event elements and constructing an event graph, the problem of difficulty in mining correlations caused by a single event extraction type in the existing technology is solved, and more efficient fault diagnosis is achieved.

CN118820481APending Publication Date: 2024-10-22HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310457185.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing deep learning models have a single type when extracting events from log data, causing the relationship classifier to be unable to effectively mine potential correlations between events, and the accuracy of fault propagation graphs is poor.

Method used

Obtain log data through computing devices, extract multiple different types of event elements, generate argument role sets, and build event graphs based on these sets to reflect various relationships between event elements, using a combination of logical rules and deep learning models. The method extracts event elements and processes the actor role set in segments and hierarchies to build an event graph.

Benefits of technology

It improves the accuracy and richness of event graphs, enables deeper exploration of event element correlations, and improves the efficiency and accuracy of fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820481A_ABST
    Figure CN118820481A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a construction method of an event atlas, which is used for improving the accuracy of the event atlas. The method comprises the steps that the computing device obtains log data, wherein the log data comprises log data generated in the operation process of the computing device; event element extraction is carried out on the log data, an argument role set is generated, and the argument role set comprises one or more of the following event elements: an event number, an event type, a trigger word, occurrence time, a file name, a fault category and detailed description. And constructing an event atlas based on the argument role set, wherein the event atlas is used for indicating an association relationship between different events.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular to a method and device for constructing an event graph. Background Art

[0002] In recent years, cloud computing technology has provided a broad space for the development of intelligent operation and maintenance of data centers. Intelligent operation and maintenance is to replace manual operation and maintenance of data centers with big data and artificial intelligence. Due to the complexity of data center systems and the huge amount of log data, developers need to spend a lot of time to study, discover and debug to find the root cause of the problem after the system fails. Therefore, intelligent operation and maintenance needs to use big data and artificial intelligence to help developers complete fault diagnosis as quickly, efficiently and accurately as possible.

[0003] In the current application scenarios of intelligent operation and maintenance, computing devices use deep learning models to extract abnormal events from log data and train relational classifiers based on the characteristics of abnormal events. Computing devices use relational classifiers to mine the causal and sequential relationships between abnormal events and build fault propagation graphs based on the causal and sequential relationships between abnormal events.

[0004] When current deep learning models extract events from log data, the extracted event types are relatively simple. For example, computing devices only classify the extracted events as normal events or abnormal events, making it impossible for the trained relationship classifier to further explore the potential correlation between events, resulting in poor accuracy of the fault propagation graph. Summary of the invention

[0005] The embodiments of the present application provide a method and device for generating an event graph, which are used to improve the accuracy of the event graph.

[0006] The first aspect of the embodiment of the present application provides a method for constructing an event graph. The method can be executed by a computing device, or by a component of the computing device, such as a processor, chip or chip system of the computing device, or by a logic module or software that can realize all or part of the functions of the computing device. The method provided in the first aspect of the embodiment of the present application includes: the computing device obtains log data, and the log data includes log data generated during the operation of the computing device; event elements are extracted from the log data, and an argument role set is generated, and the argument role set includes one or more of the following event elements: event number, event type, trigger word, occurrence time, file name, fault category and detailed description. An event graph is constructed based on the argument role set, and the event graph is used to indicate the association relationship between different events.

[0007] In the embodiment of the present application, the computing device can extract various event elements of different types based on the log data, and generate an argument role set according to the structured information. The computing device further constructs an event graph based on the argument role set, thereby enabling the event graph to reflect the association relationship between various event elements. Compared with the current event graph, the event graph in the embodiment of the present application can dig out deeper event element association relationships based on rich event element information, thereby improving the accuracy and richness of the event graph.

[0008] In one possible implementation, in the process of constructing an event graph based on argument role sets, the computing device segments the argument role sets based on the number of argument role sets and the time interval between the occurrence of the argument role sets to obtain one or more event segments. The computing device stratifies the argument role sets in the event segmentation according to the occurrence time to obtain one or more event layers, and the occurrence time of the argument role sets in the same event layer is the same. The computing device constructs an event graph based on the event correlation score between the argument role sets in different layers, and the event correlation score is used to indicate the degree of correlation between the argument role sets in different layers.

[0009] In the embodiment of the present application, the computing device can segment the argument role set, thereby avoiding the search space of the event graph being too large and improving the efficiency of constructing the event graph.

[0010] In one possible implementation, in a process where the computing device segments the argument role sets based on the number of argument role sets and the time interval between the occurrences of the argument role sets, when the time interval between the occurrences is greater than a first threshold, the argument role sets are segmented according to the intervals. When the number of argument role sets is greater than a second threshold, the argument role sets are segmented based on the second threshold.

[0011] In the embodiment of the present application, the computing device can segment the argument role set based on the time interval of occurrence of the argument role set, thereby reducing the search space of the event graph while not cutting off the propagation chain as much as possible, thereby improving the efficiency of constructing the event graph.

[0012] In a possible implementation, in the process of constructing an event graph according to the event correlation scores between argument role sets at different levels, the computing device calculates the event correlation scores between argument role sets at different levels according to the number of occurrences of argument role sets at different levels. The computing device determines an event whose event correlation score exceeds a third threshold as a correlated argument role set in the event graph.

[0013] The computing device of the embodiment of the present application can mine the potential correlation between argument role sets of different layers according to the number of occurrences of argument role sets of different layers, calculate the event correlation score, and filter the argument role sets based on the event correlation score, thereby improving the accuracy of the event spectrum.

[0014] In one possible implementation, a computing device constructs an event graph based on event correlation scores between argument role sets of different layers, wherein the event correlation scores include the probability that a second argument role set appears after a first argument role set, and the occurrence time of the first argument role set is earlier than the occurrence time of the second argument role set.

[0015] In the embodiment of the present application, the computing device calculates the event correlation score to indicate the probability of the second argument role set appearing after the first argument role set, and filters the argument role sets in the fall event graph based on the probability, thereby improving the accuracy of the event graph.

[0016] In a possible implementation, during the process of event extraction from log data, the computing device extracts event elements from the log data based on logic rules to obtain the file name and fault category of the event. Other event elements are extracted from the log data based on logic rules, such as event type, trigger word, occurrence time, and detailed description.

[0017] In the embodiment of the present application, the computing device can extract event elements from the log data based on logical rules, and extract event elements from the logical rules formed by using expert experience knowledge, thereby improving the accuracy of the extraction of event elements.

[0018] In one possible implementation, during the process of event extraction from log data by the computing device, the computing device extracts event elements from the log data based on the deep learning model to obtain the event type, trigger word, and occurrence time of the event. The computing device may also extract other event elements from the log data based on the deep learning model, such as event number, file name, fault category, and detailed description.

[0019] In the embodiment of the present application, the computing device can extract event elements based on the trained deep learning model, thereby improving the accuracy of event element extraction.

[0020] In one possible implementation, the computing device combines the event elements extracted based on the logic rules and the event elements extracted based on the deep learning model to obtain an argument role set. The argument role set includes one or more of the following event elements: event number, event type, trigger word, occurrence time, file name, fault category, and detailed description.

[0021] In the embodiment of the present application, the computing device can combine the event elements extracted by the two methods to obtain an argument role set, thereby improving the number and accuracy of the event elements in the argument role set.

[0022] The second aspect of the embodiment of the present application provides a device for constructing an event graph, which includes an acquisition unit and a processing unit. The acquisition unit is used to acquire log data, and the log data includes log data generated during the operation of the computing device. The processing unit is used to extract event elements from the log data and generate an argument role set, and the argument role set includes one or more of the following event elements: event number, event type, trigger word, occurrence time, file name, fault category and detailed description. The processing unit is also used to construct an event graph based on the argument role set, and the event graph is used to indicate the correlation between different events.

[0023] In a possible implementation, the processing unit is specifically used to segment the argument role sets based on the number of argument role sets and the time intervals between the occurrence of the argument role sets to obtain one or more event segments. The argument role sets in the event segment are layered according to the occurrence time to obtain one or more event layers, and the occurrence time of the argument role sets in the same event layer is the same. An event map is constructed based on the event correlation scores between the argument role sets in different layers, and the event correlation scores are used to indicate the degree of correlation between the argument role sets in different layers.

[0024] In a possible implementation, the processing unit is specifically configured to segment the argument role sets according to the intervals when the time interval is greater than a first threshold, and segment the argument role sets based on the second threshold when the number of argument role sets is greater than a second threshold.

[0025] In a possible implementation, the processing unit is specifically configured to calculate event correlation scores between argument role sets at different levels according to the number of occurrences of argument role sets at different levels, and determine events whose event correlation scores exceed a third threshold as correlated argument role sets in the event graph.

[0026] In a possible implementation manner, the processing unit is specifically configured to extract event elements from the log data based on logic rules to obtain a file name and a fault category of the event.

[0027] In a possible implementation, the processing unit is specifically used to extract event elements from log data based on a deep learning model to obtain an event type, trigger word, and occurrence time of the event.

[0028] A third aspect of an embodiment of the present application provides a computing device, including a processor, the processor is coupled to a memory, the processor is used to store instructions, when the instructions are executed by the processor, the computing device executes the method described in the first aspect or any possible implementation of the first aspect.

[0029] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed, the computer executes the method described in the first aspect or any possible implementation of the first aspect.

[0030] A fifth aspect of an embodiment of the present application provides a computer program product, which includes instructions, and is characterized in that when the instructions are executed, the computer implements the method described in the first aspect or any possible implementation method of the first aspect.

[0031] It can be understood that the beneficial effects that can be achieved by any of the event graph construction devices, computing devices, computer-readable media or computer program products provided above can refer to the beneficial effects in the corresponding computing system and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of a system architecture for constructing an event graph provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of a method for constructing an event graph provided in an embodiment of the present application;

[0034] Figure 3 A schematic diagram of an example of an argument role set provided in an embodiment of the present application;

[0035] Figure 4 A schematic diagram of another method for constructing an event graph provided in an embodiment of the present application;

[0036] Figure 5 A schematic diagram of another method for constructing an event graph provided in an embodiment of the present application;

[0037] Figure 6 A schematic diagram of another method for constructing an event graph provided in an embodiment of the present application;

[0038] Figure 7 A schematic diagram of another method for constructing an event graph provided in an embodiment of the present application;

[0039] Figure 8 A schematic diagram of another event map provided in an embodiment of the present application;

[0040] Fig. 9A schematic diagram of the structure of another device for constructing an event graph provided in an embodiment of the present application;

[0041] Fig.10 A schematic diagram of the structure of another computing device provided in an embodiment of the present application;

[0042] Fig.11 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application;

[0043] Fig.12 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The embodiments of the present application provide a method and device for constructing an event graph, which are used to improve the accuracy of the event graph.

[0045] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0046] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0047] First, some terms involved in the embodiments of the present application are introduced to facilitate those skilled in the art to understand the technical solution.

[0048] Event type refers to a class of events with the same characteristics, for example, insufficient memory event, hard disk unresponsive event, etc.

[0049] Event triggers are core words that indicate the occurrence of an event, usually verbs or nouns. For example, "out of memory" is the trigger word for the insufficient memory space event.

[0050] Event arguments, also called event elements, refer to the elements contained in an event, for example, the time when the event occurred.

[0051] The following describes the method and device for constructing an event graph provided in an embodiment of the present application in conjunction with the accompanying drawings.

[0052] See also Figure 1 , Figure 1 A schematic diagram of the system architecture used in a method for constructing an event graph provided in an embodiment of the present application. Figure 1 In the example shown, the event graph construction system 100 includes a knowledge base module 101, an event extraction module 102, and an event graph construction module 103. Among them, the event extraction module 102 includes a logic rule extraction submodule 1021 and a deep learning extraction submodule 1022. The specific functions of each module in the event graph construction system 100 in the embodiment of the present application are described below.

[0053] The knowledge base module 101 is used to provide the experience knowledge required for event extraction for the event extraction module 102. The computing device can form a knowledge base based on the operation and maintenance log data. Specifically, the computing device uses a clustering algorithm to perform statistical analysis on the operation and maintenance log data, and combines the experience knowledge of the operation and maintenance experts to obtain the knowledge base. The knowledge base module 101 can define the event elements in the argument role set.

[0054] The event extraction module 102 extracts event elements from the log data and generates an argument role set based on the extracted event elements. The event extraction module 102 includes a logic rule extraction submodule 1021 and a deep learning extraction submodule 1022, wherein the logic rule extraction submodule 1021 can extract event elements according to logic rules, which are logic rules formed based on expert experience knowledge. The deep learning extraction submodule 1022 extracts event elements based on a trained deep learning model, which is an event element extraction model trained based on log data and event element samples.

[0055] The event graph construction module 103 is used to generate an event graph according to the event elements extracted by the event extraction module 102. Specifically, the event graph construction module 103 can segment the events according to the time of occurrence and the number of events, and stratify the events in each segment according to the time of occurrence. The event graph construction module 103 mines the correlation between events at different layers, thereby generating an event graph.

[0056] See also Figure 2 , Figure 2 A schematic diagram of a method for constructing an event graph provided in an embodiment of the present application. Figure 2In the example shown, the method for constructing an event graph provided in the embodiment of the present application includes the following steps:

[0057] 201. The computing device obtains log data, where the log data includes log data generated during the operation of the computing device.

[0058] The computing device obtains log data, which includes unstructured data generated during the operation of the computing device. After the computing device obtains the log data, it can generate a knowledge base based on the log data and the experience knowledge provided by the operation and maintenance experts. The knowledge base can be used to define event elements in the log data and indicate the association relationship between different log data.

[0059] In one possible implementation, the computing device is able to design the structure of an argument role set based on a knowledge base, including an event element contained in the argument role set, wherein the event element includes one or more contents: event number, event type, trigger word, occurrence time, file name, fault category, and detailed description.

[0060] 202. The computing device extracts event elements from the log data and generates an argument role set.

[0061] The computing device extracts event elements from the log data to obtain event elements, and generates an argument role set by structured description of the event elements. The argument role set includes one or more of the following event elements: event number, event type, trigger word, occurrence time, file name, fault category, and detailed description. Among them, the trigger word is a word or phrase that can characterize the event type. The computing device uses the word in the log description that has the greatest similarity to the event type as the trigger word.

[0062] See also Figure 3 , Figure 3 A schematic diagram of an example of an argument role set provided in an embodiment of the present application. Figure 3 In the example shown, an instance of the argument role set includes multiple event elements, where the first line "ID" is the event number, the second line "text" is the event detailed description text, the third line "event type" is the event type, the fourth line "trigger" is the trigger word of the event type, the fifth line "raised time" is the event occurrence time, the sixth line "file name" is the file name, and the seventh line "category" is the fault category.

[0063] In a possible implementation, the computing device extracts events from the log data based on logic rules to obtain event elements, such as event number, event type, trigger word, occurrence time, file name, fault category, and detailed description. The logic rules can be formed based on expert experience knowledge. For example, the computing device extracts the event type of disk space being lower than a threshold from the log data based on the logic rules formed based on expert experience knowledge.

[0064] See also Figure 4 , Figure 4 A schematic diagram of event element extraction provided in an embodiment of the present application. Figure 4 In the example shown, the computing device extracts event elements from unstructured log data based on logical rules, and obtains file names and fault categories. For example, the file name is eo_sel.csv, and the fault category is out_of_memory.

[0065] In a possible implementation, the computing device extracts events from the log data based on the deep learning model to obtain event elements, such as event number, event type, trigger word, occurrence time, file name, fault category, and detailed description. The deep learning model is a deep learning model trained based on log data and expert experience knowledge. Specifically, the computing device obtains sample pairs of log data and event elements based on expert experience knowledge, and obtains the deep learning model based on the sample pairs.

[0066] The deep learning model in the embodiment of the present application includes a trigger word extractor and an argument role extractor. The trigger word extractor is used to extract trigger words based on log data. The argument role extractor extracts event elements from the log data based on the trigger words. The event elements include one or more of the following: event number, event type, trigger word, occurrence time, file name, fault category and detailed description.

[0067] Please refer to Table 1, which is a schematic diagram of an argument role set extracted by a computing device provided in an embodiment of the present application. In the first example shown in Table 1, the computing device extracts log data based on a trigger word extractor to obtain the trigger word "was restarted". The computing device determines the event type "System Restarted" by performing similarity matching on the trigger word "was restarted" based on argument role extraction. The computing device can also extract other event elements of the argument role set based on the argument extractor, for example, the event number is "1", the occurrence time is "2021-08-07 19:05:29", the file name is "xxxx.csv", the fault category is "Out_Of_Memory", and the detailed description is "The host was restarted due to unrecognized reason".

[0068] In the second example shown in Table 1, the computing device extracts the log data based on the trigger word extractor and obtains the trigger word "exceeded". The computing device performs similarity matching on the trigger word "exceeded" based on the argument role extraction to determine the event type "MemCE". The computing device can also extract other event elements of the argument role set based on the argument extractor, for example, the event number is "1", the occurrence time is "2020-01-16 13:17:39", the file name is "xxx_log", the fault category is "Out_Of_Memory", and the detailed description is "correctable error rate exceeded threshold byPFAE".

[0069] Table 1

[0070]

[0071] Please continue reading Figure 4 ,exist Figure 4 In the example shown, the computing device extracts event elements from unstructured log data based on a deep learning model, and obtains the event type, trigger word, and occurrence time. For example, the event type is system restarted, the trigger word is was restarted, and the occurrence time is 2021-08-18 09:46:23.

[0072] exist Figure 4In the example shown, the computing device extracts the file name and fault category based on the logical rules, extracts the event type and occurrence time based on the deep learning model, and then obtains the argument role set based on the extracted event element combination, which includes the event type, trigger word, occurrence time, file name, and fault category. For example, the argument role set includes the event type system restarted, the trigger word was restarted, the occurrence time 2021-08-18 09:46:23, the file name eo_sel.csv, and the fault category out_of_memory.

[0073] 203. The computing device constructs an event graph based on the argument role set.

[0074] The computing device constructs an event graph based on the argument role sets, and the event graph is used to indicate the association relationship between different events. Specifically, the computing device segments the argument role sets based on the number of argument role sets and the time interval between the occurrence of the argument role sets, and layers the argument role sets in each segment according to the occurrence time, wherein the occurrence events of the argument role sets in the same layer are the same.

[0075] After the computing device stratifies the argument role sets, it calculates the event correlation scores between the argument role sets of different layers, and constructs an event graph based on the event correlation scores of the argument role sets of different layers, wherein the event correlation scores are used to indicate the degree of correlation between the argument role sets of different layers.

[0076] In a possible implementation, the event correlation score includes the probability that the second argument role set appears after the first argument role set, and the occurrence time of the first argument role set is earlier than the occurrence time of the second argument role set.

[0077] In one possible implementation, in a process where the computing device segments the argument role sets based on the number of argument role sets and the time interval between the occurrences of the argument role sets, when the time interval between the occurrences is greater than a first threshold, the argument role sets are segmented according to the intervals. When the number of argument role sets is greater than a second threshold, the argument role sets are segmented based on the second threshold.

[0078] See also Figure 5 , Figure 5 A schematic diagram of a computing device performing event segmentation according to an embodiment of the present application. Figure 5In the example shown, the computing device is able to extract multiple argument role sets based on log data. Since using all argument role sets extracted from the log data to construct an event propagation graph will result in a search space that is too large and reduce search efficiency, the computing device segments the multiple argument role sets so that the propagation chain is not cut off as much as possible to ensure the quality of the event propagation graph, while preventing the excessive number of argument role sets in a certain segment from affecting the search efficiency.

[0079] exist Figure 5 In the example shown, the event segmentation strategy includes segmentation by time interval and segmentation by number of events. If the time interval between two argument role sets exceeds the set time, for example, the time interval between two argument role sets is greater than 10 minutes, segmentation is performed based on the time interval. At the same time, if the number of argument role sets in a certain event segment exceeds the set number, for example, if the number of argument role sets in a certain event segment is greater than 100, segmentation is performed based on the number.

[0080] It is understandable that the time intervals between the argument role sets in the event propagation chain are often short. Therefore, the strategy of segmenting by time interval ensures that the segmentation reduces the search space while trying not to cut off the propagation chain. The strategy of segmenting by quantity prevents the strategy of segmenting by time interval from causing insufficient segmentation, resulting in too many nodes in the graph, and the search space is still too large, affecting the search efficiency.

[0081] exist Figure 5 In the example (a) shown, among argument role sets 1 to 8, the time interval between argument role sets 7 and 8 is greater than 10 minutes. Therefore, the computing device segments the event between argument role sets 7 and 8, with argument role sets 1 to 7 being the first event segment and argument role set 8 being followed by the second event segment.

[0082] exist Figure 5 In the example (b) shown in the figure, among the argument role sets 1 to 101, there are no argument role sets whose occurrence time intervals between the argument role sets are greater than 10 minutes. Therefore, the computing device segments the arguments according to the number of argument role sets. The computing device segments the events between the argument role sets 100 and 101. The argument role sets 1 to 100 are the first event segment, and the segment after the argument role set 101 is the second event segment.

[0083] In the embodiment of the present application, the computing device can segment the argument role sets based on the time intervals of their occurrence and the number of argument role sets, thereby reducing the search space of the event graph while minimizing the need to cut off the propagation chain, thereby improving the efficiency of constructing the event graph.

[0084] See also Figure 6 , Figure 6 A schematic diagram of event layering for a computing device provided in an embodiment of the present application. Figure 6 In the example shown, the computing device stratifies the argument role sets in the event segment according to the occurrence time, and the computing device stratifies the argument role sets with the same occurrence time into the same layer.

[0085] exist Figure 6 In the example shown, the computing device performs event stratification on argument role sets 1 to 7 in the first event segment. Among them, argument role sets 1 and 2 have the same occurrence time, argument role sets 3, 4, and 5 have the same occurrence time, and argument role sets 6 and 7 have the same occurrence time. The computing device divides argument role sets 1 and 2 into the first event layer, divides argument role sets 3, 4, and 5 into the second event layer, and divides argument role sets 6 and 7 into the third event layer.

[0086] In one possible implementation, in the process of constructing an event graph based on event correlation scores between argument role sets of different layers, the computing device calculates the event correlation scores between argument role sets of different layers based on the number of occurrences of argument role sets of different layers, and the computing device determines events whose event correlation scores exceed a third threshold as correlated argument role sets in the event graph.

[0087] Specifically, the computing device counts the number of occurrences of argument role sets at different levels, and calculates the probability that the argument role set at the lower level appears after the argument role set at the upper level, and this probability is the event correlation score. The computing device determines the argument role set whose probability is greater than or equal to the third threshold as the associated argument role set. Optionally, the computing device can also determine the argument role set with the highest event correlation score as the associated argument role set in the event graph.

[0088] In the embodiment of the present application, the computing device divides the argument role set into segments and layers, and then calculates the event correlation score for each layer of the argument role set, thereby constructing an event propagation graph. The event correlation score satisfies the following formula:

[0089]

[0090] Among them, count(N set ,n0) represents the set of argument roles N in different event segments set The number of times the argument role set n0 appears afterwards, count(N set ) represents the argument role set N set The number of times it appears in different event segments.

[0091] See also Figure 7 , Figure 7 A schematic diagram of calculating event correlation scores provided in an embodiment of the present application. Figure 7 In the example shown, the computing device segments the argument role sets to obtain 10 event segments, and the computing device stratifies the argument role sets in each event segment. Taking the first event segment as an example, the computing device divides the argument role sets in the event segment into three layers, wherein the first layer includes argument role sets 1 and 2, the second layer includes argument role sets 3, 4, and 5, and the third layer includes argument role sets 6 and 7.

[0092] exist Figure 7 In the example shown, the computing device constructs the event graph starting from the first layer. The computing device calculates the event association score between the argument role set of the second layer and the argument role set of the first layer. Taking the argument role set 3 of the second layer as an example, the computing device counts the number of times that the argument role set 3 appears after the argument role set 1 in 10 event segments, which is 9 times, the number of times that the argument role set 3 appears after the argument role set 2, which is 5 times, and the number of times that the argument role set 3 appears after the argument role set 1 and the argument role combination 2, which is 5 times.

[0093] exist Figure 7 In the example shown, the computing device calculates the event association score based on the statistical number of times, the number of times argument role set 3 appears after argument role set 1 accounts for 0.9 of the number of times argument role set 1 appears, that is, the event association score of argument role set 3 with argument role set 1 is 0.9, the number of times argument role set 3 appears after argument role set 2 accounts for 1 of the number of times argument role set 2 appears, that is, the event association score between argument role set 3 and argument role set 2 is 1, the number of times argument role set 3 appears after argument role sets 1 and 2 accounts for 1 of the number of times argument role sets 1 and 2 appear, and the event association score of argument role set 3 with argument role sets 1 and 2 is 1.

[0094] exist Figure 7 In the example shown, during the process of constructing an event graph based on the event correlation score, the computing device determines the associated argument role sets whose event correlation score exceeds 0.5, including argument role set 3 and argument role set 1 whose event correlation score is 0.9, argument role set 3 and argument role set 2 whose event correlation score is 1, and argument role set 3 and argument role sets 1 and 2 whose event correlation score is 1. The computing device further determines the associated argument role set with the highest event correlation score. When there are multiple associated argument role sets with the same highest event correlation score, the computing device selects the associated argument role set with the most argument role sets to construct the event graph. For example, Figure 7 In the example shown, the computing device adds the association relationship between argument role set 3 and argument role sets 1 and 2 to the event graph.

[0095] An example of an algorithm for constructing an event graph by a computing device in an embodiment of the present application is as follows:

[0096] The events are sorted by the Raised Time field and then divided into Q1, Q2, ..., Qn, where the Raised Time field of the events in Qi = {ei1, ei2, ..., eim} is the same;

[0097] Initialize i=0, maximum event correlation number M, minimum score threshold θ, fault propagation graph FPG;

[0098] while i≠n;

[0099] if i == 0: FPG←Qi+1;

[0100] else:

[0101] leaf_nodes = {e1, e, 2..., el}; / / Get all leaf nodes in FPG and initialize scores.

[0102] combinations = combination (leaf_nodes, M); / / Get the combinations of leaf nodes whose number does not exceed M.

[0103] for q in Qi+1:

[0104] scores.append(score(combinations,q)); / / Calculate the score of the candidate graph when this node is connected to the nodes in all combinations.

[0105] best_score = best(scores); / / Get the candidate graph with the highest score and its score best_graph.

[0106] if best_score ≥ θ;

[0107] FPG←best_graph;

[0108] i+=1.

[0109] The computing device of the embodiment of the present application can calculate the event correlation scores between argument role sets according to the number of occurrences of argument role sets in different layers, and filter the argument role sets for constructing the event graph based on the event correlation scores, thereby improving the accuracy of the event spectrum.

[0110] See also Figure 8 , Figure 8 A schematic diagram of an event map provided in this embodiment. Figure 8In the example shown, the computing device searches for possible candidate graphs based on the existing partial graph and the argument role set to be added, calculates the event relevance score of each candidate graph, and selects the candidate graphs with event relevance scores greater than or equal to the threshold for construction. Figure 8 In the event graph shown, the computing device selects argument role sets 1 and 2 to connect argument role set 3 to add to the event graph.

[0111] It is understandable that the event propagation graph of the same fault will contain multiple subgraphs, which contain information such as different propagation modes of the fault. Figure 8 In the event graph shown, argument role sets 1 and 2 are connected to argument role set 3, argument role set 3 is connected to argument role set 6, argument role set 6 is connected to argument role sets 10, 11 and 12, and argument role combination 11 is connected to argument role set 15.

[0112] In one possible implementation, the computing device may mark in the event graph the argument role set corresponding to the main root cause and the argument role set corresponding to the secondary root cause in the event propagation. Figure 8 In the event graph shown, the main root cause is argument role set 14, and the secondary root causes are argument role set 1 and argument role 2.

[0113] It can be seen from the above embodiments that the computing device in the embodiment of the present application can extract a variety of different types of event elements based on log data, and generate an argument role set according to structured information. The computing device further constructs an event graph based on the argument role set, thereby enabling the event graph to reflect the association relationship between multiple event elements. In the embodiment of the present application, the event graph can dig out deeper event element associations based on rich event element information, thereby improving the accuracy and richness of the event graph.

[0114] The above introduces the method for constructing the event graph provided in the embodiment of the present application. The following introduces the device for constructing the event graph provided in the embodiment of the present application.

[0115] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of an event graph construction device provided in an embodiment of the present application. Fig. 9 In the example shown, the event graph construction device is used to implement the various steps performed by the computing device in the above embodiments. The event graph construction device 900 includes an acquisition unit 901 and a processing unit 902.

[0116] The acquisition unit 901 is used to acquire log data, which includes log data generated during the operation of the computing device. The processing unit 902 is used to extract event elements from the log data and generate an argument role set, which includes one or more of the following event elements: event number, event type, trigger word, occurrence time, file name, fault category, and detailed description. The processing unit 902 is also used to construct an event map based on the argument role set, and the event map is used to indicate the association relationship between different events.

[0117] In a possible implementation, the processing unit 902 is specifically used to segment the argument role sets based on the number of argument role sets and the time intervals of occurrence of the argument role sets to obtain one or more event segments. The argument role sets in the event segment are layered according to the occurrence time to obtain one or more event layers, and the occurrence time of the argument role sets in the same event layer is the same. An event map is constructed based on the event correlation scores between the argument role sets in different layers, and the event correlation scores are used to indicate the degree of correlation between the argument role sets in different layers.

[0118] In a possible implementation, the processing unit 902 is specifically configured to segment the argument role sets according to the intervals when the time interval is greater than a first threshold, and segment the argument role sets based on the second threshold when the number of argument role sets is greater than a second threshold.

[0119] In a possible implementation, the processing unit 902 is specifically configured to calculate event correlation scores between argument role sets at different levels according to the number of occurrences of argument role sets at different levels, and determine events whose event correlation scores exceed a third threshold as correlated argument role sets in the event graph.

[0120] In a possible implementation, the processing unit 902 is specifically configured to extract event elements from the log data based on logic rules to obtain the file name and fault category of the event.

[0121] In a possible implementation, the processing unit 902 is specifically configured to extract event elements from the log data based on a deep learning model to obtain an event type, a trigger word, and an occurrence time of the event.

[0122] It should be understood that the division of the units in the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And the units in the device can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some units can also be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware. For example, each unit can be a separately established processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, and called and executed by a certain processing element of the device. The function of the unit. In addition, all or part of these units can be integrated together, or they can be implemented independently. The processing element described here can also be a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each unit above can be implemented by an integrated logic circuit of hardware in the processor element or in the form of software calling through a processing element.

[0123] It is worth noting that, for the above 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 know that the present invention is not limited to the described order of actions. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required for the present invention.

[0124] Other reasonable step combinations that can be thought of by those skilled in the art based on the above description also fall within the scope of protection of the present invention. Secondly, those skilled in the art should also be familiar with the fact that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.

[0125] See also Fig.10 , Fig.10 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. Fig.10 As shown, the computing device 1000 includes: a processor 1001, a memory 1002, a communication interface 1003 and a bus 1004. The processor 1001, the memory 1002 and the communication interface 1003 are coupled via a bus (not marked in the figure). The memory 1002 stores instructions. When the execution instructions in the memory 1002 are executed, the computing device 1000 executes the method executed by the computing device in the above method embodiment.

[0126] The computing device 1000 may be one or more integrated circuits configured to implement the above method, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuit forms. For another example, when a unit in the device can be implemented in the form of a processing element scheduler, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0127] The processor 1001 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor.

[0128] The memory 1002 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0129] The memory 1002 stores executable program codes, and the processor 1001 executes the executable program codes to respectively implement the functions of the aforementioned acquisition unit and processing unit, thereby implementing the aforementioned event graph construction method. That is, the memory 1002 stores instructions for executing the aforementioned event graph construction method.

[0130] The communication interface 1003 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1000 and other devices or a communication network.

[0131] In addition to the data bus, the bus 1004 may also include a power bus, a control bus, a status signal bus, etc. The bus may be a peripheral component interconnect express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc. The bus may be divided into an address bus, a data bus, a control bus, etc.

[0132] See also Fig.11 , Fig.11 A schematic diagram of a computing device cluster provided in an embodiment of the present application. Fig.11 As shown, the computing device cluster 1100 includes at least one computing device 1000 .

[0133] like Fig.11 As shown, the computing device cluster 1100 includes at least one computing device 1000. The memory 1002 in one or more computing devices 1000 in the computing device cluster 1100 may store the same instructions for executing the above-mentioned event graph construction method.

[0134] In some possible implementations, the memory 1002 of one or more computing devices 1000 in the computing device cluster 1100 may also respectively store some instructions for executing the method for constructing the event graph. In other words, the combination of one or more computing devices 1000 may jointly execute the instructions for executing the method for constructing the event graph.

[0135] It should be noted that the memory 1002 in different computing devices 1000 in the computing device cluster 1100 can store different instructions, which are respectively used to execute part of the functions of the above-mentioned event graph construction device. That is, the instructions stored in the memory 1002 in different computing devices 1000 can implement the functions of one or more modules.

[0136] In some possible implementations, one or more computing devices 1000 in the computing device cluster 1100 may be connected via a network, which may be a wide area network or a local area network.

[0137] See also Fig.12 , Fig.12A schematic diagram of computer devices in a computer cluster connected via a network provided in an embodiment of the present application. Fig.12 As shown, two computing devices 1000A and 1000B are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device.

[0138] In a possible implementation, the memory in the computing device 1000A stores instructions for executing the functions of the acquisition unit, and the memory in the computing device 1000B stores instructions for executing the functions of the processing unit.

[0139] It should be understood that Fig.12 The functions of the computing device 1000A shown in FIG. 1000A may also be completed by multiple computing devices. Similarly, the functions of the computing device 1000B may also be completed by multiple computing devices.

[0140] In another embodiment of the present application, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the processor of the device executes the computer-executable instructions, the device executes the method executed by the computing device in the above method embodiment.

[0141] In another embodiment of the present application, a computer program product is provided, the computer program product includes computer execution instructions, the computer execution instructions are stored in a computer readable storage medium. When the processor of the device executes the computer execution instructions, the device executes the method executed by the computing device in the above method embodiment.

[0142] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0143] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0145] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A method for constructing an event graph, characterized in that: include: Obtaining log data, wherein the log data includes log data generated during operation of the computing device; Extracting event elements from the log data and generating an argument role set, wherein the argument role set includes one or more of the following event elements: event number, event type, trigger word, occurrence time, file name, fault category, and detailed description; An event graph is constructed based on the argument role set, and the event graph is used to indicate the association relationship between different events.

2. The method according to claim 1, characterized in that The constructing of an event graph based on the argument role set includes: Segmenting the argument role sets based on the number of argument role sets and the time intervals between occurrences of the argument role sets to obtain one or more event segments; Layering the argument role sets in the event segmentation according to the occurrence time to obtain one or more event layers, wherein the occurrence time of the argument role sets in the same event layer is the same; The event graph is constructed according to the event correlation scores between the argument role sets at different layers, and the event correlation scores are used to indicate the correlation degree between the argument role sets at different layers.

3. The method according to claim 2, characterized in that The segmenting of the argument role sets based on the number of argument role sets and the time intervals between occurrences of the argument role sets comprises: When the occurrence time interval is greater than a first threshold, segmenting the argument role set according to the interval; When the number of the argument role sets is greater than a second threshold, the argument role sets are segmented based on the second threshold.

4. The method according to claim 2 or 3, characterized in that: The constructing of the event graph according to the event association points between the argument role sets at different levels includes: Calculating event correlation scores between the argument role sets at different levels according to the occurrence counts of the argument role sets at different levels; Events whose event correlation scores exceed a third threshold are determined as a set of correlation argument roles in the event graph.

5. The method according to any one of claims 1 to 4, characterized in that The event extraction of the log data comprises: Event elements are extracted from the log data based on logical rules to obtain the file name and fault category of the event.

6. The method according to any one of claims 1 to 4, characterized in that The event extraction of the log data comprises: The event elements are extracted from the log data based on a deep learning model to obtain the event type, trigger word and occurrence time of the event.

7. A device for constructing an event graph, characterized in that: include: An acquisition unit, configured to acquire log data, wherein the log data includes log data generated during operation of the computing device; A processing unit, configured to extract event elements from the log data and generate an argument role set, wherein the argument role set includes one or more of the following event elements: event number, event type, trigger word, occurrence time, file name, fault category, and detailed description; The processing unit is further used to construct an event graph based on the argument role set, and the event graph is used to indicate the association relationship between different events.

8. The device according to claim 7, characterized in that The processing unit is specifically used for: Segmenting the argument role sets based on the number of argument role sets and the time intervals between occurrences of the argument role sets to obtain one or more event segments; Layering the argument role sets in the event segmentation according to the occurrence time to obtain one or more event layers, wherein the occurrence time of the argument role sets in the same event layer is the same; The event graph is constructed according to the event correlation scores between the argument role sets at different layers, and the event correlation scores are used to indicate the correlation degree between the argument role sets at different layers.

9. The device according to claim 8, characterized in that The processing unit is specifically used for: When the occurrence time interval is greater than a first threshold, segmenting the argument role set according to the interval; When the number of the argument role sets is greater than a second threshold, the argument role sets are segmented based on the second threshold.

10. The device according to claim 8 or 9, characterized in that The processing unit is specifically used for: Calculating event correlation scores between the argument role sets at different levels according to the occurrence counts of the argument role sets at different levels; Events whose event correlation scores exceed a third threshold are determined as a set of correlation argument roles in the event graph.

11. The device according to any one of claims 7 to 10, characterized in that The processing unit is specifically used for: Event elements are extracted from the log data based on logical rules to obtain the file name and fault category of the event.

12. The device according to any one of claims 7 to 10, characterized in that The processing unit is specifically used for: The event elements are extracted from the log data based on a deep learning model to obtain the event type, trigger word and occurrence time of the event.

13. A computing device, characterized in that: The device comprises a processor coupled to a memory, wherein the processor is used to store instructions. When the instructions are executed by the processor, the computing device performs the method according to any one of claims 1 to 6.

14. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed, the computer is caused to perform the method according to any one of claims 1 to 6.

15. A computer program product, comprising instructions, characterized in that: When the instructions are executed, the computer implements the method according to any one of claims 1 to 6.