Application anomaly detection method and device

By automatically screening and monitoring target business monitoring objects during business changes, the problem of poor business change risk detection in existing technologies is solved, efficient and accurate anomaly detection is achieved, and labor costs are reduced.

CN115718672BActive Publication Date: 2024-09-24ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211467459.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2024-09-24
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

In the existing technology, the risk detection effect when business changes is poor, and manual configuration of monitoring and alarm rules consumes high labor costs and has limited coverage and effectiveness.

Method used

By determining when the target application service status changes, the affected business monitoring objects are screened out, the monitoring importance value is calculated based on the monitoring attribute information and correlation, the target business monitoring objects are automatically screened, and anomalies are detected to reduce the impact of irrelevant business monitoring. Noise, saving computing resources.

Benefits of technology

It improves the accuracy of anomaly detection during business changes, reduces the cost of manual participation in monitoring configuration, saves labor costs, and improves detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115718672B
    Figure CN115718672B
Patent Text Reader

Abstract

One or more embodiments of the present specification disclose an application anomaly detection method and device. The method includes: when it is determined that the service status of the target application has changed, determine the first business monitoring object affected by the change from the multiple business monitoring objects corresponding to the target application. According to the monitoring attribute information of each business monitoring object and the correlation between each business monitoring object and the first business monitoring object, determine the monitoring importance value of each business monitoring object for this change. According to the monitoring importance value corresponding to each business monitoring object, the target business monitoring object corresponding to the change of the target application is screened out from the multiple business monitoring objects. Based on the monitoring attribute information corresponding to the target business monitoring object, the target application is monitored, a business monitoring result is obtained, and the target application is detected for anomalies based on the business monitoring result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of risk detection technology, and in particular to an application anomaly detection method and device. Background Art

[0002] In daily operation and maintenance, irregular changes in business (such as changes in business logic of code) often bring some unknown impacts and easily cause production accidents. Since business changes usually do not cause abnormalities in system indicators, it is of great application value in business change, emergency and other scenarios to monitor indicators of various business changes, identify the legitimacy of the changes and make targeted treatments.

[0003] In related technologies, indicator monitoring for business changes usually involves manually configuring monitoring associated with business changes and manually configuring risk warning rules. However, manual configuration often requires technical support, which means that technical personnel are required to have a high level of understanding of business changes and applications. Obviously, this method consumes high manpower costs and is limited by coverage and effectiveness, resulting in poor risk detection results under business changes. Summary of the invention

[0004] On the one hand, one or more embodiments of the present specification provide an application anomaly detection method, including: when it is determined that the service state of a target application has changed, a first business monitoring object affected by the change is determined from a plurality of business monitoring objects corresponding to the target application. Based on the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object, a monitoring importance value of each of the business monitoring objects for the change is determined. Based on the monitoring importance values ​​corresponding to each of the business monitoring objects, a target business monitoring object corresponding to the change of the target application is screened out from the plurality of business monitoring objects. Based on the monitoring attribute information corresponding to the target business monitoring object, business monitoring is performed on the target application to obtain a business monitoring result, and anomaly detection is performed on the target application based on the business monitoring result.

[0005] On the other hand, one or more embodiments of the present specification provide an application anomaly detection device, including: a first determination module, which, when determining that the service state of a target application has changed, determines a first business monitoring object affected by the change from a plurality of business monitoring objects corresponding to the target application. A second determination module, which determines the monitoring importance value of each business monitoring object for the change based on the monitoring attribute information of each business monitoring object and the correlation between each business monitoring object and the first business monitoring object. A screening module, which screens out the target business monitoring object corresponding to the change of the target application from the plurality of business monitoring objects based on the monitoring importance values ​​corresponding to each business monitoring object. An anomaly detection module, which performs business monitoring on the target application based on the monitoring attribute information corresponding to the target business monitoring object, obtains a business monitoring result, and performs anomaly detection on the target application based on the business monitoring result.

[0006] On another aspect, one or more embodiments of the present specification provide an application anomaly detection device, including a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor being used to call and execute the computer program from the memory to implement: when it is determined that the service state of the target application has changed, a first business monitoring object affected by the change is determined from a plurality of business monitoring objects corresponding to the target application. Based on the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object, the monitoring importance value of each of the business monitoring objects for the change is determined. Based on the monitoring importance values ​​corresponding to each of the business monitoring objects, the target business monitoring object corresponding to the change of the target application is screened out from the plurality of business monitoring objects. Based on the monitoring attribute information corresponding to the target business monitoring object, business monitoring is performed on the target application to obtain a business monitoring result, and anomaly detection is performed on the target application based on the business monitoring result.

[0007] On another aspect, an embodiment of the present specification provides a storage medium for storing a computer program, and the computer program can be executed by a processor to implement the following process: when it is determined that the service state of a target application has changed, a first business monitoring object affected by the change is determined from a plurality of business monitoring objects corresponding to the target application. Based on the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object, the monitoring importance value of each of the business monitoring objects for the change is determined. Based on the monitoring importance values ​​corresponding to each of the business monitoring objects, the target business monitoring object corresponding to the change of the target application is screened out from the plurality of business monitoring objects. Based on the monitoring attribute information corresponding to the target business monitoring object, business monitoring is performed on the target application to obtain a business monitoring result, and anomaly detection is performed on the target application based on the business monitoring result. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in one or more embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0009] Figure 1 is a schematic flow chart of an application anomaly detection method according to an embodiment of this specification;

[0010] Figure 2 is a schematic application principle diagram of a monitoring object screening model according to an embodiment of this specification;

[0011] Figure 3 is a schematic flow chart of a method for training a monitoring object screening model according to an embodiment of this specification;

[0012] Figure 4 is a schematic principle diagram of a training method for a monitoring object screening model according to an embodiment of this specification;

[0013] Figure 5 is a schematic block diagram of an application anomaly detection device according to an embodiment of this specification;

[0014] Figure 6 It is a schematic block diagram of an application anomaly detection device according to an embodiment of the present specification. DETAILED DESCRIPTION

[0015] One or more embodiments of the present specification provide an application anomaly detection method and device to solve the problem of poor risk detection effect on applications when business changes occur.

[0016] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of one or more embodiments of this specification.

[0017] Figure 1 is a schematic flow chart of an application anomaly detection method according to an embodiment of this specification, such as Figure 1 As shown, the method includes:

[0018] S102: When it is determined that the service state of the target application has changed, a first business monitoring object affected by the change is determined from a plurality of business monitoring objects corresponding to the target application.

[0019] The target application includes multiple services. When at least one of the multiple services changes (such as when the code logic corresponding to the service changes), the service status of the target application will change. For example, if a technician edits the code logic corresponding to a service in the target application, the service status of the target application will change, including the service status of the service whose code logic has changed.

[0020] The multiple business monitoring objects corresponding to (or associated with) the target application refer to multiple monitoring configurations pre-configured for the target application and used to monitor the relevant businesses of the target application. For example, if a business related to the target application is "ticket purchase", one or more business monitoring objects may be pre-configured for the "ticket purchase" business, and the one or more business monitoring objects are used to monitor the service status of the "ticket purchase" business. Optionally, the same business may be configured with one or more business monitoring objects, and the same business monitoring object can be used to monitor one or more businesses of the target application.

