Event analysis method, device, medium and electronic equipment

By extracting event sets from event sequences and generating event relationship diagrams, the problem of low efficiency in judging event correlation in massive data is solved, efficient acquisition and intuitive representation of event causality is achieved, and the efficiency of event traceability analysis is improved.

CN115328992BActive Publication Date: 2024-09-13CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210956324.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-10
Publication Date
2024-09-13
Estimated Expiration
2042-08-10

AI Technical Summary

Technical Problem

Determining event correlations in massive amounts of data is inefficient.

Method used

By extracting the event set from the event sequence based on the timeline, the event relationship graph is generated, the causal relationship and the event vector are used to calculate the event causality representation parameters, the event causality is determined, and the event relationship graph is constructed to improve the efficiency of obtaining event relationships.

Benefits of technology

It improves the efficiency of obtaining event relationships, improves the intuitiveness of event causality and the efficiency of event traceability analysis, and simplifies the judgment of event correlation in massive data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115328992B
    Figure CN115328992B
Patent Text Reader

Abstract

The present application provides an event analysis method, device, medium and equipment, which relates to the field of big data technology. The method includes: determining the event set to be analyzed from the event sequence based on the time axis according to a preset time window; generating the causal relationship between every two events in the event set; and constructing an event relationship graph based on the causal relationship and the event set. In this way, an event set can be extracted from the event sequence based on the time axis, and a corresponding event relationship graph can be generated, avoiding the need to determine the relevance of events in massive data. Determining event relationships based on a time-series event sequence can improve the efficiency of obtaining event relationships.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to an event analysis method, an event analysis device, a computer-readable storage medium, and an electronic device. Background Art

[0002] With the continuous development of computer technology, a steady stream of data will be generated. The analysis of massive data is conducive to solving real problems. Generally speaking, there may be correlations between event data, and relevant personnel will identify possible problems on the Internet by looking for related event data. However, there is a problem of low efficiency in determining the correlation of events in massive data.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute an existing solution known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present application is to provide an event analysis method, an event analysis device, a computer-readable storage medium and an electronic device, which can extract a set of events from an event sequence based on a timeline and generate a corresponding event relationship graph, thereby avoiding determining the correlation of events in massive data. Determining event relationships based on a time-series event sequence can improve the efficiency of obtaining event relationships.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of the present application, there is provided an event analysis method, the method comprising:

[0007] Determine a set of events to be analyzed from a timeline-based event sequence according to a preset time window;

[0008] Generate the causal relationship between every two events in the event set;

[0009] Construct an event relationship graph based on causal relationships and event sets.

[0010] In an exemplary embodiment of the present application, before determining the event set to be analyzed from the event sequence based on the time axis according to the preset time window, the method further includes:

[0011] Read event data whose generation time is within the specified time range from the database;

[0012] Construct an event sequence based on the time axis according to the generation time of each event data.

[0013] In an exemplary embodiment of the present application, generating a causal relationship between every two events in an event set includes:

[0014] Get the event vector of each event in the event set;

[0015] Calculate a causal representation vector between every two events based on the event vector, and calculate an event causal representation parameter between every two events based on the causal representation vector;

[0016] The causal relationship between every two events is determined based on the event causal characterization parameters.

[0017] In an exemplary embodiment of the present application, obtaining an event vector of each event in an event set includes:

[0018] An event vector corresponding to each event is generated according to the source IP, destination IP, event type, and event occurrence time of each event.

[0019] In an exemplary embodiment of the present application, calculating the event causal representation parameter between every two events according to the causal representation vector includes:

[0020] Get the weight parameter vector corresponding to the current scene;

[0021] The event causal representation parameters between every two events are calculated based on the causal representation vector and the weight parameter vector.

[0022] In an exemplary embodiment of the present application, before determining the causal relationship between every two events according to the event causal characterization parameters, the method further includes:

[0023] The event causal representation parameters are constrained to within the preset parameter range through the activation function.

[0024] In an exemplary embodiment of the present application, determining the causal relationship between every two events according to the event causal characterization parameters includes:

[0025] If the event causal representation parameter is greater than or equal to the preset parameter, it is determined that there is a causal relationship between the two events corresponding to the event causal representation parameter;

[0026] If the event causal representation parameter is less than the preset parameter, it is determined that there is no causal relationship between the two events corresponding to the event causal representation parameter.

[0027] In an exemplary embodiment of the present application, after constructing the event relationship graph based on the causal relationship and the event set, the method further includes:

[0028] Visualize the event relationship diagram.

[0029] In an exemplary embodiment of the present application, an event relationship graph is constructed based on a causal relationship and an event set, including:

[0030] Each event in the event set is taken as a node, and the nodes with causal relationships are connected through directed edges to generate an event relationship graph containing at least one event relationship chain.

[0031] In an exemplary embodiment of the present application, the method further includes:

[0032] Obtain risk characterization parameters corresponding to at least one event relationship chain;

[0033] Selecting a target event relationship chain from at least one event relationship chain according to the risk characterization parameter;

[0034] Mark the target event relationship chain in the event relationship diagram.

[0035] In an exemplary embodiment of the present application, obtaining risk characterization parameters corresponding to at least one event relationship chain includes:

[0036] Get the event level corresponding to each event in the event set;

[0037] Get the weight parameters corresponding to each directed edge in the event relationship graph;

[0038] Calculate the probability of each event according to the weight parameters corresponding to each directed edge;

[0039] The risk characterization parameters corresponding to each event relationship chain are generated according to the occurrence probability and event level of each event.

[0040] In an exemplary embodiment of the present application, after marking the target event relationship chain in the event relationship graph, the method further includes:

[0041] Highlight the target event relationship chain in the visually displayed event relationship diagram.

