False alarm processing method and device and computer equipment

By finding and processing paired alarm information in the monitoring and analysis platform, identifying false alarms and processing them, the unnecessary work caused by massive false alarm information and the problem of flooding of true alarm information is solved, and the timely processing of true alarm information is achieved. Effect.

CN118939465APending Publication Date: 2024-11-12FENGTAI SCI & TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411158870.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

There is a large amount of false alarm information in the existing monitoring and analysis platform, which leads to unnecessary work and real alarm information being flooded and cannot be processed in time, which may cause system or equipment to malfunction or damage.

Method used

After the generated first alarm information is generated, the second alarm information matching it is found in the preset time window. If there is a paired event, it is determined whether the current time is a matching cooling time. If it is not a cooling time, it is determined that the first time is determined. The second alarm information is false alarm information and is processed.

Benefits of technology

Accurately identify false alarm information, avoid unnecessary maintenance work, ensure that the true alarm information is processed in a timely manner, and avoid errors in identifying false alarm information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939465A_ABST
    Figure CN118939465A_ABST
Patent Text Reader

Abstract

The embodiment of the invention is suitable for the technical field of computers, and provides a false alarm processing method and device and computer device.The method comprises the steps that in response to generated first alarm information, second alarm information matched with the first alarm information is searched in a preset time window, the event corresponding to the first alarm information and the event corresponding to the second alarm information are paired events of the same service; if the second alarm information exists in the time window, determining whether the current time is matched cooling time; and if the current time is not matched with the cooling time, determining that the first alarm information and the second alarm information are false alarm information, and processing the false alarm information. Through the method, the false alarm information can be identified and processed in time, so that real alarm information is prevented from being submerged, and a user can process the real alarm information in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a false alarm processing method, device and computer equipment. Background Art

[0002] When there is a fault, the alarm information can be used to perform system or equipment maintenance, but when the alarm information is wrong, it is easy to cause unnecessary work.

[0003] In the current monitoring and analysis platform, there are a large number of false alarms. On the one hand, false alarms will generate a lot of unnecessary work; on the other hand, a large number of false alarms can easily drown out the real alarms, resulting in users being unable to handle the real alarms in time. If false alarms cannot be accurately identified, the real alarms cannot be handled in time, which may cause system or equipment failure or damage, thus causing losses to users. Summary of the invention

[0004] In view of this, embodiments of the present application provide a false alarm processing method, apparatus, and computer device for accurately identifying false alarm information.

[0005] A first aspect of an embodiment of the present application provides a false alarm processing method, including:

[0006] In response to the generated first alarm information, searching for second alarm information matching the first alarm information within a preset time window, where the event corresponding to the first alarm information and the event corresponding to the second alarm information are paired events of the same service;

[0007] If the second alarm information exists within the time window, determining whether the current time is the matching cooling time;

[0008] If the current time does not match the cooling time, determining that the first alarm information and the second alarm information are false alarm information;

[0009] The false alarm information is processed.

[0010] A second aspect of an embodiment of the present application provides a false alarm processing device, including:

[0011] A search module, configured to, in response to the generated first alarm information, search for second alarm information matching the first alarm information within a preset time window, wherein the event corresponding to the first alarm information and the event corresponding to the second alarm information are paired events of the same service;

[0012] A determination module, configured to determine whether the current time is a matching cooling time if the second alarm information exists within the time window;

[0013] A judgment module, configured to determine that the first alarm information and the second alarm information are false alarm information if the current time does not match the cooling time;

[0014] A processing module is used to process the false alarm information.

[0015] A third aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0016] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.

[0017] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device executes the method described in the first aspect.

[0018] Compared with the prior art, the embodiments of the present application have at least the following advantages:

[0019] By applying the method in the embodiment of the present application, after the first alarm information is generated, it can be determined whether there is a second alarm information matching the first alarm information within a preset time window. When the event corresponding to the first alarm information and the event corresponding to the second alarm information are paired events of the same service, it can be considered that the first alarm information and the second alarm information match. In the preset time window, paired events of the same service appear, and it can be considered that the service is restarted in a short time. Service restart can be considered as normal operation. That is, if there are matching first alarm information and second alarm information in the time window, it can be indicated that a service has been restarted in a short time; since the service restart can be considered as normal operation. After determining that there are paired first alarm information and second alarm information in the preset time window, it can also be determined whether the current time can be matched. If the current time does not match the cooling time, it can be determined that the false alarm information can be matched at present, and thus the first alarm information and the second alarm information can be determined to be false alarm information. After identifying the false alarm information, the false alarm information can be processed in time. Based on the method in this embodiment, false alarm information in the alarm information can be identified, thereby avoiding unnecessary maintenance work, and at the same time preventing the real alarm information from being overwhelmed, so that the user can deal with the real alarm information in time; at the same time, false alarm information identification is not performed during the matching cooling time, and false alarm information identification is performed during the non-matching cooling time, which can avoid the identification errors of false alarm information. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art.