[0021] S104: Determine the monitoring importance value of each business monitoring object for the current change according to the monitoring attribute information of each business monitoring object and the correlation between each business monitoring object and the first business monitoring object.

[0022] Among them, the correlation between the business monitoring object and the first business monitoring object may include at least one of the following: whether the business monitoring object is the first business monitoring object, whether the business monitoring object is related to the first business monitoring object, and whether the business monitoring object is related to the business corresponding to the first business monitoring object.

[0023] The monitoring importance value of the business monitoring object for this change reflects the monitoring importance of the business monitoring object for this change. The higher the monitoring importance value, the more the business corresponding to the business monitoring object needs to be detected for anomalies (or risk detection) in this change. In other words, based on this change, the service status of the business corresponding to the business monitoring object is likely to change accordingly, such as abnormal business indicator timing.

[0024] Each business monitoring object may correspond to the same or different monitoring attributes. For the same or different monitoring attributes, each business monitoring object corresponds to its own monitoring attribute information. For example, the monitoring attributes include at least one of monitoring associated applications, monitoring associated services, related log paths, whether alarms are configured, whether alarms are turned on, etc. Assume that the monitoring attribute information corresponding to one of the business monitoring objects includes: the monitoring associated application is application A, the monitoring associated service is the service "ticket purchase" in application A, the related log path is "cache_log / squid / logs / cache.log", the alarm has been configured, and the alarm has been turned on. The related log path "cache_log / squid / logs / cache.log" refers to the storage path of the logs related to application A. This is just an example. The specific related log path can be any one or more paths.

[0025] S106 , selecting a target business monitoring object corresponding to the current change of the target application from a plurality of business monitoring objects according to the monitoring importance values ​​corresponding to the business monitoring objects.

[0026] Optionally, target business monitoring objects that meet preset monitoring conditions may be screened out from multiple business monitoring objects according to the monitoring importance values ​​corresponding to the business monitoring objects, wherein the preset monitoring conditions may include: the monitoring importance value is greater than or equal to a preset threshold.

[0027] S108, based on the monitoring attribute information corresponding to the target business monitoring object, perform business monitoring on the target application, obtain a business monitoring result, and perform anomaly detection on the target application according to the business monitoring result.

[0028] Among them, the business monitoring results may include a business indicator time series, and the business indicator time series is obtained by combining the monitoring data corresponding to at least one business indicator. For example, for the business "ticket purchase", it includes two business indicators: the number of active users per day and the daily transaction volume. When the business "ticket purchase" is monitored, the two business indicators of the number of active users per day and the daily transaction volume can be monitored to obtain the business indicator time series corresponding to the business "ticket purchase".

[0029] In this embodiment, the monitoring attributes corresponding to the service monitoring object associated with the target application may include at least one of the following:

[0030] a. Monitoring information, such as dimension list, indicator list, and monitoring value list;

[0031] b. Basic information, such as the identification information, type, last edit time, and creation time of the business monitoring object;

[0032] c. Related information, such as related applications, related log paths, whether the logs are configured for tracking, and whether the logs are configured for identification information;

[0033] d. Alarm-related information; such as whether the alarm is configured, whether the alarm is turned on, the time of the most recent alarm, and the response time of the most recent alarm;

[0034] e. Usage information statistics; for example, single-page click rate in the last 7 days, visit rate in the last 7 days.

[0035] By adopting the technical scheme of one or more embodiments of the present specification, when it is determined that the service state of the target application has changed, by determining the first business monitoring object affected by the change, and according to the monitoring attribute information of each business monitoring object and the correlation between each business monitoring object and the first business monitoring object, the monitoring importance value of each business monitoring object for the change is determined, and then according to the monitoring importance value corresponding to each business monitoring object, the target business monitoring object corresponding to the change of the target application is screened out from multiple business monitoring objects, and the target application is business-monitored based on the monitoring attribute information corresponding to the target business monitoring object to obtain the business monitoring result, and the target application is detected for anomalies according to the business monitoring result. It can be seen that the technical scheme can associate and filter multiple business monitoring objects of the target application based on the first business monitoring object affected by the change when the service state of the target application changes, so as to screen out the target business monitoring object with a higher monitoring importance for the change, that is, focus on monitoring the business related to the change, which not only reduces the noise caused by the business monitoring irrelevant to the change, saves computing resources, but also detects anomalies of the target application by monitoring the business related to the change, making the anomaly detection of the target application more accurate. In addition, in the process of screening target business monitoring objects, there is no need for manual participation in monitoring configuration, thus saving labor costs.

[0036] In one embodiment, when determining the first business monitoring object affected by the change from multiple business monitoring objects corresponding to the target application, the first business feature affected by the change can be determined from multiple business features corresponding to the target application. Then, according to the pre-configured association relationship between each business feature and the business monitoring object, the first business monitoring object associated with the first business feature is determined.

[0037] Among them, the multiple business features corresponding to the target application may include: log path, RPC (Remote Procedure Call) interface, etc. When determining the first business monitoring object associated with the first business feature, it can be determined based on different business features. The log path is used to record the log data generated during the service process of the target application, and the RPC interface is used to transmit the data generated during the service process of the target application.

[0038] Optionally, the first business feature is a first log path. The target application corresponds to multiple log paths, and the association relationship between each log path and the business monitoring object can be pre-configured. In the log paths and business monitoring objects with an association relationship, the log path and the business monitoring object are associated with the same business. For example, the log path is used to record the log data generated by business A of the target application during the service process, and the business monitoring object associated with the log path is the business monitoring object corresponding to business A. When determining the first business monitoring object associated with the first business feature, the business monitoring object associated with the first log path can be determined as the first business monitoring object based on the association relationship between the pre-configured log paths and business monitoring objects.

[0039] Optionally, the first business feature is a first RPC interface. The target application corresponds to multiple RPC interfaces, and the association relationship between each RPC interface and the business monitoring object can be pre-configured. Among the RPC interfaces and business monitoring objects with an association relationship, the RPC interface and the business monitoring object are associated with the same business. For example, the RPC interface is used to transmit the data generated by business A of the target application during the service process, and the business monitoring object associated with the RPC interface is the business monitoring object corresponding to business A. When determining the first business monitoring object associated with the first business feature, the business monitoring object associated with the first RPC interface can be determined as the first business monitoring object based on the association relationship between each pre-configured RPC interface and the business monitoring object. If the business monitoring method is to use the RPC interface to call and collect the business data in the target application, the method provided in this embodiment can be adopted, that is, directly associated with the first business monitoring object corresponding to the first RPC interface.

[0040] Alternatively, the association relationship between each RPC interface and the business service information, as well as the association relationship between each business service information and the business monitoring object can be pre-configured. The business service information includes at least one of the service name and method name corresponding to the business. When determining the first business monitoring object associated with the first business feature, the first business service information associated with the first RPC interface can be determined based on the association relationship between each pre-configured RPC interface and the business service information, and then the business monitoring object associated with the first business service information is determined to be the first business monitoring object based on the association relationship between the pre-configured business service information and the business monitoring object. If business monitoring is performed in the form of a log, it can be performed by the method provided in this embodiment, that is, first associated with the business service information corresponding to the first RPC interface (such as service name, method name), and then associated with the corresponding first business monitoring object.