[0042] In an exemplary embodiment of the present application, after constructing the event relationship graph based on the causal relationship and the event set, the method further includes:

[0043] Traverse the event relationship graph to determine the child nodes with multiple parent nodes;

[0044] Determine the target parent node according to the event causal representation parameters between each parent node and child node;

[0045] Delete the directed edges between parent nodes and child nodes other than the target parent node to obtain the target event relationship graph.

[0046] In an exemplary embodiment of the present application, after constructing the event relationship graph based on the causal relationship and the event set, the method further includes:

[0047] Update the relative position of the preset time window on the time axis according to the preset step size;

[0048] A new event set to be analyzed is determined from the event sequence based on the time axis according to the updated preset time window.

[0049] According to one aspect of the present application, there is provided an event analysis device, comprising:

[0050] An event determination unit, used to determine a set of events to be analyzed from a time axis-based event sequence according to a preset time window;

[0051] A causal relationship generation unit, used for generating a causal relationship between every two events in an event set;

[0052] A relationship graph construction unit is used to construct an event relationship graph based on causal relationships and event sets.

[0053] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0054] A data acquisition unit, configured to read event data whose generation time is within a specified time range from a database before the event determination unit determines the event set to be analyzed from the event sequence based on the time axis according to a preset time window;

[0055] The event sequence generating unit is used to construct an event sequence based on a time axis according to the generating time of each event data.

[0056] In an exemplary embodiment of the present application, the causal relationship generating unit generates a causal relationship between every two events in the event set, including:

[0057] Get the event vector of each event in the event set;

[0058] Calculate a causal representation vector between every two events based on the event vector, and calculate an event causal representation parameter between every two events based on the causal representation vector;

[0059] The causal relationship between every two events is determined based on the event causal characterization parameters.

[0060] In an exemplary embodiment of the present application, the causal relationship generation unit obtains the event vector of each event in the event set, including:

[0061] An event vector corresponding to each event is generated according to the source IP, destination IP, event type, and event occurrence time of each event.

[0062] In an exemplary embodiment of the present application, the causal relationship generation unit calculates the event causal representation parameters between every two events according to the causal representation vector, including:

[0063] Get the weight parameter vector corresponding to the current scene;

[0064] The event causal representation parameters between every two events are calculated based on the causal representation vector and the weight parameter vector.

[0065] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0066] The activation unit is used to constrain the event causal representation parameters to a preset parameter range through an activation function before the causal relationship generation unit determines the causal relationship between every two events according to the event causal representation parameters.

[0067] In an exemplary embodiment of the present application, the causal relationship generation unit determines the causal relationship between every two events according to the event causal representation parameters, including:

[0068] If the event causal representation parameter is greater than or equal to the preset parameter, it is determined that there is a causal relationship between the two events corresponding to the event causal representation parameter;

[0069] If the event causal representation parameter is less than the preset parameter, it is determined that there is no causal relationship between the two events corresponding to the event causal representation parameter.

[0070] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0071] The display unit is used to visually display the event relationship graph after the relationship graph construction unit constructs the event relationship graph based on the causal relationship and the event set.

[0072] In an exemplary embodiment of the present application, the relationship graph construction unit constructs an event relationship graph based on the causal relationship and the event set, including:

[0073] Each event in the event set is taken as a node, and the nodes with causal relationships are connected through directed edges to generate an event relationship graph containing at least one event relationship chain.

[0074] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0075] The target event relationship chain selection unit is used to obtain the risk characterization parameters corresponding to at least one event relationship chain; select the target event relationship chain from at least one event relationship chain according to the risk characterization parameters; and mark the target event relationship chain in the event relationship diagram.

[0076] In an exemplary embodiment of the present application, the target event relationship chain selection unit obtains risk characterization parameters corresponding to at least one event relationship chain, including:

[0077] Get the event level corresponding to each event in the event set;

[0078] Get the weight parameters corresponding to each directed edge in the event relationship graph;

[0079] Calculate the probability of each event according to the weight parameters corresponding to each directed edge;

[0080] The risk characterization parameters corresponding to each event relationship chain are generated according to the occurrence probability and event level of each event.

[0081] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0082] The highlighting unit is used to highlight the target event relationship chain in the visually displayed event relationship diagram after the target event relationship chain selection unit marks the target event relationship chain in the event relationship diagram.

[0083] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0084] The relationship pruning unit is used to traverse the event relationship graph after the relationship graph construction unit constructs the event relationship graph based on the causal relationship and the event set, determine the child nodes with multiple parent nodes; determine the target parent node according to the event causal representation parameters between each parent node and the child node; delete the directed edges between other parent nodes and child nodes except the target parent node to obtain the target event relationship graph.

[0085] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0086] The preset time window sliding unit is used to update the relative position of the preset time window on the time axis according to the preset step size after the relationship graph construction unit constructs the event relationship graph based on the causal relationship and the event set; and determine the new event set to be analyzed from the event sequence based on the time axis according to the updated preset time window.

[0087] According to one aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above methods is implemented.

[0088] According to one aspect of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the above methods by executing the executable instructions.

[0089] The exemplary embodiments of the present application may have some or all of the following beneficial effects:

[0090] In an event analysis method provided in an example implementation of the present application, a set of events to be analyzed can be determined from a timeline-based event sequence according to a preset time window; a causal relationship between every two events in the event set is generated; and an event relationship graph is constructed based on the causal relationship and the event set. In this way, an event set can be extracted from a timeline-based event sequence, and a corresponding event relationship graph can be generated, avoiding the need to determine the relevance of events in massive data. Determining event relationships based on a time-series event sequence can improve the efficiency of acquiring event relationships. In addition, the causal relationship between events in an event set can be represented by an event relationship graph, which can improve the intuitiveness of the event causal relationship. In addition, representing the causal relationship between events in an event set based on an event relationship graph can also help improve the efficiency of event tracing and event analysis.