[0021] Figure 1 This is a schematic diagram of the steps of a false alarm processing method provided by an embodiment of the present application;

[0022] Figure 2 is a schematic diagram of a configuration analysis rule list provided in an embodiment of the present application;

[0023] Figure 3 It is a schematic diagram of configuration of paired event determination information provided by an embodiment of the present application;

[0024] Figure 4 This is a schematic diagram of configuration of rule attribute information provided by an embodiment of the present application;

[0025] Figure 5 It is a schematic diagram of determining the association relationship between an analysis rule and a transient state rule provided in an embodiment of the present application;

[0026] Figure 6 It is a schematic diagram of a false alarm processing method provided in an embodiment of the present application;

[0027] Figure 7 is a schematic diagram of a false alarm processing device provided in an embodiment of the present application;

[0028] Figure 8 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.

[0030] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0031] In the monitoring and analysis platforms currently available in the market, there are a large number of false alarms when monitoring and maintaining equipment or systems. Among these false alarms, there is a situation where a "down" event occurs when a service is down, that is, the service downtime, and an "up" event occurs when a service is started, that is, the service startup event. When a "down" event or an "up" event occurs, an alarm message can be generated. If the "down" event or the "up" event occurs alone, the alarm message at this time is a real alarm message. However, if the service is restarted, the "down" event and the "up" event will occur consecutively. When the "down" event and the "up" event occur, an alarm message will be generated, but these two alarm messages are false alarm messages. A large number of such paired events will generate a large number of false alarm messages, thereby drowning out the real alarm messages and causing users to suffer losses due to failure to handle them in time. At the same time, if a large number of the above events occur in a certain service in a short period of time, the essence should be due to problems with the service itself. The alarm message generated should be to report the error of the service itself, rather than the "down" event and the "up" event.

[0032] Based on this, the present application provides a false alarm processing method, so that paired false alarm information in the alarm information can be identified.

[0033] The technical solution of the present application is described below through specific embodiments.

[0034] Reference Figure 1 , shows a schematic flow chart of a false alarm processing method provided in an embodiment of the present application, which may specifically include the following steps:

[0035] S101, in response to generated first alarm information, searching for second alarm information matching the first alarm information within a preset time window, wherein an event corresponding to the first alarm information and an event corresponding to the second alarm information are paired events of the same service.

[0036] The execution subject of this embodiment may be a computer device, which may be a server, a mobile phone, a tablet computer, a vehicle-mounted device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. A variety of services may be installed on the computer device, and the computer device may be monitored and analyzed during operation, and an alarm may be issued when there is possible fault information. This embodiment does not limit the specific type of the computer device.

[0037] In this embodiment, a monitoring and analysis program may be deployed in the computer device, and the monitoring and analysis program may be used to monitor the device to be monitored, thereby generating alarm information. The device to be monitored may be the computer device itself, or may be other devices connected to the computer device. For example, the computer device may be connected to industrial equipment, thereby monitoring and maintaining the industrial equipment.

[0038] When the computer equipment is performing monitoring and maintenance, the equipment to be monitored can be analyzed based on pre-stored analysis rules, thereby triggering alarm information. The analysis rules are rules for determining whether to trigger an alarm.

[0039] The first alarm information may be an alarm information generated by monitoring and analysis software on a computer device. The second alarm information is the alarm information that needs to be found and is paired with the first alarm information. In this embodiment, the first and second are only used to distinguish and describe the alarm information.

[0040] The time window may be a preset short time length. If a service is down and then started again within the time window, it can be considered that the service has been restarted, and the corresponding service downtime alarm and service startup alarm generated at this time may not be considered as real alarms.

[0041] In an embodiment of the present application, a computer device may include transient rules, which may be rules for determining whether the information is a false alarm. The transient rules may include an analysis rule list, paired event determination information, and rule configuration information, and the rule configuration information includes matching rules.