[0041] In one embodiment, according to the monitoring attribute information of each business monitoring object and the correlation between each business monitoring object and the first business monitoring object, the monitoring importance value of each business monitoring object for this change can be determined as follows: Figure 2 The process shown:

[0042] First, the monitoring attribute information corresponding to each business monitoring object is input into a pre-trained monitoring object screening model to obtain the weight value corresponding to each monitoring attribute corresponding to multiple business monitoring objects, wherein each business monitoring object has its own first label information, and the first label information is used to identify the correlation between the business monitoring object and the first business monitoring object.

[0043] Among them, each business monitoring object may correspond to the same or different monitoring attributes. For the same or different monitoring attributes, each business monitoring object corresponds to its own monitoring attribute information. For example, the monitoring attributes include at least one of monitoring associated applications, monitoring associated services, related log paths, whether alarms are configured, whether alarms are turned on, etc. Assume that the monitoring attribute information corresponding to one of the business monitoring objects includes: the monitoring associated application is application A, the monitoring associated service is the service "ticket purchase" in application A, the related log path is "cache_log / squid / logs / cache.log", the alarm has been configured, and the alarm has been turned on. The related log path "cache_log / squid / logs / cache.log" refers to the storage path of the logs related to application A. This is just an example. The specific related log path can be any one or more paths.

[0044] The correlation between the business monitoring object and the first business monitoring object may include at least one of the following: whether the business monitoring object is the first business monitoring object, whether the business monitoring object is related to the first business monitoring object, and whether the business monitoring object is related to the business corresponding to the first business monitoring object.

[0045] Secondly, according to the weight value corresponding to each monitoring attribute and the monitoring attribute information corresponding to each business monitoring object, the monitoring importance value corresponding to each business monitoring object is determined.

[0046] In this embodiment, when calculating the monitoring importance value corresponding to the business monitoring object, the monitoring attribute information corresponding to the business monitoring object can be quantified, so that the quantified monitoring attribute information and the weight value of the monitoring attribute can be weighted and summed to obtain the monitoring importance value corresponding to the business monitoring object.

[0047] Optionally, the same monitoring attribute only corresponds to two types of monitoring attribute information, and the monitoring attribute information can be replaced by 0 and 1, so as to realize the numericalization of the monitoring attribute information. For example, the monitoring attribute "whether to configure alarm" corresponds to only two types of monitoring attribute information: yes and no. Therefore, "0" can represent that the alarm is not configured (ie, "no"), and "1" can represent that the alarm is configured (ie, "yes").

[0048] Optionally, if the same monitoring attribute corresponds to at least three types of monitoring attribute information, corresponding values ​​can be set in advance for different monitoring attribute information to realize the digitization of the monitoring attribute information. For example, the monitoring attribute information corresponding to the monitoring attribute "associated business" includes three types of business A, business B and business C, and corresponding values ​​can be set in advance for business A, business B and business C, respectively, such as the value corresponding to business A is 1, the value corresponding to business B is 2, and the value corresponding to business C is 3. When setting corresponding values ​​for the monitoring attribute information, different values ​​can be set for different monitoring attribute information in a random value manner, a value increasing manner, or a value decreasing manner. The corresponding values ​​can also be set according to the importance corresponding to each monitoring attribute information. For example, the higher the importance corresponding to the monitoring attribute information, the larger the corresponding value; conversely, the lower the importance corresponding to the monitoring attribute information, the smaller the corresponding value.

[0049] In one embodiment, the training method of the monitoring object screening model may include: Figure 3 Steps S302-S304 shown:

[0050] S302, obtaining sample monitoring attribute information corresponding to multiple sample business monitoring objects associated with the sample application, and second label information corresponding to each sample business monitoring object; the second label information is used to identify: the correlation between the sample business monitoring object and the business monitoring object affected by the change, and the sample monitoring importance of the sample business monitoring object.

[0051] Among them, each sample business monitoring object may correspond to the same or different sample monitoring attributes. For the same or different sample monitoring attributes, each sample business monitoring object corresponds to its own sample monitoring attribute information. For example, the monitoring attributes include at least one of monitoring associated applications, monitoring associated services, related log paths, whether alarms are configured, whether alarms are turned on, etc. Assume that the monitoring attribute information corresponding to one of the business monitoring objects includes: the monitoring associated application is application A, the monitoring associated service is the service "ticket purchase" in application A, the related log path is "cache_log / squid / logs / cache.log", the alarm has been configured, and the alarm has been turned on. The related log path "cache_log / squid / logs / cache.log" refers to the storage path of the logs related to application A. This is just an example. The specific related log path can be any one or more paths.

[0052] Sample business monitoring objects can be obtained in the following two ways:

[0053] Method 1: Manually collect sample business monitoring objects. Specifically, after the application is changed, the business monitoring objects of the application are collected as sample business monitoring objects, including business monitoring objects affected by the change and business monitoring objects not affected by the change. Such sample business monitoring objects need to be manually labeled, that is, the corresponding second label information is added.

[0054] Method 2: Automatically collect sample business monitoring objects. Specifically, after a change occurs in an application, the business monitoring objects of the application are automatically intercepted as sample business monitoring objects, including business monitoring objects affected by the change and business monitoring objects not affected by the change. Before intercepting the business monitoring objects of the application, an effectiveness evaluation can be performed on each business monitoring object of the application, and the results of the effectiveness evaluation include effective monitoring and invalid monitoring. Effective monitoring means that the business monitoring corresponding to the business monitoring object is related to the application change, that is, the application change may affect the change of the business indicators of the business. Invalid monitoring means that the business monitoring corresponding to the business monitoring object is not related to the application change, that is, the application change will not affect the change of the business indicators of the business. The label information of the sample business monitoring object can be determined based on the evaluation results of the effectiveness evaluation, and the label information can be added to the corresponding sample business monitoring object. Specifically, if the evaluation result is effective monitoring, the second label information of the corresponding sample business monitoring object includes: the sample business monitoring object is related to the business monitoring object affected by the change, and the sample monitoring importance of the sample business monitoring object is important (or "1"); if the evaluation result is invalid monitoring, the second label information of the corresponding sample business monitoring object includes: the sample business monitoring object is not related to the business monitoring object affected by the change, and the sample monitoring importance of the sample business monitoring object is unimportant (or "0"). Since the label information can be determined based on the evaluation result of the effectiveness evaluation, the automatically collected sample business monitoring objects do not need to be manually labeled.

[0055] In the second tag information, the correlation between the sample business monitoring object and the business monitoring object affected by the change can be identified by 0 and 1. For example, 0 indicates that the sample business monitoring object has no correlation with the business monitoring object affected by the change, and 1 indicates that the sample business monitoring object has a correlation with the business monitoring object affected by the change. The correlation between the sample business monitoring object and the business monitoring object affected by the change may include any of the following situations: the sample business monitoring object belongs to the business monitoring object affected by the change, the sample business monitoring object is related to the business monitoring object affected by the change, and the sample business monitoring object is related to the business corresponding to the business monitoring object affected by the change.

[0056] The sample monitoring importance of the sample business monitoring object can be identified by 0 and 1. For example, 0 indicates that the sample monitoring importance of the sample business monitoring object is "unimportant", and 1 indicates that the sample monitoring importance of the sample business monitoring object is "important". Of course, the sample monitoring importance is not limited to important and unimportant, and it can also be more types, such as high importance, medium importance, low importance, etc.