[0091] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0093] Figure 1 A schematic diagram showing an exemplary system architecture of an event analysis method and an event analysis device to which the embodiments of the present application can be applied;

[0094] Figure 2 A flowchart of an event analysis method according to an embodiment of the present application is schematically shown;

[0095] Figure 3 A schematic diagram of an event sequence based on a time axis according to an embodiment of the present application is schematically shown;

[0096] Figure 4 Schematically shows an event relationship diagram according to an embodiment of the present application;

[0097] Figure 5 A schematic diagram of an event relationship chain change according to an embodiment of the present application is shown schematically;

[0098] Figure 6 A schematic diagram of an event sequence based on a timeline according to another embodiment of the present application is schematically shown;

[0099] Figure 7 A flowchart of an event analysis method according to another embodiment of the present application is schematically shown;

[0100] Figure 8 The structure block diagram of an event analysis device according to an embodiment of the present application is schematically shown;

[0101] Fig. 9 The structure diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0102] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present application will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present application.

[0103] In addition, the accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0104] Figure 1 A schematic diagram of a system architecture of an exemplary application environment in which an event analysis method and an event analysis device according to an embodiment of the present application can be applied is shown.

[0105] like Figure 1As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0106] The event analysis method provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the event analysis device is generally arranged in the server 105. However, it is easy for those skilled in the art to understand that the event analysis method provided in the embodiment of the present application can also be executed by the terminal device 101, 102 or 103, and accordingly, the event analysis device can also be arranged in the terminal device 101, 102 or 103, and this is not particularly limited in the present exemplary embodiment. For example, in an exemplary embodiment, the server 105 can determine the event set to be analyzed from the event sequence based on the time axis according to a preset time window; generate the causal relationship between each two events in the event set; and construct an event relationship graph based on the causal relationship and the event set.

[0107] See also Figure 2 , Figure 2 The flowchart of the event analysis method according to one embodiment of the present application is schematically shown. Figure 2 As shown, the event analysis method may include: steps S210 to S230.

[0108] Step S210: determining a set of events to be analyzed from a timeline-based event sequence according to a preset time window.

[0109] Step S220: Generate a causal relationship between every two events in the event set.

[0110] Step S230: construct an event relationship graph based on the causal relationship and the event set.

[0111] Implementation Figure 2The method shown can extract an event set from an event sequence based on a timeline and generate a corresponding event relationship graph, avoiding the need to determine the relevance of events in massive data. Determining event relationships based on a time-series event sequence can improve the efficiency of obtaining event relationships. In addition, the causal relationship between events in an event set can be represented by an event relationship graph, which can improve the intuitiveness of the event causal relationship. In addition, representing the causal relationship between events in an event set based on an event relationship graph can also help improve the efficiency of event tracing and event analysis.

[0112] Next, the above steps of this exemplary embodiment are described in more detail.

[0113] In step S210, a set of events to be analyzed is determined from a timeline-based event sequence according to a preset time window.

[0114] Specifically, the length L of the preset time window (e.g., 60 minutes) can be pre-set. The preset time window is a time window that can slide on the time axis based on a preset step size. The sliding direction of the preset time window on the time axis may be consistent with or inconsistent with the direction of the time axis, which is not limited in the embodiments of the present application.

[0115] In addition, an event sequence can be understood as multiple events arranged in chronological order. Events can be represented by data. The set of events to be analyzed can be a set of events within a preset time window. When the position of the preset time window on the time axis is different, the corresponding event set is also different.

[0116] In addition, the events included in the event sequence may correspond to different categories (e.g., network events, host events, etc.) or may correspond to the same category, which is not limited in the embodiments of the present application. The events on the timeline may be instantaneous events or continuous events, and the duration of instantaneous events and continuous events on the timeline is different.

[0117] For example, see Figure 3 , Figure 3 The following schematically shows a schematic diagram of an event sequence based on a time axis according to an embodiment of the present application. Figure 3 As shown, the timeline may include event 310 , event 320 , event 330 , event 340 , event 350 , and a preset time window 300 .

[0118] The preset time window 300 can slide on the time axis based on a preset step size, and the events within the preset time window 300 can be determined as the event set to be analyzed, such as event 310 and event 320. Event 310 can be understood as an anchor event. If there is an association relationship between event 310 and event 320, event 310 is the cause and event 320 is the result.

[0119] In addition, event 310, event 320, event 330, event 340, and event 350 can correspond to moment t1, moment t2, moment t3, moment t4, and moment t5 on the timeline, respectively, where moment t1, moment t2, moment t3, moment t4, and moment t5 can be continuous moments or discontinuous moments, and the embodiments of the present application are not limited thereto.

[0120] As an optional embodiment, before determining the event set to be analyzed from the event sequence based on the time axis according to the preset time window, the method further includes: reading event data whose generation time is within the specified time range from the database; and constructing the event sequence based on the time axis according to the generation time of each event data. In this way, a time-series event sequence can be obtained, which is conducive to more efficient analysis of the causal relationship between events.

[0121] Specifically, the specified time range can be limited by the start time and the end time, and the events on the timeline are all within the specified time range. Event data may include source IP, destination IP, event type, event occurrence time, etc., which are not limited in the embodiments of the present application. In addition, the above-mentioned generation time can be the occurrence time or the start time.

[0122] In step S220 , a causal relationship between every two events in the event set is generated.

[0123] Specifically, the causal relationship between every two events can be represented by any form such as numerical values, symbols, character strings, etc., which is not limited in the embodiments of the present application.