[0042] The list of analysis rules can be all analysis rules that are selected to trigger paired events, such as selecting rules that trigger "down" events and rules that trigger "up" events. For each service in the device to be monitored, a service downtime event or a service startup event can be triggered according to certain analysis rules. For each transient state rule, a corresponding analysis rule can be configured. Figure 2 Schematic diagram of a configuration analysis rule list provided in an embodiment of the present application. Figure 2 As shown, the user can select a transient rule for which an analysis rule list needs to be configured, and then configure the analysis rule for the transient rule. For example, select Figure 2 Analysis rule 1 and analysis rule 2 in the example. After user configuration, the analysis rule and the transient rule may have an associated relationship.

[0043] Paired event determination information is used to determine whether two alarm information are paired events. For two alarm information to be paired events, the conditions that need to be met include that the events that occur belong to the same service and the events corresponding to the alarm information are paired event information. For example, the "down" event of mysql and the "up" event of kafka cannot be considered as paired events, while the "down" event of mysql and the "up" event of mysql can be considered as paired events. Users can configure the paired event determination information. Figure 3 Schematic diagram of configuration of paired event determination information provided by an embodiment of the present application. Figure 3 As shown, analysis rules corresponding to paired events can be configured, so that it can be determined whether a paired event occurs based on the analysis rules that trigger the alarm information.

[0044] The rule configuration information may include the name of the transient rule, the time window for determining paired events, the matching type, etc. The matching type may be the search order selected when searching for the second alarm information corresponding to the first alarm information. For example, the matching type may include the first match and the second match, wherein the first match may be searching for the second alarm information in the order of the generation time of the historical alarm information from the front to the back. The second match may be searching for the second alarm information in the order of the generation time of the historical alarm information from the back to the front. Figure 4 This is a schematic diagram of the configuration of rule attribute information provided by an embodiment of the present application. Figure 4 As shown, the configuration of the rule attribute information may include the alarm strategy, time window, maximum ignore times, match type, and whether to enable the configuration.

[0045] When an alarm message is triggered, it can first be determined whether the alarm message can be processed as a false alarm based on the transient state rule. Therefore, after the first alarm message is triggered, the computer device can determine whether the first alarm message has an associated transient state rule.

[0046] The computer device may determine the analysis rule that triggers the first alarm information, and then determine whether the analysis rule has an associated transient state rule. If the analysis rule has an associated transient state rule, it may be determined that the first alarm information has an associated transient state rule.

[0047] When determining whether the first alarm information has an associated transient state rule, it is necessary to make a judgment based on the analysis rule to assess the association relationship of the transient state rule.

[0048] Figure 5 Schematic diagram of determining the association relationship between analysis rules and transient state rules provided in an embodiment of the present application. Figure 5As shown, when the system is initialized, all transient state rules can be obtained, and for each transient state rule, a list of analysis rules can be configured. The analysis rule list of each transient state rule is traversed to obtain which transient state rules exist for each analysis rule.

[0049] The computer device can determine whether there is an associated transient state rule for the first alarm information based on the relationship between the analysis rule and the transient state rule. In an embodiment of the present application, paired event judgment is performed based on a service startup event and a service downtime event. That is, if a service performs a service downtime and service startup within a preset event window, it can be considered that the service is restarted. Therefore, if there is an associated transient state rule for the first alarm information, the computer device can determine the event attribute of the first alarm information based on the transient state rule associated with the first alarm information. Among them, the event attribute may include a service downtime event or a service restart event.

[0050] The event attribute of the first alarm information can be determined based on the analysis rule. In the analysis rule list of the transient rule, the association between the analysis rule and the event attribute can be included. For example, the analysis rule can include unique identification information, and the transient rule can specify the analysis rule identification information corresponding to the service startup event and the analysis rule identification information corresponding to the service downtime event.

[0051] If the event attribute of the first alarm information is a service startup event, the computer device may search for the second alarm information within the time window based on the matching rule in the transient state rule.

[0052] In a possible implementation, the computer device may store the generated alarm information in the alarm information list corresponding to the transient state rule. Based on the matching rule, the computer device may search in the alarm information list corresponding to the transient state rule, and the alarm information list corresponding to the transient state rule is used to store the generated historical alarm information, and the historical alarm information is associated with the same transient state rule. Each transient state rule may have a corresponding alarm information list. The alarm information lists of each transient state rule are independent of each other.