[0057] When the second tag information is used to indicate the correlation between the sample business monitoring object and the business monitoring object affected by the change and the sample monitoring importance of the sample business monitoring object, the correlation and the sample monitoring importance should be distinguished by different identification methods. For example, A0 and A1 are used to identify the correlation between the sample business monitoring object and the business monitoring object affected by the change, and B0 and B1 are used to identify the sample monitoring importance of the sample business monitoring object.

[0058] S304: Input the sample monitoring attribute information and the second label information corresponding to the plurality of sample business monitoring objects into the monitoring object screening model to be trained for iterative training to obtain the trained monitoring object screening model.

[0059] Figure 4 It is a schematic principle diagram of a training monitoring object screening model according to an embodiment of this specification.

[0060] like Figure 4 As shown, when training the monitoring object screening model, the sample monitoring attribute information corresponding to multiple sample business monitoring objects and their respective corresponding second label information are first input into the monitoring object screening model to be trained to determine the first monitoring importance corresponding to each sample business monitoring object.

[0061] Among them, the first monitoring importance refers to the monitoring importance corresponding to the sample business monitoring object determined based on the current model parameters. There are many ways to characterize the first monitoring importance. For example, the first monitoring importance includes important and unimportant, or the first monitoring importance includes high importance, low importance, and medium importance. Alternatively, the first monitoring importance includes three score ranges of 0-30, 31-70, and 71-100. The smaller the value of the score range, the lower the first monitoring importance, and the larger the value of the score range, the higher the first monitoring importance. The second label information includes: the correlation between the sample business monitoring object and the business monitoring object affected by the change, and the sample monitoring importance of the sample business monitoring object.

[0062] Secondly, each first monitoring importance level is compared with the corresponding sample monitoring importance level to determine whether the first monitoring importance level and the corresponding sample monitoring importance level match.

[0063] Among them, the method for determining whether the first monitoring importance and the corresponding sample monitoring importance match is related to the representation method of the monitoring importance. Taking the monitoring importance including important and unimportant as an example, when the first monitoring importance and the corresponding sample monitoring importance are the same (such as both are important, or both are unimportant), it means that the first monitoring importance and the corresponding sample monitoring importance match; when the first monitoring importance and the corresponding sample monitoring importance are different (one is important and the other is unimportant), it means that the first monitoring importance and the corresponding sample monitoring importance do not match.

[0064] Then, according to the matching result of whether the first monitoring importance level matches the corresponding sample monitoring importance level, it is determined whether to continue the iterative training or to stop the iterative training.

[0065] Specifically, if the first monitoring importance and the corresponding sample monitoring importance do not match, the model parameters of the monitoring object screening model to be trained are adjusted, and the first monitoring importance corresponding to each sample business monitoring object is determined based on the adjusted model parameters, wherein the model parameters include the weight value of each sample monitoring attribute corresponding to multiple sample business monitoring objects. If the first monitoring importance and the corresponding sample monitoring importance match, the iteration is stopped to obtain the trained monitoring object screening model.

[0066] In this embodiment, the first monitoring importance can be determined based on the first monitoring importance value. The mapping relationship between the first monitoring importance value range and the first monitoring importance can be preset. For example, when the first monitoring importance value range is 0-40, the corresponding first monitoring importance is unimportant, and when the first monitoring importance value range is 41-100, the corresponding first monitoring importance is important. Therefore, when the sample monitoring attribute information corresponding to multiple sample business monitoring objects and the respective corresponding second label information are input into the monitoring object screening model to be trained to determine the first monitoring importance corresponding to each sample business monitoring object, for any sample business monitoring object, the first monitoring importance value of the sample business monitoring object can be calculated based on the current model parameters and the monitoring attribute information corresponding to the sample business monitoring object. Specifically, the current model parameters include the weight value of each sample monitoring attribute corresponding to the sample business monitoring object, and the weight value of each sample monitoring attribute and the corresponding sample monitoring attribute information can be weighted and calculated to obtain the first monitoring importance value corresponding to the sample business monitoring object. Among them, when performing weighted summation calculation, each sample monitoring attribute information can be digitized in advance, so that the digitized sample monitoring attribute information and the weight value of the sample monitoring attribute can be weighted summed up to obtain the monitoring importance value corresponding to the business monitoring object.

[0067] Optionally, the same sample monitoring attribute only corresponds to two cases of sample monitoring attribute information, and the sample monitoring attribute information can be replaced by 0 and 1, so as to realize the numericalization of the sample monitoring attribute information. For example, the sample monitoring attribute "whether to configure alarm" corresponds to only two cases of sample monitoring attribute information: yes and no. Therefore, "0" can represent that the alarm is not configured (ie, "no"), and "1" can represent that the alarm is configured (ie, "yes").

[0068] Optionally, if the same sample monitoring attribute corresponds to at least three cases of sample monitoring attribute information, corresponding values ​​can be set in advance for different sample monitoring attribute information to realize the digitization of the sample monitoring attribute information. For example, the sample monitoring attribute information corresponding to the sample monitoring attribute "associated business" includes three types of business A, business B and business C, and corresponding values ​​can be set in advance for business A, business B and business C, respectively, such as the value corresponding to business A is 1, the value corresponding to business B is 2, and the value corresponding to business C is 3. When setting corresponding values ​​for monitoring attribute information, different values ​​can be set for different sample monitoring attribute information in a random value manner, a value increasing manner, or a value decreasing manner. Corresponding values ​​can also be set according to the importance corresponding to each sample monitoring attribute information. For example, the higher the importance corresponding to the sample monitoring attribute information, the larger the corresponding value; conversely, the lower the importance corresponding to the sample monitoring attribute information, the smaller the corresponding value.

[0069] After determining the first monitoring importance corresponding to each sample business monitoring object, if the first monitoring importance and the corresponding sample monitoring importance do not match, adjust the weight value of each sample monitoring attribute corresponding to multiple sample business monitoring objects, and determine the first monitoring importance corresponding to the sample business monitoring object again based on the adjusted weight value until the first monitoring importance corresponding to the sample business monitoring object matches its corresponding sample monitoring importance.

[0070] In this embodiment, the trained monitoring object screening model is used to determine the weight value of each monitoring attribute corresponding to the business monitoring object associated with the target application. That is, the input data of the monitoring object screening model is the monitoring attribute information of the business monitoring object associated with the target application, as well as the correlation between each business monitoring object and the first business monitoring object affected by this change, and the output data of the monitoring object screening model is the weight value of each monitoring attribute corresponding to the business monitoring object associated with the target application. Among them, the method for determining the first business monitoring object affected by this change has been explained in the above embodiment and will not be repeated here.

[0071] In one embodiment, based on the monitoring attribute information corresponding to the target business monitoring object, business monitoring is performed on the target application to obtain the business monitoring results corresponding to the target business monitoring object. Afterwards, the effectiveness of this business monitoring can be evaluated based on the business monitoring results corresponding to the target business monitoring object to obtain the evaluation results; and then based on the evaluation results, the monitoring object screening model is optimized.