[0124] As an optional embodiment, generating the causal relationship between every two events in the event set includes: obtaining the event vector of each event in the event set; calculating the causal characterization vector between every two events based on the event vector, and calculating the event causal characterization parameter between every two events based on the causal characterization vector; and determining the causal relationship between every two events based on the event causal characterization parameter. In this way, the accuracy of determining the causal relationship between every two events can be improved based on time series, thereby improving the accuracy of the event relationship diagram generated subsequently.

[0125] Specifically, the event vectors of each event in the event set may be the same or different, that is, the same event may occur at different times in the same event set. i :(src i , dest i , stype i , t i ), where i is used to represent the i-th event, i∈[1,N], and N is a positive integer.

[0126] The causal characterization vector between each two events is calculated based on the event vector, including: calculating the causal characterization vector between event1: (src1, dest1, etype1, t1) and event2: (src2, dest2, etype2, t2) based on the event vector Among them, every two events participating in the calculation can be respectively used as event1 and event2. Here, event1 and event2 are not used to limit the first event and the second event.

[0127] Specifically,

[0128]

[0129]

[0130]

[0131] Δt=|t1-t2|.

[0132] For example, Δs, Δd, Δet, Δsd, Δt can be expressed as the following table:

[0133] Δs Δd Δet Δsd Δt / min 1 0.8 0.5 -1 2 -1 0.8 -1 -1 58 -1 1 -1 -1 60

[0134] Among them, the first row corresponds to the first event, the second row corresponds to the second event, and the third row corresponds to the third event.

[0135] As an optional embodiment, obtaining the event vector of each event in the event set includes: generating an event vector corresponding to each event according to the source IP, destination IP, event type, and event occurrence time of each event. In this way, each event can be characterized in multiple dimensions based on the event vector, which is conducive to improving the expression accuracy of each event.

[0136] Specifically, the event vector can be expressed as [source IP (src), destination IP (dest), event type (etype), event occurrence time (t)].

[0137] For example, the source IP (src), destination IP (dest), event type (etype), and event occurrence time (t) can be expressed as the following table:

[0138] src dest etype t 2.2.3.1 10.10.1.1 1120 2022-01-01 10:00:00 2.2.3.1 10.10.1.2 1121 2022-01-01 10:02:00 3.3.4.1 10.10.1.1 2132 2022-01-01 11:00:00

[0139] Among them, the first row corresponds to the first event, the second row corresponds to the second event, and the third row corresponds to the third event.

[0140] As an optional embodiment, the event causal characterization parameters between every two events are calculated based on the causal characterization vector, including: obtaining a weight parameter vector corresponding to the current scene; and calculating the event causal characterization parameters between every two events based on the causal characterization vector and the weight parameter vector. In this way, parameters that can more accurately characterize the causal relationship of events can be calculated based on the causal characterization vector and the weight parameter vector, which is conducive to analyzing and obtaining a more accurate event relationship diagram.

[0141] Specifically, obtaining a weight parameter vector corresponding to the current scene includes: determining the current scene identifier, obtaining a corresponding weight parameter vector according to the current scene identifier Among them, θ1, θ2, θ3, θ4, 0 are different weight values ​​in the weight parameter vector. For example,

[0142] Based on this, the event causal representation parameters between each two events are calculated according to the causal representation vector and the weight parameter vector, including: and the weight parameter vector Calculate the event causal characterization parameters between each two events

[0143] Based on the above examples for source IP (src), destination IP (dest), event type (etype), event occurrence time (t), and examples for Δs, Δd, Δet, Δsd, Δt, and examples for θ1, θ2, θ3, θ4, 0. If L = 60min, for example, based on The event causal representation parameter f between the node of the first event and the node of the second event can be calculated 12 =0.871309, the event causal characterization parameter f between the node of the second event and the node of the third event 23 =0.353267, the event causal characterization parameter f between the node of the first event and the node of the third event 13 =0.332120.

[0144] As an optional embodiment, before determining the causal relationship between each two events according to the event causal characterization parameters, the method further includes: constraining the event causal characterization parameters to a preset parameter range through an activation function. In this way, the event causal characterization parameters can be constrained to the preset parameter range to improve the efficiency of determining the event causal relationship.

[0145] Specifically, the activation function may be a sigmoid function, a Tanh hyperbolic tangent activation function, a ReLU activation function, a Softmax activation function, or the like, and is not limited in the embodiments of the present application.

[0146] The event causal representation parameters are constrained to a preset parameter range through the activation function, including: the event causal representation parameters are constrained to a preset parameter range through the sigmoid function. Constrained to a preset parameter range (e.g., [0,1]); where It can be used to characterize the degree of causality between two events, and can also be regarded as a transmission probability.

[0147] As an optional embodiment, determining the causal relationship between each two events according to the event causal characterization parameter includes: if the event causal characterization parameter is greater than or equal to a preset parameter, determining that there is a causal relationship between the two events corresponding to the event causal characterization parameter; if the event causal characterization parameter is less than the preset parameter, determining that there is no causal relationship between the two events corresponding to the event causal characterization parameter. This can improve the efficiency of determining the event causal relationship.

[0148] Specifically, the preset parameter may be a pre-set threshold value for determining a causal relationship. The preset parameter may be expressed in any form such as a number, a symbol, a character string, etc., and the embodiment of the present application is not limited thereto. For example, the preset parameter may be set to 0.5.

[0149] In step S230, an event relationship graph is constructed based on the causal relationship and the event set.

[0150] Specifically, the event relationship graph may be composed of a plurality of nodes and edges for connecting the nodes.

[0151] See also Figure 4 , Figure 4 The event relationship diagram according to an embodiment of the present application is schematically shown. Figure 4 As shown, the event relationship diagram 400 may exemplarily include two event relationship chains, one event relationship chain includes event 410, event 420, and event 430 as nodes, and the other event relationship chain includes event 440, event 450, event 460, and event 470 as nodes.