[0053] In another possible implementation, in order to reduce the workload of searching, the alarm information list corresponding to the transient state rule to be searched may be alarm information received within a preset time. The preset event may be determined according to the time window.

[0054] In another possible implementation, the alarm information in the alarm information list corresponding to the transient state rule can be arranged in chronological order, so that the computer device can determine the search range of the alarm information list corresponding to the transient state rule based on the generation time of the first alarm information. Searching for the second alarm information in the corresponding range of the alarm information list corresponding to the transient state rule can also reduce the workload of information query.

[0055] Exemplarily, when the matching type is the first matching, the computer device may search for the second alarm information from the alarm information list corresponding to the transient state rule in the order of the generation time of the historical alarm information from the front to the back. When the matching type is the second matching, the computer device may search for the second alarm information from the alarm information list corresponding to the transient state rule in the order of the generation time of the historical alarm information from the back to the front.

[0056] When the computer device finds the target historical alarm information belonging to the service downtime event from the alarm information list corresponding to the short-term rule, it can determine whether the target historical alarm information is in the time window in the rule configuration information; if the target historical alarm information is in the time window, the computer device can determine whether the target historical alarm information is a paired event of the same service as the first alarm information based on the paired event judgment information.

[0057] If the target historical alarm information and the first alarm information are paired events of the same service, the computer device may determine that the target historical alarm information is the second alarm information.

[0058] If the target historical alarm information and the first alarm information are paired events of different services, the computer device may continue to search the alarm information list corresponding to the transient rule until the second alarm information of the paired event belonging to the same service as the first alarm information is found, or the alarm information list corresponding to the transient rule is traversed.

[0059] It should be noted that if the short-term state rule associated with the first alarm information may include one or more short-term state rules, when the short-term state rule associated with the first alarm information may include multiple short-term state rules, for each short-term state rule, the corresponding second alarm information may be searched by the above method until the second alarm information is found or the query has been performed based on all short-term state rules.

[0060] When the first alarm information is not associated with the transient state rule, it indicates that the first alarm information does not use the method in this embodiment to perform false alarm processing. At this time, the first alarm information may not be processed and will be submitted to the user.

[0061] When the first alarm information is associated with a transient state rule, if the event attribute of the first alarm information is a service downtime event, the first alarm information can be stored in the alarm information list corresponding to the transient state rule. The alarm information stored in the alarm information list corresponding to the transient state rule can all be historical alarm information associated with the transient state rule. The historical alarm information in the alarm list can wait for new alarm information to be generated, and then perform paired event recognition with the new alarm information, so as to determine whether it is a false alarm information.

[0062] S102: If the second alarm information exists within the time window, determine whether the current time is the matching cooling time.

[0063] The matching cooling time is the time during which false alarm identification and matching cannot be performed. In one possible implementation, if the service restarts multiple times within the time window, it may indicate that the service may fail. At this time, the false alarm processing may be suspended and the matching cooling time may be entered. During the matching cooling time, false alarm identification may not be performed, thereby avoiding the recognition error of false alarm information. Therefore, after the computer device finds the second alarm information within the time window, it can determine whether the current time belongs to the matching cooling time; if the current time does not belong to the matching cooling time, it can be determined that the first alarm information and the second alarm information are false alarm information. If the current time belongs to the matching cooling time, false alarm judgment may not be performed on the first alarm information and the second alarm information.

[0064] In a possible implementation, since the service restarts multiple times within the time window, it may indicate that the service may fail. Therefore, the maximum number of matches may be set in the above rule configuration information, and the matching cooldown time may be set and updated based on the maximum number of matches.

[0065] When performing false alarm identification, the computer device can count the number of matches of the false alarm information within the current time window; if the number of matches is less than or equal to the maximum number of matches, the first alarm information and the second alarm information are determined to be false alarm information. If the number of matches is greater than the maximum number of matches within the time window, an alarm message can be generated; the alarm message can be an alarm message indicating that there is an error in the corresponding service. At the same time, the current matching cooling time can be updated, and the duration of the matching cooling time is the sum of the duration of generating the alarm information and the preset cooling time.