[0072] Among them, the evaluation results of the effectiveness evaluation include effective monitoring and invalid monitoring. Effective monitoring means that the business monitoring corresponding to the business monitoring object is related to the application change, that is, the application change may affect the change of the business indicators of the business. Invalid monitoring means that the business monitoring corresponding to the business monitoring object is not related to the application change, that is, the application change will not affect the change of the business indicators of the business. If based on the business monitoring result corresponding to the target business monitoring object, it is determined that this business monitoring is effective monitoring, then it means that the target business monitoring object screened out based on the monitoring object screening model is correct; conversely, if based on the business monitoring result corresponding to the target business monitoring object, it is determined that this business monitoring is invalid monitoring, then it means that the target business monitoring object screened out based on the monitoring object screening model is wrong, and the monitoring object screening model needs to be optimized. An optional optimization method is to use the target business monitoring object as a sample business monitoring object, and add correct label information to the target business monitoring object, including the correlation between the target business monitoring object and the first business monitoring object affected this time and the monitoring importance of the target business monitoring object, and then optimize the model based on the new sample business monitoring object. Among them, since the current business monitoring corresponding to the target business monitoring object is invalid monitoring, the monitoring importance of the target business monitoring object in the label information corresponding to the target business monitoring object is not important.

[0073] In one embodiment, the target application is running in multiple electronic devices, and the multiple electronic devices are located in the same network environment. When it is determined that the service status of the target application in at least one electronic device has changed, the change batches corresponding to the multiple electronic devices are determined according to the device status information corresponding to each electronic device and / or the preset batch change rule, and then, according to the change batches corresponding to the multiple electronic devices, the target application running in each electronic device is detected for abnormality in batches.

[0074] Among them, the device status information includes the device operation status and / or the service status of the target application. The device operation status information is such as: the device is currently running, the device is currently stopped. The service status of the target application is such as: whether the target application is currently running in the electronic device. If the change batches corresponding to multiple electronic devices are determined according to the device status information corresponding to each electronic device, an optional determination method is: if the electronic device is currently running, the electronic device delays the change, and if the electronic device is currently stopped, the electronic device is changed first. That is, the change batch of the electronic device that stops running is earlier than the electronic device that is running. Thus, it can be avoided that the electronic device is interrupted or the operation error occurs when the running electronic device is changed. Another optional determination method is: if the target application on the electronic device is currently running, the electronic device delays the change, and if the target application on the electronic device is not currently running, the electronic device is changed first. That is, the change batch of the electronic device that is not running the target application is earlier than the electronic device that is running the target application. Thus, it can be avoided that the target application is interrupted or the operation error occurs when the electronic device that is running the target application is changed.

[0075] The preset batch change rule may be any of the following: randomly selecting N electronic devices for change each time (N is an integer greater than or equal to 1), changing multiple electronic devices in sequence according to a preset change order corresponding to the multiple electronic devices, and the like.

[0076] In this embodiment, in view of the situation that the target application runs in multiple electronic devices and the multiple electronic devices are located in the same network environment, it is necessary to perform batch changes on the multiple electronic devices. This embodiment can determine the change batches corresponding to the multiple electronic devices according to the device status information corresponding to each electronic device and / or the preset batch change rules, so that the change batches of the multiple electronic devices can be clear, avoiding the situation that the operation of the electronic devices and the target application are easily interrupted when all electronic devices are changed at one time, thereby achieving the effect of improving the change efficiency based on the batch change.

[0077] In one embodiment, based on the monitoring attribute information corresponding to the target business monitoring object, business monitoring is performed on the target application to obtain the business monitoring result, and when anomaly detection is performed on the target application according to the business monitoring result, the following actions may be performed:

[0078] First, based on the monitoring attribute information corresponding to the target business monitoring object, the first business indicator time series of the target business in the target application is collected.

[0079] Among them, the target business is a business related to the target business monitoring object, and the business monitoring result includes the first business indicator time series. The business indicator time series is obtained by combining the monitoring data corresponding to at least one business indicator. For example, for the business "ticket purchase", it includes two business indicators: the number of active users per day and the daily transaction volume. When the business "ticket purchase" is monitored, the two business indicators of the number of active users per day and the daily transaction volume can be monitored to obtain the business indicator time series corresponding to the business "ticket purchase".

[0080] Secondly, the first business indicator timing is compared with the second business indicator timing of the target business before the change. If the comparison result is that the timing difference between the first business indicator timing and the second business indicator timing is less than or equal to the preset timing difference threshold, it is determined that there is no abnormality in the target application; if the comparison result is that the timing difference is greater than the preset information difference threshold, it is determined that there is an abnormality in the target application.

[0081] The timing difference between the first business indicator timing series and the second business indicator timing series can be determined by calculating the timing distribution difference between the first business indicator timing series and the second business indicator timing series, and / or by timing waveform analysis between the first business indicator timing series and the second business indicator timing series.

[0082] In this embodiment, since there may be timing fluctuations in the business indicator timing before and after the change, resulting in timing differences before and after the change, the business indicator timings of the target business before and after the change are compared, and then it is judged whether there is an abnormality in the target business based on the difference between the business indicator timings before and after the change, so that the method of judging whether an abnormality occurs in the target business after this change is simpler and more efficient.

[0083] In one embodiment, the target application runs in multiple electronic devices, which are located in the same network environment. The multiple electronic devices include: a first electronic device whose service status of the target application changes, and a second electronic device whose service status of the target application does not change.

[0084] After comparing the first business indicator timing with the second business indicator timing of the target business before this change, if the comparison result is that the timing difference between the first business indicator timing and the second business indicator timing is greater than the preset information difference threshold, the first business indicator timing corresponding to the first electronic device and the third business indicator timing corresponding to the second electronic device can be obtained, and the first business indicator timing and the third business indicator timing are compared. If there is a timing difference between the first business indicator timing and the third business indicator timing, the historical global business indicator timing corresponding to multiple electronic devices is further obtained to determine whether the first business indicator timing meets the timing rules corresponding to the historical global business indicator timing. If it meets, it is determined that the target application is abnormal.

[0085] In this embodiment, by comparing the first business indicator timing corresponding to the first electronic device with the third business indicator timing corresponding to the second electronic device, it is possible to determine whether the business indicator timing of the electronic device whose service state of the target application has changed has changed compared to the electronic device whose service state of the target application has not changed. If changed, the electronic device whose service state of the target application has changed (i.e., the first electronic device) is further compared with the global business indicator timing of all electronic devices to determine whether the first business indicator timing conforms to the timing rule corresponding to the historical global business indicator timing, so as to achieve the purpose of noise reduction (i.e., eliminating the abnormal detection error) of the business indicator timing corresponding to the single electronic device by referring to the stability and periodicity of the global indicator. In addition, since the business indicator timing corresponding to the single electronic device may be affected by the flow cutting, current limiting, etc. during the change period, resulting in abnormal fluctuations in the business indicator timing corresponding to the single electronic device, by comparing the business indicator timing corresponding to the single electronic device with the global business indicator timing, it is also possible to eliminate the situation where such timing fluctuations are mistakenly regarded as abnormalities caused by changes, thereby improving the accuracy of abnormal detection.

[0086] In summary, specific embodiments of the present subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recorded in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.

[0087] The above is an application anomaly detection method provided by one or more embodiments of this specification. Based on the same idea, one or more embodiments of this specification also provide an application anomaly detection method.