[0152] Among them, event 410 and event 420 can be connected by edge P1 representing the causal relationship; event 420 and event 430 can be connected by edge P2 representing the causal relationship; event 440 and event 450 can be connected by edge P3 representing the causal relationship; event 450 and event 460 can be connected by edge P4 representing the causal relationship; event 450 and event 470 can be connected by edge P5 representing the causal relationship.

[0153] As an optional embodiment, after constructing the event relationship graph based on the causal relationship and the event set, the method further includes: visually displaying the event relationship graph. This can improve the intuitiveness of the event relationship graph, which is conducive to improving the interactivity with the user, and facilitates the user to analyze events more efficiently based on the event relationship graph.

[0154] Specifically, visually displaying the event relationship diagram includes: visually displaying the event relationship diagram on the user interface based on the display module; or, sending the event relationship diagram to a corresponding legal terminal (such as a mobile phone, computer, etc.) so that the legal terminal can visually display the event relationship diagram.

[0155] As an optional embodiment, an event relationship graph is constructed based on the causal relationship and the event set, including: taking each event in the event set as a node, and connecting the nodes with causal relationships through directed edges to generate an event relationship graph containing at least one event relationship chain. This can strengthen the correlation between nodes and improve the intuitiveness of the causal relationship between nodes.

[0156] Specifically, the two nodes connected by a directed edge include a parent node and a child node. The starting point of the directed edge serves as the parent node, and the node to which the directed edge points serves as the child node. If there are other directed edges with the child node as the starting point pointing to other nodes, then the child node can serve as the parent node of the other nodes.

[0157] As an optional embodiment, the method further includes: obtaining risk characterization parameters corresponding to at least one event relationship chain; selecting a target event relationship chain from at least one event relationship chain according to the risk characterization parameters; and marking the target event relationship chain in the event relationship graph. In this way, the target event relationship chain in the event relationship graph can be recorded so that relevant personnel can check it at any time.

[0158] Specifically, the risk characterization parameter can be used to characterize the height of the existence risk of the corresponding event relationship chain.

[0159] As an optional embodiment, obtaining risk characterization parameters corresponding to at least one event relationship chain includes: obtaining the event level corresponding to each event in the event set; obtaining the weight parameter corresponding to each directed edge in the event relationship graph; calculating the probability of occurrence of each event according to the weight parameter corresponding to each directed edge; and generating risk characterization parameters corresponding to each event relationship chain according to the probability of occurrence of each event and the event level. In this way, risk characterization of event relationship chains can be achieved based on risk characterization parameters, which is conducive to improving the accuracy of determining target event relationship chains, thereby helping relevant personnel to intuitively determine event relationship chains with higher risks.

[0160] The probability of occurrence of each event is calculated based on the weight parameter corresponding to each directed edge, including: based on the weight parameter α corresponding to each directed edgei Determine the edge weight vector corresponding to each event relationship chain in the event relationship graph According to the preset root node probability value β1 (eg, β1 = 1) weight vector Calculate the probability of occurrence of each event in the corresponding event relationship chain Wherein, n is used to represent the number of nodes in the event relationship chain, and n is a positive integer.

[0161] Based on this, the risk characterization parameters corresponding to each event relationship chain are generated according to the occurrence probability and event level of each event, including: based on the event level g corresponding to each event i Determine the level vector corresponding to each event relationship chain in the event relationship graph Among them, different events can correspond to different g i , g i Can be expressed as a constant; according to the probability of occurrence of each event in the corresponding event relationship chain The level vector corresponding to the event relationship chain Calculate the risk characterization parameter y corresponding to the corresponding event relationship chain until the risk characterization parameters corresponding to all event relationship chains in this round are calculated; where,

[0162] As an optional embodiment, after marking the target event relationship chain in the event relationship graph, the method further includes: highlighting the target event relationship chain in the visually displayed event relationship graph. This can enhance the indication strength of the target event relationship chain in the event relationship graph, and is helpful for relevant personnel to intuitively understand which target event relationship chains exist in the event relationship graph, and then further process / analyze them.

[0163] Specifically, the target event relationship chain may be an event relationship chain whose risk characterization parameter is greater than a preset parameter value (e.g., 0.7). The highlighting of the target event relationship chain in the visually displayed event relationship diagram includes: highlighting / boldening the target event relationship chain in the visually displayed event relationship diagram.

[0164] As an optional embodiment, after constructing the event relationship graph based on the causal relationship and the event set, the above method further includes: traversing the event relationship graph to determine the child nodes with multiple parent nodes; determining the target parent node according to the event causal representation parameters between each parent node and the child node; deleting the directed edges between the parent nodes and the child nodes other than the target parent node to obtain the target event relationship graph. This can improve the simplicity of the event relationship graph and the accuracy of the event relationship graph in representing the relationship between events.

[0165] Specifically, the parent node corresponding to the child node may be one or more, which is not limited in the embodiment of the present application, and the target parent node may be one of the multiple parent nodes corresponding to the child node. In addition, the above method may further include: visually displaying the target event relationship graph.

[0166] See also Figure 5 , Figure 5 The following schematically shows a schematic diagram of the event relationship chain change according to an embodiment of the present application. Figure 5 As shown, event relationship chain 500 includes: event 510, event 520, event 530, event 540 represented as nodes. Event relationship chain 501 includes: event 510, event 520, event 530, event 540 represented as nodes.

[0167] Specifically, in the event relationship chain 500, event 540 has two parent nodes, namely, event 520 and event 530. At this time, the target parent node can be determined according to the event causal characterization parameters between each parent node and the child node. If the event causal characterization parameter between event 540 and event 520 is 0.6, and the event causal characterization parameter between event 530 and event 520 is 0.9, then event 530 represented as a node can be determined as the target parent node, and the directed edge between event 540 and event 520 can be deleted, thereby obtaining the target event relationship graph containing the event relationship chain 501.