[0066] For example, the maximum number of matches may be 5. If 6 sets of first alarm information and second alarm information corresponding to the MySQL service are identified within the current time window, it indicates that the current number of matches 6 is greater than the maximum number of matches 5, and an alarm message of a MySQL service failure may be generated. At the same time, the period during which the alarm message of the MySQL service failure is generated and the preset cooling time after the alarm message of the MySQL service failure is generated are both matching cooling time.

[0067] In a possible implementation, the computer device may set a flag bit for indicating whether it is in the matching cooling time. The flag bit may include two values: a first value and a second value. The initial value of the flag bit may be the first value. When the number of matches is greater than the maximum number of matches within the time window, the matching cooling time may be entered. At this time, the flag bit may be modified to the second value. Then, after generating an alarm message indicating that the corresponding service has an error, timing may be performed. When the timing duration reaches the preset cooling time duration, the flag bit may be updated to the second value.

[0068] If there are matching first alarm information and second alarm information in the current time window, the computer device can read the value of the flag bit. If the value of the flag bit is the first value, it indicates that the current time is a non-matching cooling time; if the value of the flag bit is the second value, it indicates that the current time is a matching cooling time.

[0069] S103: If the current time does not match the cooling time, determine that the first alarm information and the second alarm information are false alarm information.

[0070] The event corresponding to the first alarm information and the event corresponding to the second alarm information are paired events of the same service. When there is a paired first alarm information and second alarm information within the time window, it can be considered that the corresponding service has only been restarted and is not an error message. Therefore, it can be considered that the first alarm information and the second alarm information are both false alarm messages.

[0071] S103: Process the false alarm information.

[0072] In a possible implementation, after the false alarm information is identified, the false alarm information can be directly deleted, thereby preventing the user from receiving redundant alarm information and facilitating the user to perform system maintenance. That is, after determining that the first alarm information and the second alarm information are false alarm information, the first alarm information and the second alarm information can be deleted from the alarm information list corresponding to the transient state rule. Thus, the computer device will not report the first alarm information and the second alarm information to the user, thereby avoiding unnecessary maintenance work and preventing the real alarm information from being overwhelmed, so that the user can handle the real alarm information in a timely manner.

[0073] In another possible implementation, the false alarm information may have an identification error. Therefore, after determining the false alarm information, it can also be determined whether the false alarm information is correctly identified. If the false alarm information is correctly identified, the false alarm information can be directly deleted; if the false alarm information is incorrectly identified, the false alarm information can be retained. Among them, the computer device can retain the false alarm information with an identification error as a secondary alarm information, and the priority of the secondary alarm information is lower than that of the normal alarm information. The secondary alarm information may not actively notify the user for processing, but the user may actively view and process it. By grading the alarm information, the user can perform system maintenance according to the severity of the system failure.

[0074] Exemplarily, the computer device may count the number of false alarm messages identified within a preset time and the total number of alarm messages generated. If the number of false alarm messages generated within the preset time is greater than a first value, and the proportion in the alarm messages is greater than a second value, it may be determined that the false alarm message identification is wrong. For example, if the number of alarm messages generated within one minute is 50, if 40 of them are identified as false alarm messages, it may be determined that there is an error in the false alarm message identification, and the false alarm message may be retained as a secondary alarm message.

[0075] In this embodiment, by specifying the rules and time windows for the occurrence of paired events, the alarm information of paired events within the time window can be eliminated to prevent a large number of false alarms. At the same time, the maximum number of matches is set. When the paired event alarm information eliminated within the time window reaches the maximum number of matches, a real alarm message is created, that is, an alarm of the service's own error.

[0076] The method in the embodiment of the present application can delete false alarm information in the alarm information, thereby preventing the user from receiving a large amount of redundant alarm information, thereby avoiding unnecessary maintenance work, and at the same time preventing the real alarm information from being overwhelmed, so that the user can deal with the real alarm information in time.

[0077] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0078] In order to better explain the solution in this application, an example can be used to illustrate the solution in this application. Figure 6 A schematic diagram of a false alarm processing method provided in an embodiment of the present application is shown.