[0088] Figure 5 is a schematic block diagram of an application anomaly detection device according to an embodiment of this specification, such as Figure 5 As shown, the device comprises:

[0089] The first determining module 51, when determining that the service state of the target application has changed, determines a first business monitoring object affected by the change from a plurality of business monitoring objects corresponding to the target application;

[0090] A second determination module 52 determines the monitoring importance value of each of the business monitoring objects for this change according to the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object;

[0091] A screening module 53, screening out a target business monitoring object corresponding to the current change of the target application from the multiple business monitoring objects according to the monitoring importance values ​​corresponding to the business monitoring objects;

[0092] The anomaly detection module 54 performs business monitoring on the target application based on the monitoring attribute information corresponding to the target business monitoring object, obtains a business monitoring result, and performs anomaly detection on the target application according to the business monitoring result.

[0093] In one embodiment, the first determining module 51 includes:

[0094] A first determining unit, determining a first service feature affected by the change from a plurality of service features corresponding to the target application;

[0095] The second determining unit determines the first service monitoring object associated with the first service feature according to the pre-configured association relationship between each of the service features and the service monitoring object.

[0096] In one embodiment, the first service feature includes a first log path;

[0097] The second determination unit determines, based on the association relationship between the pre-configured log paths and the business monitoring objects, that the business monitoring object associated with the first log path is the first business monitoring object; the target application corresponds to a plurality of the log paths.

[0098] In one embodiment, the first service feature includes a first RPC interface;

[0099] The second determining unit:

[0100] According to the pre-configured association relationship between each remote procedure call RPC interface and the business monitoring object, determining the business monitoring object associated with the first RPC interface as the first business monitoring object; the target application corresponds to a plurality of the RPC interfaces;

[0101] or,

[0102] Based on the association relationship between the pre-configured RPC interfaces and the business service information, the first business service information associated with the first RPC interface is determined; based on the association relationship between the pre-configured business service information and the business monitoring object, the business monitoring object associated with the first business service information is determined to be the first business monitoring object.

[0103] In one embodiment, the screening module 53 includes:

[0104] A screening unit is provided for screening the target business monitoring object satisfying a preset monitoring condition from the multiple business monitoring objects according to the monitoring importance values ​​corresponding to the respective business monitoring objects; the preset monitoring condition includes: the monitoring importance value is greater than or equal to a preset threshold value.

[0105] In one embodiment, the second determining module 52 includes:

[0106] A model input unit inputs the monitoring attribute information corresponding to each of the business monitoring objects into a pre-trained monitoring object screening model to obtain a weight value corresponding to each monitoring attribute corresponding to the multiple business monitoring objects; wherein each of the business monitoring objects corresponds to its own first label information, and the first label information is used to identify the correlation between the business monitoring object and the first business monitoring object;

[0107] The third determination unit determines the monitoring importance value corresponding to each of the business monitoring objects according to the weight value corresponding to each of the monitoring attributes and the monitoring attribute information corresponding to each of the business monitoring objects.

[0108] In one embodiment, the apparatus further comprises:

[0109] An acquisition module is provided to acquire sample monitoring attribute information corresponding to a plurality of sample business monitoring objects associated with a sample application, and second label information corresponding to each of the sample business monitoring objects; the second label information is used to identify: the correlation between the sample business monitoring object and the business monitoring object affected by the change, and the sample monitoring importance of the sample business monitoring object;

[0110] The model training module inputs the sample monitoring attribute information corresponding to the multiple sample business monitoring objects and the second label information into the monitoring object screening model to be trained for iterative training to obtain the trained monitoring object screening model.

[0111] In one embodiment, the model training module includes:

[0112] A fourth determination unit, inputting the monitoring attribute information corresponding to the plurality of sample business monitoring objects and the second label information into the monitoring object screening model to be trained to determine the first monitoring importance corresponding to each of the sample business monitoring objects;

[0113] A first comparison unit compares each of the first monitoring importance levels with the corresponding sample monitoring importance levels to determine whether the first monitoring importance levels and the corresponding sample monitoring importance levels match;

[0114] Iteration unit, if not, adjust the model parameters of the monitoring object screening model to be trained, and determine the first monitoring importance corresponding to each of the sample business monitoring objects based on the adjusted model parameters; the model parameters include the weight value of each sample monitoring attribute corresponding to the multiple sample business monitoring objects; if so, stop the iteration to obtain the trained monitoring object screening model.

[0115] In one embodiment, the apparatus further comprises:

[0116] An evaluation module, which performs service monitoring on the target application based on the monitoring attribute information corresponding to the target service monitoring object, and after obtaining the service monitoring result, performs effectiveness evaluation on this service monitoring according to the service monitoring result to obtain an evaluation result;

[0117] An optimization module optimizes the monitoring object screening model according to the evaluation results.

[0118] In one embodiment, the target application runs on multiple electronic devices; the multiple electronic devices are located in the same network environment;

[0119] The device also includes:

[0120] A third determination module, when determining that the service status of the target application in at least one of the electronic devices has changed, determines the change batches corresponding to the multiple electronic devices according to the device status information corresponding to each of the electronic devices and / or a preset batch change rule; the device status information includes the device operation status and / or the service status of the target application;

[0121] The batch detection module performs abnormality detection on the target application running in each of the electronic devices in batches according to the change batches.

[0122] In one embodiment, the anomaly detection module 54 includes:

[0123] A collection unit, based on the monitoring attribute information corresponding to the target business monitoring object, collects a first business indicator time series of the target business in the target application; the target business is a business related to the target business monitoring object; the business monitoring result includes the first business indicator time series;

[0124] The second comparison unit compares the first business indicator timing with the second business indicator timing of the target business before the change; if the comparison result is that the timing difference between the first business indicator timing and the second business indicator timing is less than or equal to the preset timing difference threshold, it is determined that there is no abnormality in the target application; if the comparison result is that the timing difference is greater than the preset information difference threshold, it is determined that there is an abnormality in the target application.

[0125] In one embodiment, the plurality of electronic devices include: a first electronic device whose service state of the target application is changed, and a second electronic device whose service state of the target application is not changed;

[0126] The second comparison unit:

[0127] If the comparison result is that the timing difference is greater than the preset information difference threshold, obtaining the first service indicator timing corresponding to the first electronic device and the third service indicator timing corresponding to the second electronic device;

[0128] If there is a timing difference between the first service indicator timing and the third service indicator timing, obtaining the historical global service indicator timings corresponding to the multiple electronic devices;

[0129] It is determined whether the first business indicator timing conforms to the timing rule corresponding to the historical global business indicator timing; if so, it is determined that an abnormality exists in the target application.

[0130] The device using one or more embodiments of the present specification, when determining that the service state of the target application has changed, by determining the first business monitoring object affected by the change, and according to the monitoring attribute information of each business monitoring object and the correlation between each business monitoring object and the first business monitoring object, the monitoring importance value of each business monitoring object for the change is determined, and then according to the monitoring importance value corresponding to each business monitoring object, the target business monitoring object corresponding to the change of the target application is screened out from multiple business monitoring objects, and the target application is business-monitored based on the monitoring attribute information corresponding to the target business monitoring object to obtain the business monitoring result, and the target application is detected for anomalies according to the business monitoring result. It can be seen that the device can associate and filter multiple business monitoring objects of the target application based on the first business monitoring object affected by the change when the service state of the target application changes, so as to screen out the target business monitoring object with a higher monitoring importance for the change, that is, focus on monitoring the business related to the change, which not only reduces the noise caused by the business monitoring irrelevant to the change, saves computing resources, but also detects anomalies of the target application by monitoring the business related to the change, so that the anomaly detection of the target application is more accurate. In addition, in the process of screening target business monitoring objects, there is no need for manual participation in monitoring configuration, thus saving labor costs.