[0168] As an optional embodiment, after constructing the event relationship graph based on the causal relationship and the event set, the method further includes: updating the relative position of the preset time window on the time axis according to the preset step size; and determining a new event set to be analyzed from the event sequence based on the time axis according to the updated preset time window. In this way, the cyclic execution of the scheme can be realized to continuously determine the causal relationship between events according to the time axis, which is conducive to reducing labor costs and improving the automation of event causal relationship analysis.

[0169] Specifically, the new event set to be analyzed contains different events from the event set corresponding to the preset time window before sliding. There may or may not be some event overlap between the new event set and the original event set, which is not limited in the embodiment of the present application.

[0170] See also Figure 6 , Figure 6 Schematically shows a schematic diagram of an event sequence based on a time axis according to another embodiment of the present application. Figure 6 As shown, the timeline may include event 610 , event 620 , event 630 , event 640 , event 650 , and a preset time window 600 .

[0171] exist Figure 3On the basis of, the preset time window 300 slides in the direction of the time axis by a preset step, and the preset time window at the new position is defined as the preset time window 600. The events within the preset time window 600 can be determined as the event set to be analyzed, such as event 620 and event 630.

[0172] In addition, event 610, event 620, event 630, event 640, and event 650 can correspond to moment t1, moment t2, moment t3, moment t4, and moment t5 on the timeline, respectively, where moment t1, moment t2, moment t3, moment t4, and moment t5 can be continuous moments or discontinuous moments, and the embodiments of the present application are not limited thereto.

[0173] See also Figure 7 , Figure 7 The flowchart of the event analysis method according to another embodiment of the present application is schematically shown. Figure 7 As shown, the event analysis method may include: steps S700 to S726.

[0174] Step S700: Reading event data whose generation time is within a specified time range from a database.

[0175] Step S702: construct an event sequence based on the time axis according to the generation time of each event data.

[0176] Step S704: determining a set of events to be analyzed from the event sequence based on the time axis according to a preset time window.

[0177] Step S706: Generate an event vector corresponding to each event according to the source IP, destination IP, event type, and event occurrence time of each event.

[0178] Step S708: Calculate the causal characterization vector between every two events based on the event vector, obtain the weight parameter vector corresponding to the current scene, and then calculate the event causal characterization parameters between every two events based on the causal characterization vector and the weight parameter vector.

[0179] Step S710: constraining event causal representation parameters to within a preset parameter range through an activation function.

[0180] Step S712: Determine the causal relationship between every two events according to the event causal characterization parameters.

[0181] Step S714: taking each event in the event set as a node, and connecting the nodes with causal relationships through directed edges, so as to generate an event relationship graph including at least one event relationship chain.

[0182] Step S716: Obtain the event level corresponding to each event in the event set, and obtain the weight parameter corresponding to each directed edge in the event relationship graph.

[0183] Step S718: Calculate the occurrence probability of each event according to the weight parameter corresponding to each directed edge, and generate the risk characterization parameter corresponding to each event relationship chain according to the occurrence probability and event level of each event.

[0184] Step S720: Select a target event relationship chain from at least one event relationship chain according to the risk characterization parameter, and mark the target event relationship chain in the event relationship graph.

[0185] Step S722: traverse the event relationship graph, determine the child nodes with multiple parent nodes, determine the target parent node according to the event causal representation parameters between each parent node and the child node, and then delete the directed edges between other parent nodes and child nodes except the target parent node to obtain the target event relationship graph.

[0186] Step S724: highlighting the target event relationship chain in the visually displayed target event relationship diagram.

[0187] Step S726: updating the relative position of the preset time window on the time axis according to the preset step size; determining a new event set to be analyzed from the event sequence based on the time axis according to the updated preset time window.

[0188] It should be noted that steps S700 to S726 are Figure 2 The steps and their embodiments shown correspond to each other. For the specific implementation of steps S700 to S726, please refer to Figure 2 The steps and embodiments shown are not described in detail here.

[0189] It can be seen that implementation Figure 7 The method shown can extract an event set from an event sequence based on a timeline and generate a corresponding event relationship graph, avoiding the need to determine the relevance of events in massive data. Determining event relationships based on a time-series event sequence can improve the efficiency of obtaining event relationships. In addition, the causal relationship between events in an event set can be represented by an event relationship graph, which can improve the intuitiveness of the event causal relationship. In addition, representing the causal relationship between events in an event set based on an event relationship graph can also help improve the efficiency of event tracing and event analysis.

[0190] See also Figure 8 , Figure 8 The schematic diagram shows a structural block diagram of an event analysis device according to an embodiment of the present application. Figure 2 The method shown corresponds to Figure 8 As shown, the event analysis device 800 includes:

[0191] An event determination unit 801 is used to determine a set of events to be analyzed from a time axis-based event sequence according to a preset time window;

[0192] A causal relationship generating unit 802, used to generate a causal relationship between every two events in the event set;

[0193] The relationship graph construction unit 803 is used to construct an event relationship graph based on the causal relationship and the event set.

[0194] It can be seen that implementation Figure 8 The device shown can extract an event set from an event sequence based on a timeline and generate a corresponding event relationship graph, avoiding determining the relevance of events in massive data. Determining event relationships based on a time-series event sequence can improve the efficiency of obtaining event relationships. In addition, the causal relationship between events in an event set can be represented by an event relationship graph, which can improve the intuitiveness of the event causal relationship. In addition, representing the causal relationship between events in an event set based on an event relationship graph can also help improve the efficiency of event tracing and event analysis.