[0079] In execution Figure 6Before the process shown in the figure performs false alarm processing, the computer device can first compile a transient rule. As mentioned above, the transient rule can be composed of three parts: an analysis rule list, paired event judgment information, and rule configuration information. Figure 2-Figure 4 In the configuration interface, users can configure transient rules to provide a basis for judgment in the subsequent identification process. Among them, the analysis rule list is to select all analysis rules that trigger paired events, such as rules that trigger "down" events and rules that trigger "up" events. Paired event judgment information is to determine under what circumstances paired events are satisfied in transient rules. Events corresponding to alarms of different services are generally not considered to belong to paired events, so certain judgment conditions are required to identify true paired events. Rule configuration information can include transient rule name, judgment time window, match type, maximum number of matches, alarm generation strategy, matching cooling time, etc. Among them, the time window is used to determine whether paired time judgment can be performed. When the generation time of two alarm information exceeds the time window, they will no longer be identified as paired events. The maximum match can be the maximum number of matches in the time window. When the maximum number of matches is reached, a service alarm information should be generated. The alarm information generation strategy can be a way to generate alarm information according to the alarm generation strategy when the maximum number of matches is reached in the time window. The matching cooldown time is the time during which matching is not allowed after an alarm is generated when the maximum number of matches is reached within the time window.

[0080] After the transient state rules are configured, the program can be initialized. The program initialization can be used to generate the association between transient state rules and analysis rules. The monitoring and analysis system of the computer equipment can obtain all transient state rules during initialization. For each transient state rule, there is an analysis rule list in the configuration. The analysis rule list of each transient state rule is traversed to obtain which transient state rules exist for each analysis rule. Based on the initial program initialization process, after an alarm is generated, the transient state rule list that can be affected by the alarm information can be quickly found.

[0081] Later, when an alarm occurs, you can Figure 6 The process shown is used to handle false alarms. After the alarm information is generated, it can be determined whether the analysis rule that triggers the alarm is associated with certain transient state rules based on the association relationship (map relationship) between the analysis rule and the transient state rule. If the alarm information does not have an associated transient state rule, the false alarm processing of the alarm information can be skipped directly.

[0082] If the alarm information has an associated transient state rule, the alarm information can be judged in pairs one by one according to the transient state rule associated with the alarm information. If the alarm information belongs to a "down" event, it can be directly matched with the judgment condition of the "down" event in the transient state rule to determine whether it is satisfied. If not, it is skipped; if it is satisfied, it is added to a list TransienceSliceNew. For each transient state rule, a corresponding TransienceSliceNew list can be set.

[0083] If the alarm information belongs to an "up" event, the TransienceSliceNew list of transient state rules can be obtained. If the rule matching type is the latest match, the list is traversed from the back to the front. If the rule matching type is the longest match, the list is matched from the front to the back. For the "down" event to be matched obtained from the list, first determine whether its occurrence time is still within the time window. If it has exceeded the time window, it is directly removed from the list. If it has not exceeded the time window, a conditional judgment is performed, which must meet the conditions of the "up" event itself and the events associated with the "down" event. For example, when a service restarts, the "up" event must satisfy that it is an "up" event itself and that the service where the "up" event occurs is the same service as the service where the "down" event occurs.

[0084] If the "up" event meets the conditions, it is also necessary to determine whether the current time is within the matching cooling time. When the maximum number of matches is reached within the time window and an alarm is generated, the matching cooling time can be the alarm time plus the matching cooling time. Within this time range, no matching is allowed. If it is within the matching cooling time range, it is skipped directly. If it is not within the matching cooling time range, it means that the match is successful. At this time, the "down" event and the "up" event are identified as false alarms, and the false alarm deletion operation is performed.

[0085] After confirming the false alarm information identification, the false alarm deletion operation can be performed. If the transient state rule is matched successfully, it means that the matched "down" event and "up" event are false alarms, and the two alarms are deleted from the alarm table.

[0086] Create a new alarm. When the maximum number of matches is reached within the time window, it means that a large number of "down" and "up" events have occurred in a short period of time. For example, a large number of service restart events have occurred in a short period of time. This is an unreasonable alarm in itself. At this time, you can select an alarm strategy to generate alarm information according to the actual situation, and at the same time, update the matching cooling time.

[0087] This embodiment can identify service shutdown and service startup events within a specified time window. If a service has a service shutdown and startup event simultaneously within the time window, these two events will be eliminated. At the same time, if the service shutdown and startup events are eliminated multiple times within the time window (the number of times can be set), it is considered that there is a problem with the service itself and an alarm is issued. In addition, in the following period of time (hereinafter referred to as the matching cooling time), the service shutdown and startup events will no longer be eliminated. Through the above method, a large amount of false alarm information can be effectively eliminated, and the real alarm information can be analyzed through the false alarm information, so that the analyzed alarm is accurate and there will be no omissions, which can help users better analyze the network environment and prevent the real alarm information from being overwhelmed by the false alarm information.