[0131] Those skilled in the art should understand that the above-mentioned application anomaly detection device can be used to implement the application anomaly detection method described above, and the detailed description thereof should be similar to the description of the method part above, and will not be further described here to avoid tediousness.

[0132] Based on the same idea, one or more embodiments of this specification also provide an application anomaly detection device, such as Figure 6 As shown. The application anomaly detection device may have relatively large differences due to different configurations or performances, and may include one or more processors 601 and memory 602, and the memory 602 may store one or more storage applications or data. Among them, the memory 602 may be a short-term storage or a persistent storage. The application stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the application anomaly detection device. Furthermore, the processor 601 may be configured to communicate with the memory 602 and execute a series of computer executable instructions in the memory 602 on the application anomaly detection device. The application anomaly detection device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input and output interfaces 605, and one or more keyboards 606.

[0133] Specifically, in this embodiment, the application anomaly detection device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the application anomaly detection device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:

[0134] When it is determined that the service state of the target application has changed, determining a first business monitoring object affected by the change from a plurality of business monitoring objects corresponding to the target application;

[0135] Determine the monitoring importance value of each of the business monitoring objects for this change according to the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object;

[0136] According to the monitoring importance values ​​respectively corresponding to the business monitoring objects, the target business monitoring object corresponding to the current change of the target application is screened out from the multiple business monitoring objects;

[0137] Based on the monitoring attribute information corresponding to the target business monitoring object, business monitoring is performed on the target application to obtain a business monitoring result, and anomaly detection is performed on the target application according to the business monitoring result.

[0138] By adopting the technical scheme of one or more embodiments of the present specification, when it is determined that the service state of the target application has changed, by determining the first business monitoring object affected by the change, and according to the monitoring attribute information of each business monitoring object and the correlation between each business monitoring object and the first business monitoring object, the monitoring importance value of each business monitoring object for the change is determined, and then according to the monitoring importance value corresponding to each business monitoring object, the target business monitoring object corresponding to the change of the target application is screened out from multiple business monitoring objects, and the target application is business-monitored based on the monitoring attribute information corresponding to the target business monitoring object to obtain the business monitoring result, and the target application is detected for anomalies according to the business monitoring result. It can be seen that the technical scheme can associate and filter multiple business monitoring objects of the target application based on the first business monitoring object affected by the change when the service state of the target application changes, so as to screen out the target business monitoring object with a higher monitoring importance for the change, that is, focus on monitoring the business related to the change, which not only reduces the noise caused by the business monitoring irrelevant to the change, saves computing resources, but also detects anomalies of the target application by monitoring the business related to the change, making the anomaly detection of the target application more accurate. In addition, in the process of screening target business monitoring objects, there is no need for manual participation in monitoring configuration, thus saving labor costs.

[0139] One or more embodiments of the present specification further propose a storage medium, which stores one or more computer programs, wherein the one or more computer programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform each process of the above-mentioned application anomaly detection method embodiment, and are specifically used to perform:

[0140] When it is determined that the service state of the target application has changed, determining a first business monitoring object affected by the change from a plurality of business monitoring objects corresponding to the target application;

[0141] Determine the monitoring importance value of each of the business monitoring objects for this change according to the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object;

[0142] According to the monitoring importance values ​​respectively corresponding to the business monitoring objects, the target business monitoring object corresponding to the current change of the target application is screened out from the multiple business monitoring objects;

[0143] Based on the monitoring attribute information corresponding to the target business monitoring object, business monitoring is performed on the target application to obtain a business monitoring result, and anomaly detection is performed on the target application according to the business monitoring result.

[0144] By adopting the technical scheme of one or more embodiments of the present specification, when it is determined that the service state of the target application has changed, by determining the first business monitoring object affected by the change, and according to the monitoring attribute information of each business monitoring object and the correlation between each business monitoring object and the first business monitoring object, the monitoring importance value of each business monitoring object for the change is determined, and then according to the monitoring importance value corresponding to each business monitoring object, the target business monitoring object corresponding to the change of the target application is screened out from multiple business monitoring objects, and the target application is business-monitored based on the monitoring attribute information corresponding to the target business monitoring object to obtain the business monitoring result, and the target application is detected for anomalies according to the business monitoring result. It can be seen that the technical scheme can associate and filter multiple business monitoring objects of the target application based on the first business monitoring object affected by the change when the service state of the target application changes, so as to screen out the target business monitoring object with a higher monitoring importance for the change, that is, focus on monitoring the business related to the change, which not only reduces the noise caused by the business monitoring irrelevant to the change, saves computing resources, but also detects anomalies of the target application by monitoring the business related to the change, making the anomaly detection of the target application more accurate. In addition, in the process of screening target business monitoring objects, there is no need for manual participation in monitoring configuration, thus saving labor costs.

[0145] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0146] For the convenience of description, the above devices are described in terms of functions and are described separately in various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0147] Those skilled in the art will appreciate that one or more embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0148] One or more embodiments of the present specification are described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0151] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0152] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0153] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transit media), such as modulated data signals and carrier waves.

[0154] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0155] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

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

[0157] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of one or more embodiments of this specification.

Claims

1. A method for detecting anomalies in an application, include: When it is determined that the service state of the target application has changed, determining a first business monitoring object affected by the change from a plurality of business monitoring objects corresponding to the target application; Determine the monitoring importance value of each of the business monitoring objects for this change according to the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object; According to the monitoring importance values ​​respectively corresponding to the business monitoring objects, the target business monitoring object corresponding to the current change of the target application is screened out from the multiple business monitoring objects; Based on the monitoring attribute information corresponding to the target business monitoring object, business monitoring is performed on the target application to obtain a business monitoring result, and anomaly detection is performed on the target application according to the business monitoring result.

2. The method according to claim 1, wherein the first business monitoring object affected by the change is determined from the multiple business monitoring objects corresponding to the target application, include: Determining a first service feature affected by the change from a plurality of service features corresponding to the target application; The first service monitoring object associated with the first service feature is determined according to the pre-configured association relationship between each of the service features and the service monitoring object.

3. The method according to claim 2, wherein the first service feature comprises a first log path; determining the first service monitoring object associated with the first service feature according to the pre-configured association relationship between each service feature and the service monitoring object, include: According to the pre-configured association relationship between each log path and the business monitoring object, the business monitoring object associated with the first log path is determined to be the first business monitoring object; the target application corresponds to a plurality of the log paths.

4. The method according to claim 2, wherein the first service feature comprises a first RPC interface; determining the first service monitoring attribute associated with the first service feature according to the pre-configured association relationship between each of the service features and the service monitoring object, include: According to the pre-configured association relationship between each RPC interface and the business monitoring object, determining the business monitoring object associated with the first RPC interface as the first business monitoring object; the target application corresponds to a plurality of the RPC interfaces; or, Based on the association relationship between the pre-configured RPC interfaces and the business service information, the first business service information associated with the first RPC interface is determined; based on the association relationship between the pre-configured business service information and the business monitoring object, the business monitoring object associated with the first business service information is determined to be the first business monitoring object.