[0195] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0196] A data acquisition unit, used to read event data whose generation time is within a specified time range from a database before the event determination unit 801 determines the event set to be analyzed from the event sequence based on the time axis according to a preset time window;

[0197] The event sequence generating unit is used to construct an event sequence based on a time axis according to the generating time of each event data.

[0198] It can be seen that by implementing this optional embodiment, a time-series event sequence can be obtained, which is conducive to more efficient analysis of the causal relationship between events.

[0199] In an exemplary embodiment of the present application, the causal relationship generating unit 802 generates a causal relationship between every two events in the event set, including:

[0200] Get the event vector of each event in the event set;

[0201] Calculate a causal representation vector between every two events based on the event vector, and calculate an event causal representation parameter between every two events based on the causal representation vector;

[0202] The causal relationship between every two events is determined based on the event causal characterization parameters.

[0203] It can be seen that the implementation of this optional embodiment can improve the accuracy of determining the causal relationship between every two events based on time sequencing, thereby improving the accuracy of the subsequently generated event relationship graph.

[0204] In an exemplary embodiment of the present application, the causal relationship generation unit 802 obtains the event vector of each event in the event set, including:

[0205] An event vector corresponding to each event is generated according to the source IP, destination IP, event type, and event occurrence time of each event.

[0206] It can be seen that by implementing this optional embodiment, each event can be represented in multiple dimensions based on the event vector, which is conducive to improving the expression accuracy of each event.

[0207] In an exemplary embodiment of the present application, the causal relationship generation unit 802 calculates the event causal representation parameters between every two events according to the causal representation vector, including:

[0208] Get the weight parameter vector corresponding to the current scene;

[0209] The event causal representation parameters between every two events are calculated based on the causal representation vector and the weight parameter vector.

[0210] It can be seen that by implementing this optional embodiment, parameters that can more accurately characterize the causal relationship of events can be calculated based on the causal characterization vector and the weight parameter vector, which is conducive to analyzing and obtaining a more accurate event relationship diagram.

[0211] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0212] The activation unit is used to constrain the event causal representation parameters to a preset parameter range through an activation function before the causal relationship generation unit 802 determines the causal relationship between every two events according to the event causal representation parameters.

[0213] It can be seen that by implementing this optional embodiment, the event causal characterization parameters can be constrained to a preset parameter range to improve the efficiency of determining the event causal relationship.

[0214] In an exemplary embodiment of the present application, the causal relationship generation unit 802 determines the causal relationship between every two events according to the event causal representation parameters, including:

[0215] If the event causal representation parameter is greater than or equal to the preset parameter, it is determined that there is a causal relationship between the two events corresponding to the event causal representation parameter;

[0216] If the event causal representation parameter is less than the preset parameter, it is determined that there is no causal relationship between the two events corresponding to the event causal representation parameter.

[0217] It can be seen that implementing this optional embodiment can improve the efficiency of determining the causal relationship of events.

[0218] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0219] The display unit is used to visually display the event relationship graph after the relationship graph construction unit 803 constructs the event relationship graph based on the causal relationship and the event set.

[0220] It can be seen that implementing this optional embodiment can improve the intuitiveness of the event relationship diagram, which is conducive to improving the interactivity with users and facilitates users to analyze events more efficiently based on the event relationship diagram.

[0221] In an exemplary embodiment of the present application, the relationship graph construction unit 803 constructs an event relationship graph based on the causal relationship and the event set, including:

[0222] Each event in the event set is taken as a node, and the nodes with causal relationships are connected through directed edges to generate an event relationship graph containing at least one event relationship chain.

[0223] It can be seen that implementing this optional embodiment can strengthen the correlation between nodes and improve the intuitiveness of the causal relationship between nodes.

[0224] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0225] The target event relationship chain selection unit is used to obtain the risk characterization parameters corresponding to at least one event relationship chain; select the target event relationship chain from at least one event relationship chain according to the risk characterization parameters; and mark the target event relationship chain in the event relationship diagram.

[0226] It can be seen that by implementing this optional embodiment, it is possible to record the target event relationship chain in the event relationship graph so that relevant personnel can check it at any time.

[0227] In an exemplary embodiment of the present application, the target event relationship chain selection unit obtains risk characterization parameters corresponding to at least one event relationship chain, including:

[0228] Get the event level corresponding to each event in the event set;

[0229] Get the weight parameters corresponding to each directed edge in the event relationship graph;

[0230] Calculate the probability of each event according to the weight parameters corresponding to each directed edge;

[0231] The risk characterization parameters corresponding to each event relationship chain are generated according to the occurrence probability and event level of each event.

[0232] It can be seen that the implementation of this optional embodiment can achieve risk characterization of event relationship chains based on risk characterization parameters, which is beneficial to improve the accuracy of determining target event relationship chains, thereby helping relevant personnel to intuitively determine event relationship chains with higher risks.

[0233] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0234] The highlighting unit is used to highlight the target event relationship chain in the visually displayed event relationship diagram after the target event relationship chain selection unit marks the target event relationship chain in the event relationship diagram.

[0235] It can be seen that implementing this optional embodiment can enhance the indication strength of the target event relationship chain in the event relationship graph, which is helpful for relevant personnel to intuitively understand which target event relationship chains exist in the event relationship graph, and then further process / analyze them.

[0236] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0237] The relationship pruning unit is used for traversing the event relationship graph after the relationship graph construction unit 803 constructs the event relationship graph based on the causal relationship and the event set, and determining the child nodes with multiple parent nodes; determining the target parent node according to the event causal representation parameters between each parent node and the child node; deleting the directed edges between other parent nodes and child nodes except the target parent node, and obtaining the target event relationship graph.

[0238] It can be seen that implementing this optional embodiment can improve the simplicity of the event relationship graph and the accuracy of the event relationship graph in representing the relationship between events.