[0088] The embodiments of the present application can effectively help users eliminate a large number of false alarms through short-term rules, and can also process real alarms through these false alarms, so as to truly discover real alarms and eliminate a large number of false alarms at the same time so that false alarms will not overwhelm the real alarm information.

[0089] Reference Figure 7 , shows a schematic diagram of a false alarm processing device provided in an embodiment of the present application, which may specifically include a search module 71, a determination module 72, a judgment module 73 and a processing module 74, wherein:

[0090] A search module 71, configured to, in response to the generated first alarm information, search for second alarm information matching the first alarm information within a preset time window, wherein the event corresponding to the first alarm information and the event corresponding to the second alarm information are paired events of the same service;

[0091] A determination module 72, configured to determine whether the current time is a matching cooling time if the second alarm information exists within the time window;

[0092] A judgment module 73, configured to determine that the first alarm information and the second alarm information are false alarm information if the current time does not match the cooling time;

[0093] The processing module 73 is used to process the false alarm information.

[0094] In a possible implementation, the search module 71 includes:

[0095] A transient rule determination submodule, used to determine whether the first alarm information has an associated transient rule, wherein the transient rule is a rule used to determine whether the alarm information is a false alarm, and the transient rule includes rule configuration information, and the rule configuration information includes a matching rule;

[0096] a time attribute determination submodule, configured to determine the event attribute of the first alarm information according to the transient state rule associated with the first alarm information if the first alarm information has an associated transient state rule;

[0097] A search submodule is used to search for the second alarm information within the time window based on the matching rule if the event attribute of the first alarm information is a service startup event.

[0098] In a possible implementation, the transient state rule further includes paired event judgment information, and the search submodule includes:

[0099] A searching unit, configured to search, based on the matching rule, in the alarm information list corresponding to the transient rule, wherein the alarm information list corresponding to the transient rule is used to store the generated historical alarm information;

[0100] A time judgment unit, configured to judge whether the target historical alarm information belonging to the service downtime event is within the time window when the target historical alarm information is found in the alarm information list corresponding to the transient state rule;

[0101] a pair determination unit, configured to determine, if the target historical alarm information is within the time window, whether the target historical alarm information and the first alarm information are paired events of the same service according to the paired event determination information;

[0102] a second alarm information determining unit, configured to determine the target historical alarm information as the second alarm information if the target historical alarm information and the first alarm information are paired events of the same service;

[0103] A continuing search unit is used to continue searching the alarm information list corresponding to the transient rule if the target historical alarm information and the first alarm information are not paired events of the same service, until the second alarm information is found or the alarm information list corresponding to the transient rule is traversed.

[0104] In a possible implementation, the search unit includes:

[0105] A first search subunit is used to search the second alarm information in the alarm information list corresponding to the transient state rule in the order of alarm information generation time from front to back if the matching rule is a first match;

[0106] The second search subunit is used for searching the alarm information list corresponding to the transient rule for the second alarm information in the order of the alarm information generation events from the back to the front if the matching rule is the second match.

[0107] In a possible implementation manner, the device further includes:

[0108] An adding module is used to add the first alarm information to the alarm information list corresponding to the transient state rule if the event attribute of the first alarm information is a service downtime event.

[0109] In a possible implementation, the determination module 72 includes:

[0110] A matching cooling time judgment module, used to determine whether the current time belongs to the matching cooling time, wherein the matching cooling time is the time during which the false alarm information judgment is not performed;

[0111] The false alarm information determination submodule is used to determine that the first alarm information and the second alarm information are false alarm information if the current time does not belong to the matching cooling time.

[0112] In a possible implementation, the rule configuration information further includes a maximum number of matches, and the determination module 72 includes:

[0113] A statistical submodule, used to count the number of matches of the false alarm information determined within the time window;

[0114] The false alarm information determination submodule is used to determine that the first alarm information and the second alarm information are false alarm information if the number of matches is less than or equal to the maximum number of matches.

[0115] In a possible implementation, the above device further includes:

[0116] An alarm information generating module, configured to generate an alarm information if the number of matches is greater than the maximum number of matches;