5. The method according to claim 1, wherein the target business monitoring object corresponding to the current change of the target application is selected from the plurality of business monitoring objects according to the monitoring importance values ​​corresponding to the business monitoring objects respectively. include: According to the monitoring importance values ​​respectively corresponding to the business monitoring objects, the target business monitoring objects satisfying the preset monitoring conditions are screened out from the multiple business monitoring objects; The preset monitoring condition includes: the monitoring importance value is greater than or equal to a preset threshold.

6. The method according to claim 1, wherein the monitoring importance value of each of the business monitoring objects for the current change is determined based on the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object, include: Input the monitoring attribute information corresponding to each of the business monitoring objects into a pre-trained monitoring object screening model to obtain a weight value corresponding to each monitoring attribute corresponding to the multiple business monitoring objects; wherein each of the business monitoring objects corresponds to its own first label information, and the first label information is used to identify the correlation between the business monitoring object and the first business monitoring object; The monitoring importance values ​​corresponding to each of the business monitoring objects are determined according to the weight values ​​corresponding to each of the monitoring attributes and the monitoring attribute information corresponding to each of the business monitoring objects.

7. The method according to claim 6, further comprising: include: Obtaining sample monitoring attribute information corresponding to multiple sample business monitoring objects associated with the sample application, and second label information corresponding to each of the sample business monitoring objects; The second tag information is used to identify: the correlation between the sample business monitoring object and the business monitoring object affected by the change, and the importance of sample monitoring of the sample business monitoring object; The sample monitoring attribute information corresponding to the multiple sample business monitoring objects and the second label information are input into the monitoring object screening model to be trained for iterative training to obtain the trained monitoring object screening model.

8. The method according to claim 7, wherein the sample monitoring attribute information corresponding to the plurality of sample business monitoring objects and the second label information are input into a monitoring object screening model to be trained for iterative training to obtain a trained monitoring object screening model, include: Inputting the monitoring attribute information corresponding to the plurality of sample business monitoring objects and the second label information into the monitoring object screening model to be trained to determine the first monitoring importance corresponding to each of the sample business monitoring objects; Comparing each of the first monitoring importance levels with the corresponding sample monitoring importance levels to determine whether the first monitoring importance levels and the corresponding sample monitoring importance levels match; If not, adjusting the model parameters of the monitoring object screening model to be trained, and determining the first monitoring importance corresponding to each of the sample business monitoring objects based on the adjusted model parameters; the model parameters include the weight value of each sample monitoring attribute corresponding to the multiple sample business monitoring objects; If so, the iteration is stopped to obtain the trained monitoring object screening model.

9. The method according to claim 6, wherein the target application is subjected to service monitoring based on the monitoring attribute information corresponding to the target service monitoring object, and after obtaining the service monitoring result, further include: According to the business monitoring results, the effectiveness of this business monitoring is evaluated to obtain an evaluation result; According to the evaluation results, the monitoring object screening model is optimized.

10. The method according to claim 1, wherein the target application is run in a plurality of electronic devices; the plurality of electronic devices are located in the same network environment; The method also include: When it is determined that the service status of the target application in at least one of the electronic devices has changed, determining the change batches corresponding to the multiple electronic devices according to the device status information corresponding to each of the electronic devices and / or a preset batch change rule; the device status information includes the device operation status and / or the service status of the target application; According to the changed batches, abnormality detection is performed on the target applications running in each of the electronic devices in batches.

11. The method according to claim 10, wherein the target application is subjected to service monitoring based on the monitoring attribute information corresponding to the target service monitoring object to obtain a service monitoring result, and anomaly detection is performed on the target application according to the service monitoring result. include: Based on the monitoring attribute information corresponding to the target business monitoring object, collecting the first business indicator time series of the target business in the target application; The target business is a business related to the target business monitoring object; the business monitoring result includes the first business indicator time series; Compare the first service indicator time series with the second service indicator time series of the target service before the change; If the comparison result is that the timing difference between the first business indicator timing and the second business indicator timing is less than or equal to the preset timing difference threshold, it is determined that there is no abnormality in the target application; If the comparison result is that the timing difference is greater than the preset timing difference threshold, it is determined that an abnormality exists in the target application.

12. The method according to claim 11, wherein the plurality of electronic devices include: A first electronic device whose service state of the target application has changed, and a second electronic device whose service state of the target application has not changed; If the comparison result is that the timing difference is greater than the preset timing difference threshold, determining that the target application is abnormal includes: If the comparison result is that the timing difference is greater than the preset timing difference threshold, obtaining the first service indicator timing corresponding to the first electronic device and the third service indicator timing corresponding to the second electronic device; If there is a timing difference between the first service indicator timing and the third service indicator timing, obtaining the historical global service indicator timings corresponding to the multiple electronic devices; It is determined whether the first business indicator timing conforms to the timing rule corresponding to the historical global business indicator timing; if so, it is determined that an abnormality exists in the target application.

13. An application anomaly detection device, include: A first determination module, when determining that a service state of a target application has changed, determines a first business monitoring object affected by the change from a plurality of business monitoring objects corresponding to the target application; A second determination module determines the monitoring importance value of each of the business monitoring objects for this change according to the monitoring attribute information of each of the business monitoring objects and the correlation between each of the business monitoring objects and the first business monitoring object; A screening module, screening out a target business monitoring object corresponding to the current change of the target application from the multiple business monitoring objects according to the monitoring importance values ​​corresponding to the business monitoring objects; The anomaly detection module performs business monitoring on the target application based on the monitoring attribute information corresponding to the target business monitoring object, obtains a business monitoring result, and performs anomaly detection on the target application according to the business monitoring result.

14. The apparatus according to claim 13, wherein the first determining module include: A first determining unit, determining a first service feature affected by the change from a plurality of service features corresponding to the target application; The second determining unit determines the first service monitoring object associated with the first service feature according to the pre-configured association relationship between each of the service features and the service monitoring object.

15. The apparatus according to claim 14, wherein the first service characteristic comprises a first log path; The second determination unit determines, based on the association relationship between the pre-configured log paths and the business monitoring objects, that the business monitoring object associated with the first log path is the first business monitoring object; the target application corresponds to a plurality of the log paths.

16. The apparatus according to claim 14, wherein the first service feature comprises a first RPC interface; The second determining unit: According to the pre-configured association relationship between each RPC interface and the business monitoring object, determining the business monitoring object associated with the first RPC interface as the first business monitoring object; the target application corresponds to a plurality of the RPC interfaces; or, Based on the association relationship between the pre-configured RPC interfaces and the business service information, the first business service information associated with the first RPC interface is determined; based on the association relationship between the pre-configured business service information and the business monitoring object, the business monitoring object associated with the first business service information is determined to be the first business monitoring object.

17. An application anomaly detection device, comprising a processor and a memory electrically connected to the processor, the memory storing a computer program, the processor being configured to call and execute the computer program from the memory to implement the application anomaly detection method according to any one of claims 1 to 12.

18. A storage medium for storing a computer program, wherein the computer program can be executed by a processor to implement the application anomaly detection method according to any one of claims 1 to 12.