Abnormality detection method and device, equipment, storage medium and program product
By acquiring various information indicator values and weights from the client to calculate anomaly evaluation parameters, the problem of poor timeliness in client-side anomaly detection is solved, achieving timely and accurate anomaly detection.
Patent Information
- Application Number
- CN202411005546.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-19
AI Technical Summary
In existing technologies, the timeliness of client-side anomaly detection is poor, and there is a delay when the server detects client anomalies through logs.
By obtaining the client's current target information, the system determines the corresponding indicator value and weight for each type of sub-data, calculates the anomaly evaluation parameters, and sends a prompt message to the client when the parameter exceeds a preset threshold. This message includes network information, page information, instruction information, runtime environment information, and application runtime information.
It improves the timeliness and accuracy of client anomaly detection, enabling timely detection of client anomalies and comprehensive and accurate identification of abnormal situations.
Smart Images

Figure CN118981722A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to an anomaly detection method, device, equipment, storage medium and program product. Background Art
[0002] In order to ensure the stable operation of the client, it is necessary to regularly check whether the client has any abnormalities.
[0003] In the exemplary technology, the operation information of the client is stored in the server in the form of logs, and the server detects whether there is any abnormality in the client through the logs.
[0004] However, the log is the information recorded by the client after the client is running, that is, the formation of the log takes a certain amount of time, which makes the server delay in detecting whether there is an abnormality in the client based on the log, that is, the timeliness of the client's abnormality detection is poor. Summary of the invention
[0005] The embodiments of the present application provide an anomaly detection method, apparatus, device, storage medium and program product, which can solve the problem of poor timeliness of anomaly detection on the client side.
[0006] In a first aspect, an embodiment of the present application provides an anomaly detection method, the method comprising:
[0007] Get the client's current target information;
[0008] Determine a first indicator value corresponding to each sub-data in the target information, wherein each sub-data in the target information includes at least two of network information, page information, instruction information, operating environment information, operating system information, and application program operation information;
[0009] Obtaining a weight corresponding to each of the sub-data, and determining an abnormality evaluation parameter of the client according to the first indicator value and the weight corresponding to each of the sub-data;
[0010] In response to the abnormal evaluation parameter being greater than a first preset threshold, a prompt message is sent to the client, where the prompt message is used to indicate that an abnormality has occurred in the client.
[0011] In some possible implementations, the step of sending the prompt information to the client includes:
[0012] Determine a first target indicator value among the first indicator values, wherein a weight corresponding to the first target indicator value is greater than weights corresponding to other indicator values, or the first target indicator value is a first indicator value greater than a second preset threshold, and the other indicator values are the first indicator values other than the first target indicator value;
[0013] Generate prompt information for priority detection based on the sub-data corresponding to the first target indicator value.
[0014] In some possible implementations, the step of determining the abnormality evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data includes:
[0015] Obtaining abnormal log information of the client;
[0016] Determine a second indicator value corresponding to each abnormal data in the abnormal log information;
[0017] The abnormality evaluation parameter is determined according to each of the second indicator values, the weight corresponding to each of the second indicator values, and each of the first indicator values and the weight corresponding to each of the first indicator values.
[0018] In some possible implementations, the step of determining the abnormality evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data includes:
[0019] Determine a second target indicator value among the first indicator values according to the first indicator values and the corresponding weights, wherein the second target indicator value is greater than a third preset threshold value and the weight corresponding to the second target indicator value is greater than a preset weight;
[0020] A weighted calculation is performed based on each of the second target indicator values and the corresponding weights to obtain the abnormal evaluation parameters of the client.
[0021] In some possible implementations, before the step of determining the first indicator value corresponding to each sub-data in the target information, the step further includes:
[0022] Extracting labels corresponding to the data in the target information;
[0023] The data in the target information is classified according to the label to obtain each sub-data, and each sub-data corresponds to one label.
[0024] In some possible implementations, after the step of determining the abnormality evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data, the step further includes:
[0025] In response to the abnormal evaluation parameter being less than or equal to a first preset threshold, determining a first index value greater than a fourth preset threshold among the first index values as a third target index value;
[0026] Generate recommended detection information of the sub-data corresponding to the third target indicator value, and send the recommended detection information to the client.
[0027] In a second aspect, an embodiment of the present application provides an abnormality detection device, including:
[0028] The first acquisition module is used to obtain the current target information of the client;
[0029] a determination module, configured to determine a first indicator value corresponding to each sub-data in the target information, wherein each sub-data in the target information includes at least two of network information, page information, instruction information, operating environment information, operating system information, and application program operation information;
[0030] A second acquisition module is used to acquire a weight corresponding to each sub-data, and determine an abnormal evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data;
[0031] The sending module is used to send a prompt message to the client in response to the abnormal evaluation parameter being greater than a first preset threshold, wherein the prompt message is used to indicate that an abnormality occurs in the client.
[0032] In a third aspect, an embodiment of the present application provides an anomaly detection device, the anomaly detection device comprising:
[0033] A processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the above-mentioned abnormality detection method is implemented.
[0034] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, any of the above-mentioned anomaly detection methods is implemented.
[0035] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to perform any of the above-mentioned anomaly detection methods.
[0036] The anomaly detection method, device, equipment, storage medium and program product of the embodiments of the present application obtain the current target information of the client, determine the index value corresponding to each sub-data in the target information, and determine the abnormal evaluation parameters of the client based on the weights and index values corresponding to each sub-data, and send an abnormal prompt message to the client when the abnormal evaluation parameter is greater than a preset threshold. In the present application, by collecting the current information of the client, it is possible to timely discover whether the client has an abnormality, thereby improving the timeliness of the client anomaly detection. Furthermore, by calculating multiple index values based on the network information, page information, instruction information, operating environment information, operating system information and application program operation information contained in the target information, it is possible to comprehensively and accurately determine whether the client has an abnormality, thereby improving the accuracy of the client anomaly detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0038] Figure 1 It is a schematic diagram of the scenario involved in the anomaly detection method of this application;
[0039] Figure 2 It is a flowchart of the first embodiment of the abnormality detection method of the present application;
[0040] Figure 3 It is a flowchart of the second embodiment of the abnormality detection method of the present application;
[0041] Figure 4 It is a flowchart of the third embodiment of the abnormality detection method of the present application;
[0042] Figure 5 is a flowchart of the fourth embodiment of the abnormality detection method of the present application;
[0043] Figure 6 It is a functional module schematic diagram of the abnormality detection device of the present application;
[0044] Figure 7 It is a schematic diagram of the functional modules of the abnormality detection device of the present application. DETAILED DESCRIPTION
[0045] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0046] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0047] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.
[0048] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0049] In order to ensure the stable operation of the client, it is necessary to regularly check whether the client has any abnormalities.
[0050] In the exemplary technology, the operation information of the client is stored in the server in the form of logs, and the server detects whether there is any abnormality in the client through the logs.
[0051] The inventor of the present application discovered that the log is information recorded by the client after the client is running, that is, the formation of the log takes a certain amount of time, which causes a delay in the server's detection of whether the client has an abnormality based on the log, that is, the timeliness of the client's abnormality detection is poor.
[0052] Therefore, the inventor of the present application came up with the idea of obtaining the current target information of the client, determining the index value corresponding to each sub-data in the target information, and determining the abnormal evaluation parameters of the client based on the weights and index values corresponding to each sub-data, and sending an abnormal prompt message to the client when the abnormal evaluation parameter is greater than a preset threshold. In the present application, by collecting the current information of the client, it is possible to promptly discover whether the client has an abnormality, thereby improving the timeliness of client abnormality detection. Furthermore, by calculating multiple index values based on the network information, page information, instruction information, operating environment information, operating system information, and application program operation information contained in the target information, it is possible to comprehensively and accurately determine whether the client has an abnormality, thereby improving the accuracy of client abnormality detection.
[0053] Reference Figure 1 , Figure 1 Schematic diagram of the application scenario involved in the anomaly detection method of this application.
[0054] The client 100 collects its own information as target information, and then sends the target information to the anomaly detection device 200. The anomaly detection device 200 can be a server or other terminal device or cloud device with anomaly detection function. The anomaly detection device 200 calculates the index value corresponding to each sub-data in the target information, and each sub-data of the target information includes at least two of page information, instruction information, operating environment information, operating system information, and application program operation information. The anomaly detection device 200 calculates the anomaly evaluation parameter of the client 100 based on the weight and index value corresponding to each sub-data, and sends an abnormal prompt message to the client 100 when the anomaly evaluation parameter is greater than a preset threshold.
[0055] Combination Figure 1 , the anomaly detection method of this application is described in detail.
[0056] Reference Figure 2 , Figure 2 The flowchart of the first embodiment of the anomaly detection method of the present application is shown. The anomaly detection method may include the following steps:
[0057] Step S201, obtaining the current target information of the client.
[0058] In this embodiment, the execution subject is an abnormality detection device. For the convenience of description, the term "device" is used below to refer to the abnormality detection device. The device can be a server, or any terminal device with an abnormality detection function, or a cloud device.
[0059] The device obtains the current target information of the client. Specifically, the client transmits the current network information, page information, instruction information, operating environment information, operating system information and application program running information as the target information to the device.
[0060] Network information includes DNS (Domain Name System) domain name resolution, client IP (Internet Protocol) address, IPv6 / IPv4 TCP (Transmission Control Protocol) link establishment, and SSL (Secure Socket Layer) encryption and decryption interaction.
[0061] Page information includes: the page ID displayed by the client, page switching time, page rendering parameters, etc.
[0062] The instruction information includes: access request, process instructions, etc.
[0063] Operating environment information: parameter information of the client's program framework, etc.
[0064] Operating system information: operating system attributes, such as 64-bit operating system, memory usage, resource usage, operating system version, client hardware, etc.
[0065] Application running information: each running application, application running parameters, application version, etc.
[0066] In addition, the target information also includes error information. Error information includes request exceptions, front-end exceptions, and environment exceptions. Request exceptions include static resource exceptions and API (Application Programming Interface) exceptions. Front-end exceptions include JavaScript (interpreted or just-in-time compiled programming languages) exceptions and custom exceptions. Environment exceptions include program framework exceptions and container exceptions.
[0067] Step S202, determining a first indicator value corresponding to each sub-data in the target information, wherein each sub-data of the target information includes at least two of network information, page information, instruction information, operating environment information, operating system information, and application program running information.
[0068] After obtaining the target information, the device determines the index value corresponding to each sub-data in the target information, and the index value is defined as the first index value. Each sub-data includes at least two of network information, page information, instruction information, operating environment information, operating system information, and application program operation information. The first index value is, for example, a client availability index value, a page availability index value, a client processing time index value, a page slowness index value, and the like. The client availability index value is, for example, the ratio of the idle resources of the client to the upper limit resources, the client processing time index value is the average time for each process in the client to execute a task, the page availability index value refers to the ratio between the number of pages opened by the client that can be safely browsed or fully displayed and the number of pages opened by the client, and the page slowness index value refers to the ratio between the page opening time and the normal opening time of the page. In addition, the first index value also includes a network speed index value, which refers to the bandwidth or network speed of the client.
[0069] Step S203, obtaining the weight corresponding to each sub-data, and determining the abnormal evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data.
[0070] Each sub-data has a corresponding weight, and the device obtains the weight corresponding to each sub-data. In one example, the weight corresponding to each sub-data is pre-set, and the weight of the sub-data that has a greater impact on the client's operating stability is set to a larger value. For example, the operating system information has the greatest impact on the client's operating stability, so the weight corresponding to the operating system information is set to the largest value. In another example, the weight corresponding to each sub-data is set immediately. For example, the client will send historical maintenance information to the device. The device determines the data type corresponding to the abnormal situation based on the historical maintenance information, and sets the weight of the sub-data corresponding to the data type based on the number of abnormalities of the data type, and the number of abnormalities is positively correlated with the weight of the sub-data. For example, based on the historical maintenance information, it is determined that the number of abnormalities in the network information is the largest, so the weight corresponding to the network information is set to the largest value.
[0071] The device determines the abnormal level key parameter of the client based on the first indicator value and weight corresponding to each sub-data. Exemplarily, each first indicator value includes A, B, C, D and E, and the weight classification information corresponding to A, B, C, D and E is 0.25, 0.15, 0.1, 0.3, and 0.2, then the abnormal reference parameter = 0.25A + 0.15B + 0.1C + 0.3D + 0.2E.
[0072] Step S204: in response to the abnormal evaluation parameter being greater than the first preset threshold, a prompt message is sent to the client, where the prompt message is used to indicate that an abnormality has occurred in the client.
[0073] An abnormality threshold is set in the device, and the abnormality threshold is defined as a first preset threshold. The first preset threshold can be a value of any composite number, for example, the first preset threshold is 0.6. The device determines whether the abnormal reference parameter is greater than the first preset threshold. If the abnormal reference parameter is greater than the first preset threshold, a prompt message is sent to the client, and the prompt message is used to prompt the client that an abnormality has occurred, so that the maintenance personnel can repair the abnormality of the client based on the prompt message.
[0074] Furthermore, the device can also process each sub-data to obtain a report formed by each sub-data. In addition, the device can also obtain detailed data of the client's business functions. The device can display the report and detailed data for the user to view.
[0075] In this embodiment, the current target information of the client is obtained, the index value corresponding to each sub-data in the target information is determined, and the abnormal evaluation parameters of the client are determined based on the weights and index values corresponding to each sub-data, and when the abnormal evaluation parameters are greater than the preset threshold, a prompt message indicating an abnormality is sent to the client. In this embodiment, by collecting the current information of the client, it is possible to timely discover whether the client has an abnormality, thereby improving the timeliness of client abnormality detection. Furthermore, by calculating multiple index values based on the network information, page information, instruction information, operating environment information, operating system information, and application program operation information contained in the target information, it is possible to comprehensively and accurately determine whether the client has an abnormality, thereby improving the accuracy of client abnormality detection.
[0076] Reference Figure 3 , Figure 3 This is a flow chart of the second embodiment of the abnormality detection method of the present application. Based on the first embodiment, step S204 includes:
[0077] Step S301, determining a first target indicator value among various first indicator values, wherein the weight corresponding to the first target indicator value is greater than the weights corresponding to other indicator values, or the first target indicator value is a first indicator value greater than a second preset threshold, and the other indicator values are first indicator values other than the first target indicator value.
[0078] Step S302: Generate prompt information for priority detection according to the sub-data corresponding to the first target indicator value.
[0079] In one example, the abnormal evaluation parameter is calculated based on all the first indicator values, and some of the first indicator values are normal, while the remaining first indicator values are abnormal. The normal first indicator value has a smaller value, while the abnormal first indicator value has a larger value. The prompt information is used to prompt the client that an abnormality has occurred. In order to enable the user to accurately eliminate the abnormality, the generated prompt information can be a prompt information for priority detection. In this regard, the device determines the first target indicator value among the first indicator values. The first target indicator value is a first indicator value greater than the second preset threshold value, that is, the first target indicator value is an indicator value with a larger value. The larger the first target indicator value, the greater the probability of abnormality in the sub-data corresponding to the first target indicator value. Therefore, the device generates a prompt information for priority detection of the sub-data corresponding to the first target indicator value, so that the user can prioritize the sub-data corresponding to the first target indicator value for abnormality elimination.
[0080] In another example, the device sets a weight for each indicator value. The larger the weight, the greater the impact on the operation of the client if the sub-data representing the first indicator value corresponding to the weight is abnormal. Therefore, the device determines the first target indicator value among the first indicator values, and the weight corresponding to the first target indicator value is greater than that of other indicator values. The other indicator values are the first indicator values other than the first target indicator value, that is, the prompt information of the priority detection of the sub-data with a larger weight is generated.
[0081] In this embodiment, the device determines the first target indicator value among the first indicator values, thereby generating priority detection prompt information of the sub-data corresponding to the first target indicator value, so that the user can perform abnormality detection on the key data of the client based on the priority detection prompt information.
[0082] Reference Figure 4 , Figure 4 This is a flow chart of the third embodiment of the abnormality detection method of the present application. Based on the first or second embodiment, step S202 includes:
[0083] Step S401, obtaining abnormal log information of the client.
[0084] In this embodiment, the target information also includes error information, which is the abnormal log information. The device obtains the abnormal log information from the target information.
[0085] Step S402: determine a second indicator value corresponding to each abnormal data in the abnormal log information.
[0086] The abnormal log information includes at least one of request abnormality, front-end abnormality and environment abnormality, that is, the abnormal data is at least one of request data, front-end data and environment data. The device calculates the index value corresponding to each abnormal data, and the index value is defined as the second index value. The second index value represents the severity of the abnormality of the corresponding abnormal data, and the larger the second index value, the greater the severity of the abnormality. The abnormal log information may include the level of the abnormality, and the second index value is determined based on the level. The higher the level, the larger the second index value.
[0087] Step S403, determining an abnormality evaluation parameter according to each second indicator value, a weight corresponding to each second indicator value, each first indicator value, and a weight corresponding to each first indicator value.
[0088] Each second indicator value has a corresponding weight, and the device determines the abnormality evaluation parameter based on each second indicator value, the weight corresponding to the second indicator value, each first indicator value and the weight corresponding to the first indicator value.
[0089] In one example, each first indicator value has a corresponding preset threshold value. The device determines the first indicator value that is greater than the preset threshold value among each first indicator value as the intermediate indicator value, and performs weighted calculation on the second indicator value, the weight corresponding to the second indicator value, the intermediate indicator value, and the weight corresponding to the intermediate indicator value to obtain a numerical value, which is the abnormal evaluation parameter.
[0090] In another example, among the first indicator values, there are indicator values of the same type as the second indicator value, and the second indicator value is the indicator value corresponding to the abnormal data. The abnormal data is data that is clearly abnormal. Therefore, the second indicator value needs to participate in the calculation, and the first indicator value of the same type as the second indicator value needs to be removed. The device performs weighted calculation based on each second indicator value, the weight corresponding to the second indicator value, the remaining first indicator values, and the weight corresponding to the remaining first indicator values to obtain the abnormal evaluation parameter.
[0091] In this embodiment, the device determines the abnormality evaluation parameter based on the abnormality log information of the client and the first indicator value, so as to more comprehensively and accurately determine whether the client has an abnormality.
[0092] Reference Figure 5 , Figure 5 This is a flow chart of the third embodiment of the abnormality detection method of the present application. Based on the first or second embodiment, step S202 includes:
[0093] Step S501, according to the first indicator values and the corresponding weights, determine the second target indicator value in each first indicator value, the second target indicator value is greater than the third preset threshold and the weight corresponding to the second target indicator value is greater than the preset weight.
[0094] In this embodiment, the device memorizes the first indicator values and the corresponding weights, and determines the second target indicator value among the first indicator values.
[0095] Specifically, the probability of abnormality of the sub-data corresponding to the first indicator value greater than the third preset threshold is relatively high, so the second target indicator value needs to be greater than the third preset threshold. In addition, the greater the weight of the indicator value, the greater the impact of the sub-data of the indicator value corresponding to the weight on the operation of the client, so the weight of the second target indicator value needs to be greater than the preset weight. It can be understood that the second target indicator value is greater than the third preset threshold and the weight corresponding to the second target indicator value is greater than the preset weight.
[0096] Step S502: performing weighted calculation according to each second target indicator value and the corresponding weight to obtain the abnormal evaluation parameter of the client.
[0097] After obtaining the second target indicator values and the corresponding weights, the device performs weighted calculation according to each second target indicator value and the corresponding weight to obtain the abnormal evaluation parameter.
[0098] In this embodiment, among each first indicator value, a first indicator value greater than the third preset threshold and with a weight greater than the preset weight is determined as the second target indicator value, so that based on the second target indicator value and the corresponding weight, the comprehensive abnormality evaluation parameters corresponding to each data that characterizes the client's key detection are determined.
[0099] In one embodiment, the device can classify the target information. Specifically, each data in the target information has a label, and the device extracts the label corresponding to the data in the target information, classifies the data in the target information based on the label, obtains each sub-data, and all data in each sub-data corresponds to the same label.
[0100] In this way, the data in the target information can be quickly classified, making it easier for the device to calculate the index value of each sub-data.
[0101] In one embodiment, the abnormality evaluation parameter is calculated by the first indicator value corresponding to each sub-data. When the abnormality evaluation parameter is greater than the first preset threshold, the probability of an abnormality occurring in the client is relatively high. When the abnormality evaluation parameter is less than or equal to the first preset threshold, the probability of an abnormality occurring in the client is relatively low, but an abnormality check is also required. In this regard, when the abnormality evaluation parameter is less than or equal to the first preset threshold, the device determines the first indicator value greater than the fourth preset threshold among each first indicator value as the third target indicator value. The probability of an abnormality occurring in the sub-data corresponding to the first indicator value greater than the fourth preset threshold is relatively high, and therefore, the device generates recommended detection information for the sub-data corresponding to the third target indicator value, and sends the recommended detection information to the client.
[0102] In this embodiment, when the abnormal evaluation parameter is less than or equal to the first preset threshold, the device determines the first indicator value greater than the fourth preset threshold among each first indicator value as the third target indicator value, and reproduces the recommended detection information of the sub-data corresponding to the third target indicator value to avoid the client missing abnormal situations.
[0103] Based on the anomaly detection method provided in the above embodiment, the present application also provides a specific implementation of an anomaly detection device. Please refer to the following embodiment.
[0104] See first Figure 6 , the abnormality detection device 600 provided in the embodiment of the present application includes:
[0105] The first acquisition module 610 is used to acquire the current target information of the client;
[0106] A determination module 620, configured to determine a first indicator value corresponding to each sub-data in the target information, wherein each sub-data in the target information includes at least two of network information, page information, instruction information, operating environment information, operating system information, and application program operation information;
[0107] The second acquisition module 630 is used to acquire the weight corresponding to each sub-data, and determine the abnormal evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data;
[0108] The sending module 640 is used to send a prompt message to the client in response to the abnormal evaluation parameter being greater than the first preset threshold, where the prompt message is used to indicate that an abnormality occurs in the client.
[0109] In one embodiment, the anomaly detection device 600 is further used for:
[0110] Determine a first target indicator value among the first indicator values, wherein a weight corresponding to the first target indicator value is greater than weights corresponding to other indicator values, or the first target indicator value is a first indicator value greater than a second preset threshold value, and the other indicator values are first indicator values other than the first target indicator value;
[0111] Generate prompt information for priority detection based on the sub-data corresponding to the first target indicator value.
[0112] In another embodiment, the anomaly detection device 600 is further used for:
[0113] Get the client's abnormal log information;
[0114] Determine a second indicator value corresponding to each abnormal data in the abnormal log information;
[0115] An abnormality evaluation parameter is determined according to each second indicator value, a weight corresponding to each second indicator value, each first indicator value, and a weight corresponding to each first indicator value.
[0116] In another embodiment, the anomaly detection device 600 is further used for:
[0117] According to the first indicator values and the corresponding weights, a second target indicator value is determined from each first indicator value, the second target indicator value is greater than a third preset threshold value and the weight corresponding to the second target indicator value is greater than the preset weight;
[0118] According to each second target indicator value and the corresponding weight, a weighted calculation is performed to obtain the abnormal evaluation parameter of the client.
[0119] In another embodiment, the anomaly detection device 600 is further used for:
[0120] Extract the label corresponding to the data in the target information;
[0121] The data in the target information is classified according to the label to obtain each sub-data, and each sub-data corresponds to a label.
[0122] In another embodiment, the anomaly detection device 600 is further used for:
[0123] In response to the abnormal evaluation parameter being less than or equal to the first preset threshold, determining a first index value greater than a fourth preset threshold among the first index values as a third target index value;
[0124] Generate recommended detection information of the sub-data corresponding to the third target indicator value, and send the recommended detection information to the client.
[0125] Each module of the abnormality detection device provided in the embodiment of the present application can realize Figures 2 to 5 The functions of each step of the anomaly detection method are provided and can achieve the corresponding technical effects. For the sake of concise description, they will not be repeated here.
[0126] Reference Figure 7 , Figure 7 A schematic diagram of the hardware structure of the anomaly detection device provided in an embodiment of the present application.
[0127] The anomaly detection device may include a processor 701 and a memory 702 storing computer program instructions.
[0128] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0129] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.
[0130] In certain embodiments, memory 702 includes a read-only memory (ROM). The ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of the above, where appropriate.
[0131] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present application.
[0132] The processor 701 implements any one of the abnormality detection methods in the above embodiments by reading and executing computer program instructions stored in the memory 702 .
[0133] In one example, the abnormality detection device may further include a communication interface 703 and a bus 310. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via the bus 310 and communicate with each other.
[0134] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0135] Bus 710 includes hardware, software or both, and the parts of abnormal detection equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0136] The anomaly detection method in the above embodiment can be implemented by providing a computer storage medium in the present application embodiment. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any anomaly detection method in the above embodiment is implemented.
[0137] An embodiment of the present application also provides a computer program product, including a computer program, which implements any one of the anomaly detection methods in the above embodiments when the computer program is processed and executed.
[0138] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0139] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box 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, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0140] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. An anomaly detection method, characterized in that: include: Get the client's current target information; Determine a first indicator value corresponding to each sub-data in the target information, wherein each sub-data in the target information includes at least two of network information, page information, instruction information, operating environment information, operating system information, and application program operation information; Obtaining a weight corresponding to each of the sub-data, and determining an abnormality evaluation parameter of the client according to the first indicator value and the weight corresponding to each of the sub-data; In response to the abnormal evaluation parameter being greater than a first preset threshold, a prompt message is sent to the client, where the prompt message is used to indicate that an abnormality has occurred in the client.
2. The anomaly detection method according to claim 1, characterized in that: The step of sending prompt information to the client comprises: Determine a first target indicator value among the first indicator values, wherein a weight corresponding to the first target indicator value is greater than weights corresponding to other indicator values, or the first target indicator value is a first indicator value greater than a second preset threshold, and the other indicator values are the first indicator values other than the first target indicator value; Generate prompt information for priority detection based on the sub-data corresponding to the first target indicator value.
3. The anomaly detection method according to claim 1, characterized in that: The step of determining the abnormal evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data includes: Obtaining abnormal log information of the client; Determine a second indicator value corresponding to each abnormal data in the abnormal log information; The abnormality evaluation parameter is determined according to each of the second indicator values, the weight corresponding to each of the second indicator values, and each of the first indicator values and the weight corresponding to each of the first indicator values.
4. The anomaly detection method according to claim 1, characterized in that: The step of determining the abnormal evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data includes: Determine a second target indicator value among the first indicator values according to the first indicator values and the corresponding weights, wherein the second target indicator value is greater than a third preset threshold value and the weight corresponding to the second target indicator value is greater than a preset weight; A weighted calculation is performed based on each of the second target indicator values and the corresponding weights to obtain the abnormal evaluation parameters of the client.
5. The anomaly detection method according to claim 1, characterized in that: Before the step of determining the first indicator value corresponding to each sub-data in the target information, the method further includes: Extracting labels corresponding to the data in the target information; The data in the target information is classified according to the label to obtain each sub-data, and each sub-data corresponds to one label.
6. The anomaly detection method according to any one of claims 1 to 5, characterized in that: After the step of determining the abnormal evaluation parameter of the client according to the first indicator value and the weight corresponding to each of the sub-data, the method further includes: In response to the abnormal evaluation parameter being less than or equal to a first preset threshold, determining a first index value greater than a fourth preset threshold among the first index values as a third target index value; Generate recommended detection information of the sub-data corresponding to the third target indicator value, and send the recommended detection information to the client.
7. An abnormality detection device, characterized in that: include: The first acquisition module is used to obtain the current target information of the client; a determination module, configured to determine a first indicator value corresponding to each sub-data in the target information, wherein each sub-data in the target information includes at least two of network information, page information, instruction information, operating environment information, operating system information, and application program operation information; A second acquisition module is used to acquire a weight corresponding to each sub-data, and determine an abnormal evaluation parameter of the client according to the first indicator value and the weight corresponding to each sub-data; The sending module is used to send a prompt message to the client in response to the abnormal evaluation parameter being greater than a first preset threshold, wherein the prompt message is used to indicate that an abnormality occurs in the client.
8. An abnormality detection device, characterized in that: The anomaly detection device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the anomaly detection method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the anomaly detection method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the anomaly detection method as described in any one of claims 1 to 6.