[0117] The matching cooling time updating module is used to update the current matching cooling time, wherein the duration of the matching cooling time is the sum of the duration of generating the alarm information and the preset cooling time.

[0118] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.

[0119] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 8 As shown, the computer device 8 of this embodiment includes: at least one processor 80 ( Figure 8Only one is shown), a memory 81, and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, wherein the processor 80 implements the steps of any of the above-mentioned method embodiments when executing the computer program 82.

[0120] The computer device 8 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud computing device. The computer device may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of the computer device 8 and does not constitute a limitation on the computer device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0121] The processor 80 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, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0122] In some embodiments, the memory 81 may be an internal storage unit of the computer device 8, such as a hard disk or memory of the computer device 8. In other embodiments, the memory 81 may also be an external storage device of the computer device 8, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 8. Further, the memory 81 may also include both an internal storage unit of the computer device 8 and an external storage device. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0123] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0124] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device can implement the steps in the above-mentioned method embodiments when executing the computer device.

[0125] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A false alarm processing method, characterized in that: include: In response to the generated first alarm information, searching for second alarm information matching the first alarm information within a preset time window, where the event corresponding to the first alarm information and the event corresponding to the second alarm information are paired events of the same service; If the second alarm information exists within the time window, determining whether the current time is the matching cooling time; If the current time does not match the cooling time, determining that the first alarm information and the second alarm information are false alarm information; The false alarm information is processed.

2. The method according to claim 1, characterized in that The step of searching, in response to the generated first alarm information, for second alarm information matching the first alarm information within a preset time window comprises: Determine whether the first alarm information has an associated transient rule, where the transient rule is a rule used to determine whether the alarm information is a false alarm, and the transient rule includes rule configuration information, and the rule configuration information includes a matching rule; If the first alarm information has an associated transient state rule, determining the event attribute of the first alarm information according to the transient state rule associated with the first alarm information; If the event attribute of the first alarm information is a service startup event, the second alarm information is searched within the time window based on the matching rule.

3. The method according to claim 2, characterized in that The transient state rule further includes paired event judgment information, and searching for the second alarm information within the time window based on the matching rule includes: Based on the matching rule, searching in the alarm information list corresponding to the transient rule, the alarm information list corresponding to the transient rule is used to store the generated historical alarm information; When the target historical alarm information belonging to the service downtime event is found in the alarm information list corresponding to the transient state rule, determining whether the target historical alarm information is within the time window; If the target historical alarm information is within the time window, determining whether the target historical alarm information and the first alarm information are paired events of the same service according to the paired event judgment information; If the target historical alarm information and the first alarm information are paired events of the same service, determining that the target historical alarm information is the second alarm information; If the target historical alarm information and the first alarm information are not paired events of the same service, the alarm information list corresponding to the transient rule is continuously searched until the second alarm information is found or the alarm information list corresponding to the transient rule is traversed.

4. The method according to claim 3, characterized in that The searching in the alarm information list corresponding to the transient state rule based on the matching rule includes: If the matching rule is a first match, searching for the second alarm information in the alarm information list corresponding to the transient state rule in the order of alarm information generation time from front to back; If the matching rule is the second match, the second alarm information is searched in the alarm information list corresponding to the transient rule in the order of alarm information generation events from the back to the front.

5. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: If the event attribute of the first alarm information is a service downtime event, the first alarm information is added to the alarm information list corresponding to the transient state rule.

6. The method according to claim 1, characterized in that The determining that the first warning information and the second warning information are false warning information includes: Counting the number of matches of the false alarm information within the time window; If the number of matches is less than or equal to the maximum number of matches, it is determined that the first alarm information and the second alarm information are false alarm information.

7. The method according to claim 6, characterized in that The method further comprises: If the number of matches is greater than the maximum number of matches, a warning message is generated; The current matching cooling time is updated, where the duration of the matching cooling time is the sum of the duration of generating the alarm information and the preset cooling time.

8. A false alarm processing device, characterized in that: include: A search module, configured to, in response to the generated first alarm information, search for second alarm information matching the first alarm information within a preset time window, wherein the event corresponding to the first alarm information and the event corresponding to the second alarm information are paired events of the same service; A determination module, configured to determine whether the current time is a matching cooling time if the second alarm information exists within the time window; A judgment module, configured to determine that the first alarm information and the second alarm information are false alarm information if the current time does not match the cooling time; A processing module is used to process the false alarm information.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.