[0239] In an exemplary embodiment of the present application, the above-mentioned device further includes:

[0240] The preset time window sliding unit is used to update the relative position of the preset time window on the time axis according to the preset step size after the relationship diagram construction unit 803 constructs the event relationship diagram based on the causal relationship and the event set; and determine the new event set to be analyzed from the event sequence based on the time axis according to the updated preset time window.

[0241] It can be seen that the implementation of this optional embodiment can realize the cyclic execution of the present solution to continuously determine the causal relationship between events according to the time axis, which is conducive to reducing labor costs and improving the degree of automation of event causal relationship analysis.

[0242] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0243] Since the various functional modules of the event analysis device of the example embodiment of the present application correspond to the steps of the example embodiment of the event analysis method described above, for details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the event analysis method described above in the present application.

[0244] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0245] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0246] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for system operation are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0247] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0248] In particular, according to an embodiment of the present application, the process described with reference to the flowchart above can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, various functions defined in the method and apparatus of the present application are executed.

[0249] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0250] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0251] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0252] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0253] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the aforementioned claims.

Claims

1. An event analysis method, characterized in that: include: Determine a set of events to be analyzed from a timeline-based event sequence according to a preset time window; Generate a causal relationship between every two events in the event set; Constructing an event relationship graph based on the causal relationship and the event set; Wherein, constructing an event relationship graph based on the causal relationship and the event set includes: Each event in the event set is used as a node, and nodes with causal relationships are connected through directed edges to generate an event relationship graph including at least one event relationship chain; Among them, it also includes: Obtaining the event level corresponding to each event in the event set; Obtaining weight parameters corresponding to each directed edge in the event relationship graph; Calculating the occurrence probability of each event according to the weight parameters corresponding to each directed edge; The risk characterization parameters corresponding to each event relationship chain are generated according to the occurrence probability and event level of each event; wherein the risk characterization parameters are used as a basis for selecting the event relationship chain.

2. The method according to claim 1, characterized in that Before determining the event set to be analyzed from the event sequence based on the time axis according to the preset time window, the method further includes: Read event data whose generation time is within the specified time range from the database; The event sequence based on the time axis is constructed according to the generation time of each event data.

3. The method according to claim 1, characterized in that Generating a causal relationship between every two events in the event set, including: Obtaining an event vector for each event in the event set; Calculating a causal characterization vector between every two events based on the event vector, and calculating an event causal characterization parameter between every two events according to the causal characterization vector; The causal relationship between every two events is determined according to the event causal characterization parameters.

4. The method according to claim 3, characterized in that: Obtaining the event vector of each event in the event set, including: An event vector corresponding to each event is generated according to the source IP, destination IP, event type, and event occurrence time of each event.

5. The method according to claim 3, characterized in that: Calculating event causal characterization parameters between every two events according to the causal characterization vector includes: Get the weight parameter vector corresponding to the current scene; The event causal characterization parameter between every two events is calculated according to the causal characterization vector and the weight parameter vector.

6. The method according to claim 3, characterized in that Before determining the causal relationship between every two events according to the event causal characterization parameters, the method further includes: The event causal representation parameters are constrained within a preset parameter range through an activation function.

7. The method according to claim 3, characterized in that Determining the causal relationship between every two events according to the event causal characterization parameters includes: If the event causal representation parameter is greater than or equal to a preset parameter, it is determined that there is a causal relationship between the two events corresponding to the event causal representation parameter; If the event causal representation parameter is less than a preset parameter, it is determined that the causal relationship does not exist between the two events corresponding to the event causal representation parameter.

8. The method according to claim 1, characterized in that After constructing the event relationship graph based on the causal relationship and the event set, the method further includes: The event relationship diagram is visually displayed.

9. The method according to claim 1, characterized in that: The method further comprises: Selecting a target event relationship chain from the at least one event relationship chain according to the risk characterization parameter; The target event relationship chain is marked in the event relationship graph.

10. The method according to claim 9, characterized in that After marking the target event relationship chain in the event relationship graph, the method further includes: The target event relationship chain is highlighted in the visually displayed event relationship diagram.

11. The method according to claim 1, characterized in that: After constructing the event relationship graph based on the causal relationship and the event set, the method further includes: Traversing the event relationship graph to determine child nodes having multiple parent nodes; Determine a target parent node according to event causal representation parameters between each parent node and the child node; The directed edges between the parent nodes other than the target parent node and the child nodes are deleted to obtain a target event relationship graph.

12. The method according to any one of claims 1 to 11, characterized in that After constructing the event relationship graph based on the causal relationship and the event set, the method further includes: Updating the relative position of the preset time window on the time axis according to a preset step size; A new event set to be analyzed is determined from the event sequence based on the time axis according to the updated preset time window.

13. An event analysis device, characterized in that: include: An event determination unit, used to determine a set of events to be analyzed from a time axis-based event sequence according to a preset time window; A causal relationship generating unit, used for generating a causal relationship between every two events in the event set; A relationship graph construction unit, used to construct an event relationship graph based on the causal relationship and the event set; The relationship graph construction unit constructs an event relationship graph based on the causal relationship and the event set, including: Each event in the event set is used as a node, and nodes with causal relationships are connected through directed edges to generate an event relationship graph including at least one event relationship chain; Wherein, the event analysis device is also used for: Obtaining the event level corresponding to each event in the event set; Obtaining weight parameters corresponding to each directed edge in the event relationship graph; Calculating the occurrence probability of each event according to the weight parameters corresponding to each directed edge; The risk characterization parameters corresponding to each event relationship chain are generated according to the occurrence probability and event level of each event; wherein the risk characterization parameters are used as a basis for selecting the event relationship chain.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

15. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1-12 by executing the executable instructions.