Abnormal data location method, device, computer equipment and storage medium
By calculating the difference support of frequent dimension data sets of abnormal and normal log data, the problem of low accuracy of abnormal data positioning in traditional technology is solved, and more accurate abnormal data positioning is achieved.
Patent Information
- Application Number
- CN202010368783.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-04-29
AI Technical Summary
In traditional technology, the method of analyzing anomaly monitoring logs by setting analysis rules in advance has the problem of low accuracy in analyzing and locating the root causes of anomalies.
By obtaining abnormal log data and normal log data, the conversion and frequent dimension data sets are calculated respectively, and the difference support is calculated, and then the abnormal target frequent dimension data combination is determined to improve the accuracy of abnormal data positioning.
The accuracy of abnormal data positioning is improved, making the obtained frequent dimensional data combination of abnormal targets more accurate and more effectively determining the root cause of abnormal monitoring indicators.
Smart Images

Figure CN111552684B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method, device, computer equipment and storage medium for locating abnormal data. Background Art
[0002] With the development of intelligent operation and maintenance technology, the indicators in the monitoring log are used to monitor whether users' access to web pages or websites is normal. When the indicators in the monitoring log are abnormal, the root cause (root cause) of the abnormality is analyzed for subsequent processing. For example, the total number of visits in a period of time suddenly increases. At this time, the total number of visits indicator is abnormal, and it is necessary to analyze the root cause of the sudden increase in the total number of visits. For example, the root cause of the sudden increase in the total number of visits is the increase in access requests in a certain area, so that the access requests in the area can be restricted to restore access to normal.
[0003] In traditional technology, when an indicator in a monitoring log is abnormal, the monitoring log with the abnormal indicator is usually analyzed according to a pre-set analysis rule to obtain the root cause of the abnormality.
[0004] However, the current method of analyzing abnormal monitoring logs by pre-setting analysis rules has the problem of low accuracy in locating the root cause of the abnormality. Summary of the invention
[0005] Based on this, it is necessary to provide an abnormal data locating method, device, computer equipment and storage medium that can improve the accuracy of abnormal data locating in response to the above technical problems.
[0006] A method for locating abnormal data, the method comprising:
[0007] Obtain abnormal log data and normal log data;
[0008] The normal log data and the abnormal log data are converted respectively to obtain a normal log set and an abnormal log set;
[0009] A corresponding first frequent dimension data set is calculated based on the dimension data in the normal log set, wherein the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and a corresponding second frequent dimension data set is calculated based on the dimension data in the abnormal log set, wherein the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support;
[0010] De-duplication and merging of frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set;
[0011] According to the first support corresponding to each first frequent dimension data combination and the second support corresponding to each second frequent dimension data combination, the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set is calculated;
[0012] The target frequent dimension data combinations in the target frequent dimension data set are sorted according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimension data of the target frequent dimension data combinations, and the abnormal target frequent dimension data combinations are determined according to the sorting results.
[0013] An abnormal data locating device, the device comprising:
[0014] The log processing module is used to obtain abnormal log data and normal log data; convert the normal log data and the abnormal log data respectively to obtain a normal log set and an abnormal log set;
[0015] A frequent set calculation module, used to calculate a corresponding first frequent dimension data set according to the dimension data in the normal log set, the first frequent dimension data set including each first frequent dimension data combination and the corresponding first support, and to calculate a corresponding second frequent dimension data set according to the dimension data in the abnormal log set, the second frequent dimension data set including each second frequent dimension data combination and the corresponding second support;
[0016] A target frequent set obtaining module is used to remove and merge the frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set;
[0017] A difference calculation module, used to calculate the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set according to the first support corresponding to each first frequent dimension data combination and the second support corresponding to each second frequent dimension data combination;
[0018] The anomaly determination module is used to sort the target frequent dimension data combinations in the target frequent dimension data set according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimensional data of the target frequent dimension data combinations, and determine the abnormal target frequent dimension data combinations according to the sorting results.
[0019] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0020] Obtain abnormal log data and normal log data;
[0021] The normal log data and the abnormal log data are converted respectively to obtain a normal log set and an abnormal log set;
[0022] A corresponding first frequent dimension data set is calculated based on the dimension data in the normal log set, wherein the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and a corresponding second frequent dimension data set is calculated based on the dimension data in the abnormal log set, wherein the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support;
[0023] De-duplication and merging of frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set;
[0024] According to the first support corresponding to each first frequent dimension data combination and the second support corresponding to each second frequent dimension data combination, the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set is calculated;
[0025] The target frequent dimension data combinations in the target frequent dimension data set are sorted according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimension data of the target frequent dimension data combinations, and the abnormal target frequent dimension data combinations are determined according to the sorting results.
[0026] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0027] Obtain abnormal log data and normal log data;
[0028] The normal log data and the abnormal log data are converted respectively to obtain a normal log set and an abnormal log set;
[0029] A corresponding first frequent dimension data set is calculated based on the dimension data in the normal log set, wherein the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and a corresponding second frequent dimension data set is calculated based on the dimension data in the abnormal log set, wherein the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support;
[0030] De-duplication and merging of frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set;
[0031] According to the first support corresponding to each first frequent dimension data combination and the second support corresponding to each second frequent dimension data combination, the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set is calculated;
[0032] The target frequent dimension data combinations in the target frequent dimension data set are sorted according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimension data of the target frequent dimension data combinations, and the abnormal target frequent dimension data combinations are determined according to the sorting results.
[0033] The above-mentioned abnormal data locating method, device, computer equipment and storage medium obtain the corresponding first frequent dimension data set by calculating according to the dimension data in the normal log set, and obtain the corresponding second frequent dimension data set by calculating according to the dimension data in the abnormal log set; then obtain the target frequent dimension data set according to the first frequent dimension data set and the second frequent dimension data set; obtain the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set by calculation; sort the target frequent dimension data combination in the target frequent dimension data set according to the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set and the number of dimension data of the target frequent dimension data combination, determine the abnormal target frequent dimension data combination according to the sorting result, and can compare and analyze the frequent dimension data combination of the normal log and the frequent dimension data combination of the abnormal log to obtain the difference support, so as to determine the root cause of the abnormality according to the difference support and the number of dimension data of the frequent dimension data combination, and can make the obtained abnormal target frequent dimension data combination more accurate, that is, improve the accuracy of abnormal data locating. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A diagram of an application environment of an abnormal data location method in an embodiment;
[0035] Figure 2 A schematic diagram of a flow chart of an abnormal data location method in one embodiment;
[0036] Figure 3 This is a schematic diagram of time period division in one embodiment;
[0037] Figure 4 A schematic diagram of a process for calculating a frequent dimension data set in one embodiment;
[0038] Figure 5 A schematic diagram of a flow chart of an abnormal data location method in another embodiment;
[0039] Figure 6 A schematic diagram of a process of calculating a first frequent dimension data set in one embodiment;
[0040] Figure 7 A schematic diagram of a process of calculating a first frequent dimension data set in another embodiment;
[0041] Figure 8 It is a flowchart of a method for locating abnormal data in another embodiment;
[0042] Fig. 9 is a schematic diagram of an abnormal third frequent dimension data combination obtained in a specific embodiment;
[0043] Fig.10 It is a flowchart of a method for locating abnormal data in a specific embodiment;
[0044] Fig.11 It is a schematic diagram of the architecture of a method for locating abnormal data in a specific embodiment;
[0045] Fig.12 for Fig.11 Schematic diagram of abnormal basic information obtained in the embodiment;
[0046] Fig.13 for Fig.11 A schematic diagram of the root cause of the abnormality calculated in the embodiment;
[0047] Fig.14 is a structural block diagram of an abnormal data locating device in one embodiment;
[0048] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The abnormal data location method provided in this application can be applied to Figure 1In the application environment shown. Among them, the management terminal 102 communicates with the server 104 through the network. The server 104 obtains abnormal log data and normal log data; converts the normal log data and the abnormal log data respectively to obtain a normal log set and an abnormal log set. The server 104 calculates the corresponding first frequent dimension data set based on the dimension data in the normal log set, and the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and calculates the corresponding second frequent dimension data set based on the dimension data in the abnormal log set, and the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support; the frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set are de-duplicated and merged to obtain the target frequent dimension data set. The server 104 calculates the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set based on the first support corresponding to each first frequent dimension data combination and the second support corresponding to each second frequent dimension data combination. The server 104 sorts the target frequent dimension data combinations in the target frequent dimension data set according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimension data of the target frequent dimension data combinations, determines the abnormal target frequent dimension data combinations according to the sorting result, and then sends the abnormal target frequent dimension data combinations to the management terminal 102 for display, so that the management personnel can view the abnormal target frequent dimension data combinations. The management terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0051] In one embodiment, Figure 2 As shown, a method for locating abnormal data is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0052] Step 202: Acquire abnormal log data and normal log data.
[0053] Among them, log data is a data sequence arranged in chronological order, which is a log of users visiting web pages or websites. Each time point corresponds to a log data, and each log data records the dimensional data corresponding to different dimensions. The dimensions in the log data may include: user location, network operator, data center, data request source, and monitoring KPI (Key Performance Indicator), etc. Each dimension corresponds to different dimensional data. For example, the user location may include different locations such as Beijing, Shanghai, and Guangzhou. Network operators may include China Mobile, China Unicom, and China Telecom, etc. Abnormal log data refers to log data when the monitoring KPI is abnormal, and normal log data refers to log data when the monitoring KPI is normal. Abnormal monitoring KPI means that the monitoring KPI exceeds the pre-set normal KPI range.
[0054] Specifically, the server can obtain abnormal log data and normal log data from historical log data. The server can also collect log data in real time and obtain abnormal log data and normal log data by monitoring KPI.
[0055] In one embodiment, step 202 includes the steps of:
[0056] Obtain monitoring log data, determine abnormal monitoring indicator data from the monitoring log data, obtain the corresponding abnormal time period based on the abnormal monitoring indicator data, obtain the log data corresponding to the abnormal time period from the monitoring log data, and obtain the abnormal log data; determine the corresponding historical time period based on the abnormal time period, and obtain the preset transition time period, calculate the historical normal time period based on the historical time period and the preset transition time period, obtain the log data corresponding to the historical normal time period from the monitoring log data, and obtain the normal log data.
[0057] Among them, abnormal monitoring indicator data refers to the KPI data after the monitoring KPI has an abnormality. The abnormal time period refers to the time period in the log when the abnormal monitoring indicator data appears. The historical time period refers to the time period before the abnormal time period, which is pre-set. For example, the three hours before the abnormal start time point of the abnormal time period is set as the historical time period. The preset transition time period refers to the pre-set transition period. Generally, the monitoring KPI transitions slowly from normal to abnormal. The time period when the monitoring KPI transitions slowly from normal to abnormal is called the transition time period. The transition time period can be set based on experience. Figure 3 The figure shows a schematic diagram of time periods divided according to monitoring KPIs.
[0058] Specifically, the server obtains monitoring log data, searches for abnormal monitoring indicator data that exceeds a preset monitoring indicator data range from the monitoring log data, thereby obtaining an abnormal time period corresponding to the abnormal monitoring indicator data, and obtaining abnormal log data based on the abnormal time period. Then, the historical time period is obtained based on the abnormal time period, and the historical normal time period is calculated based on the historical time period and the preset transition time period, and the log data corresponding to the historical normal time period is obtained from the monitoring log data to obtain normal log data. By filtering out the log data corresponding to the preset transition time period, the obtained normal log data can be made more accurate.
[0059] In a specific embodiment, as shown in Table 1, it is a monitoring log data table obtained.
[0060] Table 1 Monitoring log data table
[0061]
[0062] Among them, API is an application program interface. Monitoring KPIs include indicators such as the number of successful visits, the total number of visits, and the access success rate. When the monitoring KPI is abnormal for a period of time, the log data obtained during the abnormal time period is the abnormal log data. When the monitoring KPI is not abnormal, the log data obtained during the normal time period is the normal log data.
[0063] Step 204 , convert the normal log data and the abnormal log data respectively to obtain a normal log set and an abnormal log set.
[0064] A normal log set refers to a log transaction set consisting of all normal log data, with each log data in the normal log data as a log transaction. For example, the normal log data includes three logs, log A, log B, and log C, and the normal log set obtained by conversion is (A, B, C). An abnormal log set refers to a log transaction set consisting of all abnormal log data, with each log data in the abnormal log data as a log transaction. For example, the normal log data includes three logs, log D, log E, and log F, and the normal log set obtained by conversion is (D, E, F).
[0065] Specifically, the normal log data is converted to obtain a normal log set, and the abnormal log data is converted to obtain an abnormal log set. The normal log data and the abnormal log data may also be converted in parallel to obtain the abnormal log data and the abnormal log set.
[0066] In one embodiment, the normal log data and the abnormal log data include continuous log data and discrete log data, and step 204 includes the steps of:
[0067] Continuous log data in normal log data and abnormal log data are obtained, the continuous log data is discretized to obtain discretized normal log data and discretized abnormal log data, the discretized normal log data and the discretized abnormal log data are converted into log sets to obtain a normal log set and an abnormal log set.
[0068] Among them, continuous log data refers to data in log data that is obtained by counting and can only be calculated using integer or floating point units, that is, continuous log data is numerically continuous. For example, the number of visits, total number of visits, and access success rate, etc. Discrete log data refers to data values that are non-continuous and are expressed intermittently, such as geographic location, network operator, etc.
[0069] Specifically, the server obtains the continuous log data in the normal log data and the abnormal log data respectively, discretizes the continuous log data, and obtains the discretized normal log data and the discretized abnormal log data. Different discretization methods can be used for discretization. For example, the continuous log data can be discretized with equal width, that is, the continuous log data can be divided into intervals with the same width from the maximum value to the minimum value. The number of the divided intervals can be preset, and then the continuous log data is divided according to the intervals to obtain the discretized log data. For example, the access success rate is [0,100%], and the access success rate is discretized with equal width to obtain four intervals of [low (0-25%), general (25-50%), high (50-75%), and high (75-100%)]. When the access success rate in the normal log data is 87%, the access success rate after the history is higher. For example, the continuous log data can also be discretized with equal frequency. For example, the continuous log data can also be clustered and discretized. For example, continuous log data may be discretized based on information entropy or discretized based on chi-square, etc. Then, the discretized normal log data and the discretized abnormal log data are converted into log sets to obtain normal log sets and abnormal log sets.
[0070] Step 206: A corresponding first frequent dimension data set is calculated based on the dimension data in the normal log set, and the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support. A corresponding second frequent dimension data set is calculated based on the dimension data in the abnormal log set, and the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support.
[0071] Among them, dimension data refers to the data corresponding to the dimension in the log of the log set. For example, dimension data can be the data "Guangzhou" corresponding to the user location dimension in the log. Frequent dimension data set refers to a set composed of frequent dimension data combinations and corresponding support. Frequent dimension data combinations refer to dimension data combinations that frequently appear in log data. Dimension data combinations can be single dimension data, or they can be a combination of multiple dimension data. Each dimension data combination has a corresponding support. Dimension data combinations with support greater than a preset support threshold are frequent dimension data combinations. Support refers to the frequency of dimension data combinations appearing in the log set, that is, the ratio of the number of log data in the log set where all dimension data combinations appear to the number of all log data in the log set. For example, if there are 4 logs in the log set, when the dimension data combination (Shanghai, MC) appears in one log, and the dimension data combination (Shanghai, MC) does not appear in the other three logs, the support is 25%. Each dimension data combination has a corresponding support.
[0072] The first frequent dimension data set refers to a set consisting of each first frequent dimension data combination and the corresponding first support calculated based on the dimension data in the normal log set. The first frequent dimension data combination refers to the frequent dimension data combination in the dimension data in the normal log set, and the first support is the support corresponding to the first frequent dimension data combination.
[0073] The second frequent dimension data set refers to a set consisting of each second frequent dimension data combination and the corresponding second support calculated based on the dimension data in the abnormal log set. The second frequent dimension data combination refers to the frequent dimension data combination in the dimension data in the abnormal log set, and the second support is the support corresponding to the second frequent dimension data combination.
[0074] Specifically, the server calculates a corresponding first frequent dimension data set based on the dimension data in the normal log set, and the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and calculates a corresponding second frequent dimension data set based on the dimension data in the abnormal log set, and the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support.
[0075] In a specific embodiment, the first frequent dimension data set obtained is shown in Table 3:
[0076] Table 3 The first frequent dimension dataset table
[0077] Serial number The first frequent dimension data combination First support 1 Shanghai 30% 2 Shanghai, API 60% … … … N Chengdu, MC 65%
[0078] The obtained second frequent dimension data set is shown in Table 3:
[0079] Table 3 The second frequent dimension dataset table
[0080] Serial number The second frequent dimension data combination Second support 1 Shanghai 99% 2 Shanghai, API 85% … … … N Chengdu, MC 50%
[0081] Step 208: remove and merge the frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set.
[0082] The target frequent dimension data set refers to all non-repeated frequent dimension data sets in the first frequent dimension data set and the second frequent dimension data set.
[0083] Specifically, all frequent dimension data combinations are obtained based on the first frequent dimension data set and the second frequent dimension data set, and the same frequent dimension data combinations are removed to obtain the target frequent dimension data set. The target frequent dimension data set includes all the removed frequent dimension data combinations and the first support and second support corresponding to the frequent dimension data combinations. For example, the first frequent dimension data combination (Shanghai) and the first frequent dimension data combination (Shanghai) are removed to obtain the target frequent dimension data combination (Shanghai) in the target frequent dimension data set, and the first support 30% and the second support 99% corresponding to the frequent dimension data combination (Shanghai) are obtained.
[0084] Step 210: Calculate the difference support corresponding to the target frequent dimensional data combination in the target frequent dimensional data set according to the first support corresponding to each first frequent dimensional data combination and the second support corresponding to each second frequent dimensional data combination.
[0085] The target frequent dimension data combination refers to the frequent dimension data combination in the target frequent dimension data set. The difference support refers to the difference between the first support and the second support corresponding to the target frequent dimension data combination.
[0086] Specifically, the server obtains the first support and the second support corresponding to the target frequent dimension data combination in the target frequent dimension data set based on the first support corresponding to each first frequent dimension data combination and the second support corresponding to each second frequent dimension data combination, and then calculates the difference between the first support and the second support to obtain the differential support corresponding to the target frequent dimension data combination.
[0087] Step 212, sorting the target frequent dimensional data combinations in the target frequent dimensional data set according to the difference support corresponding to the target frequent dimensional data combinations in the target frequent dimensional data set and the number of dimensional data of the target frequent dimensional data combinations, and determining abnormal target frequent dimensional data combinations according to the sorting result.
[0088] The number of dimension data refers to the number of dimension data in the target frequent dimension data combination. For example, if the target frequent dimension data combination is (Shanghai), the number of dimension data is 1. If the target frequent dimension data combination is (Shanghai, API), the number of dimension data is 2. The abnormal target frequent dimension data combination refers to the target frequent dimension data combination corresponding to the root cause of the abnormal KPI.
[0089] Specifically, the target frequent dimension data combinations in the target frequent dimension data set are sorted according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimensional data of the target frequent dimension data combinations, and then the target frequent dimension data combination ranked first can be selected as the abnormal target frequent dimension data combination according to the sorting result.
[0090] In one embodiment, step 212 includes the steps of:
[0091] Determine each target frequent dimension data combination in the target frequent dimension data set, obtain the number of dimension data corresponding to each target frequent dimension data combination, and sort each target frequent dimension data combination using a preset sorting rule according to the difference support and the number of dimension data to obtain each sorted target frequent dimension data combination; select a preset number of target frequent dimension data combinations from each sorted target frequent dimension data combination to obtain abnormal target frequent dimension data combinations.
[0092] The preset sorting rule refers to a pre-set rule that can sort each target frequent dimension data combination, for example, sorting each target frequent dimension data combination according to the difference support from large to small and the number of dimension data from small to large. For another example, sorting each target frequent dimension data combination according to the difference support from large to small and the number of dimension data from large to small. The preset number refers to the pre-set number of abnormal target frequent dimension data combinations that need to be selected.
[0093] Specifically, the server determines each target frequent dimension data combination in the target frequent dimension data set, obtains the number of dimension data corresponding to each target frequent dimension data combination, and then sorts each target frequent dimension data combination using a preset sorting rule according to the difference support and the number of dimension data, and sequentially selects a preset number of target frequent dimension data combinations from each sorted target frequent dimension data combination, and uses the selected target frequent dimension data combinations as abnormal target frequent dimension data combinations. For example, the first three target frequent dimension data combinations in the sorting can be selected as abnormal target frequent dimension data combinations.
[0094] In one embodiment, the obtained abnormal target frequent dimension data combination can be returned to the monitoring terminal for display, which is convenient for monitoring personnel to view and facilitate subsequent processing.
[0095] In a specific embodiment, the information table of each sorted target frequent dimension data combination is shown in Table 4 below:
[0096] Table 4 Information table of target frequent dimension data combination
[0097]
[0098] Among them, the target frequent dimension data combinations (Shanghai) and (Shanghai, API) can be selected as abnormal target frequent dimension data combinations.
[0099] In the above abnormal data locating method, a corresponding first frequent dimension data set is obtained by calculating according to the dimension data in the normal log set, and a corresponding second frequent dimension data set is obtained by calculating according to the dimension data in the abnormal log set; then a target frequent dimension data set is obtained according to the first frequent dimension data set and the second frequent dimension data set; a differential support corresponding to a target frequent dimension data combination in the target frequent dimension data set is obtained by calculation; the target frequent dimension data combinations in the target frequent dimension data set are sorted according to the differential support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimension data of the target frequent dimension data combinations, and the abnormal target frequent dimension data combinations are determined according to the sorting result, and the frequent dimension data combinations of the normal logs and the frequent dimension data combinations of the abnormal logs can be compared and analyzed to obtain the differential support, so as to determine the root cause of the abnormality according to the differential support and the number of dimension data of the frequent dimension data combinations, so that the obtained abnormal target frequent dimension data combinations can be made more accurate, that is, the accuracy of abnormal data locating is improved.
[0100] In one embodiment, the server further screens the obtained abnormal target frequent dimension data combination according to pre-set expert experience to obtain the screened abnormal target frequent dimension data combination, thereby further making the obtained abnormal target frequent dimension data combination more accurate.
[0101] In one embodiment, Figure 4 As shown, step 206, that is, calculating the corresponding first frequent dimension data set according to the dimension data in the normal log set, the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and calculating the corresponding second frequent dimension data set according to the dimension data in the abnormal log set, the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support, includes the steps:
[0102] Step 402, determine each first dimension data in the normal log set, combine each first dimension data to obtain each candidate first dimension data combination, calculate the first support corresponding to each candidate first dimension data combination, filter from each candidate first dimension data combination according to the first support to obtain each first frequent dimension data combination, and obtain the first frequent dimension data set according to each first frequent dimension data combination and the corresponding first support.
[0103] Among them, the first dimension data refers to the dimension data of the logs in the normal log set, and the selected first dimension data combination refers to the combination of each first dimension data, which is all possible combinations. Each selected first dimension data combination can be all subsets corresponding to the normal log set. The selected first dimension data combination is the generated candidate item set. The first support refers to the support corresponding to the selected first dimension data combination.
[0104] Specifically, the server determines the first dimension data corresponding to each log in the normal log set, obtains each first dimension data, and then obtains all combinations of each first dimension data to obtain each first candidate first dimension data combination. The first support corresponding to each candidate first dimension data combination is calculated, that is, the frequency of occurrence of the candidate first dimension data combination in the logs of the normal log set is calculated. Then, according to the first support, the candidate first dimension data combinations are screened out. For example, the candidate first dimension data combinations whose first support exceeds a pre-set support threshold are screened out to obtain each first frequent dimension data combination, and then the first frequent dimension data set is obtained according to each first frequent dimension data combination and the corresponding first support.
[0105] Step 404, determine each second dimensional data in the abnormal log set, combine each second dimensional data to obtain each candidate second dimensional data combination, calculate the second support corresponding to each candidate second dimensional data combination, filter from each candidate second dimensional data combination according to the second support to obtain each second frequent dimensional data combination, and obtain a second frequent dimensional data set according to each second frequent dimensional data combination and the corresponding second support.
[0106] Among them, the second dimension data refers to the dimension data of the logs in the abnormal log set, and the selected second dimension data combination refers to the combination of each first dimension data, which is all possible combinations. Each second dimension data combination to be selected can refer to all subsets corresponding to the abnormal log set. The second support refers to the support corresponding to the second dimension data combination to be selected, that is, the frequency of the second dimension data combination to be selected appearing in the logs of the abnormal log set.
[0107] Specifically, the server determines the dimension data contained in the logs in the abnormal log set and obtains each second dimension data. The second dimension data are combined to obtain each candidate second dimension data combination. The server then calculates the second support corresponding to each candidate second dimension data combination, selects the candidate second dimension data combination whose second support exceeds the pre-set support threshold, obtains each second frequent dimension data combination, and obtains the second frequent dimension data set according to each second frequent dimension data combination and the corresponding second support. Among them, the support threshold for obtaining the second frequent dimension data combination can be the same as the support for obtaining the first frequent dimension data combination, or it can be different and can be set freely.
[0108] In the above embodiment, by obtaining the candidate dimensional data combinations, then calculating the support corresponding to each candidate dimensional data combination, then filtering out frequent dimensional data combinations by the support, and finally obtaining a frequent dimensional data set, the accuracy of obtaining the frequent dimensional data set can be improved.
[0109] In one embodiment, Figure 5 As shown, step 206, that is, calculating the corresponding first frequent dimension data set according to the dimension data in the normal log set, the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and calculating the corresponding second frequent dimension data set according to the dimension data in the abnormal log set, the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support, including:
[0110] Step 502: Calculate each first frequent dimension data combination and the corresponding first support using an association rule algorithm based on the dimension data in the normal log set, and obtain a first frequent dimension data set based on each first frequent dimension data combination and the corresponding first support.
[0111] Step 504: Calculate each second frequent dimension data combination and the corresponding second support using an association rule algorithm based on the dimension data in the abnormal log set, and obtain a second frequent dimension data set based on each second frequent dimension data combination and the corresponding second support.
[0112] The association rule algorithm is used to obtain frequent dimension data combinations based on the dimension data analysis in the log set, and calculate the support corresponding to the frequent dimension data combinations. The association rule algorithm includes but is not limited to the Apriori algorithm (a frequent item set algorithm for mining association rules) and the FP-Growth algorithm (a frequent item set mining algorithm based on the frequent pattern tree (FP-tree)).
[0113] Specifically, the server can use an association rule algorithm to calculate each first frequent dimension data combination from the dimension data in the normal log set, and then calculate the frequency of each first frequent dimension data combination in the log of the normal log set to obtain the corresponding first support, and then obtain the first frequent dimension data set based on each first frequent dimension data combination and the corresponding first support. The association rule algorithm can also be used in parallel to calculate each second frequent dimension data combination from the dimension data in the abnormal log set, and then calculate the frequency of each second frequent dimension data combination in the log of the normal log set to obtain the corresponding second support, and then obtain the second frequent dimension data set based on each second frequent dimension data combination and the corresponding second support, wherein the association rule algorithms used can be the same or different. For example, the Apriori algorithm is used to calculate each first frequent dimension data combination and the first support corresponding to the normal log set. The FP-Growth algorithm is used to calculate each second frequent dimension data combination and the second support corresponding to the normal log set.
[0114] In the above embodiment, an association rule algorithm may be used to calculate frequent dimension data combinations and corresponding supports, which can improve calculation efficiency, and then obtain a frequent dimension data set, thereby improving the efficiency of obtaining the frequent dimension data set.
[0115] In one embodiment, Figure 6 As shown, step 502, i.e., using an association rule algorithm to calculate each first frequent dimension data combination and the corresponding first support according to the dimension data in the normal log set, includes:
[0116] Step 602, determine each candidate one-dimensional data corresponding to the normal log set, and calculate the support corresponding to each candidate one-dimensional data, filter from each candidate one-dimensional data according to the support corresponding to each candidate one-dimensional data, obtain frequent one-dimensional data, and use the frequent one-dimensional data as the current frequent dimensional data combination.
[0117] The candidate one-dimensional data refers to a dimension data combination with only one dimension data, and the frequent one-dimensional data refers to the frequent dimension data in the candidate one-dimensional data.
[0118] Specifically, the server uses all dimension data in the logs of the normal log set as candidate one-dimensional data, and the same dimension data as the same candidate one-dimensional data. Then, the frequency of each candidate one-dimensional data in the logs of the normal log set is calculated to obtain the support corresponding to each candidate one-dimensional data, and then each candidate one-dimensional data is screened to obtain frequent one-dimensional data, and the frequent one-dimensional data is used as the current frequent dimension data combination.
[0119] Step 604, connect the current frequent dimensional data combinations to obtain various candidate two-dimensional data combinations. When a subset of the target candidate two-dimensional data combination in each candidate two-dimensional data combination is not in the current frequent dimensional data combination, delete the target candidate two-dimensional data combination from each candidate two-dimensional data combination to obtain various preliminary frequent two-dimensional data combinations.
[0120] Among them, the candidate two-dimensional data combination refers to a dimensional data combination consisting of two dimensional data. The target candidate two-dimensional data combination refers to a subset of the candidate two-dimensional data combination that is not in the current frequent dimensional data combination. The subset of the target candidate two-dimensional data combination refers to one dimensional data in the candidate two-dimensional data combination. The subset of the target candidate two-dimensional data combination is a non-frequent dimensional data combination.
[0121] Specifically, each current frequent dimensional data combination is connected to obtain each candidate two-dimensional data combination, and the target candidate two-dimensional data combination is first deleted from each candidate two-dimensional data combination to obtain each preliminary frequent two-dimensional data combination. When the target candidate two-dimensional data combination does not exist in each candidate two-dimensional data combination, each candidate two-dimensional data combination is directly used as each preliminary frequent two-dimensional data combination.
[0122] Step 606, calculating the support corresponding to each preliminary selected frequent two-dimensional data combination, and screening from each preliminary selected frequent two-dimensional data combination according to the support corresponding to each preliminary selected frequent two-dimensional data combination to obtain frequent two-dimensional data combinations.
[0123] Step 608, taking the frequent two-dimensional data combination as the current frequent dimension data combination, and returning to the step of connecting the current frequent dimension data combination until the current frequent dimension data combination is empty, taking all the current frequent dimension data combinations obtained as each first frequent dimension data combination, and obtaining the first support corresponding to each first frequent dimension data combination.
[0124] Specifically, the server calculates the support corresponding to each preliminary frequent two-dimensional data combination, and then screens it to obtain a frequent two-dimensional data combination, takes the frequent two-dimensional data combination as the current frequent dimension data combination, and returns to step S604 for execution until the current frequent dimension data combination is empty, that is, after the current frequent dimension data combination is connected, the dimension data combination obtained is the current frequent dimension data combination, that is, it has not changed. When the subset of the current frequent dimension data combination is a non-frequent dimension data combination, the current frequent dimension data combination is deleted at this time, that is, the current frequent dimension data combination is obtained as empty. At this time, the server takes all the current frequent dimension data combinations that have not been deleted as each first frequent dimension data combination, and determines the first support corresponding to each first frequent dimension data combination.
[0125] In one embodiment, the same method may be used to calculate each second frequent dimension data combination and the corresponding second support corresponding to the abnormal log set, that is, the Apriori algorithm may be used to calculate each second frequent dimension data combination and the corresponding second support.
[0126] In the above embodiment, frequent one-dimensional data is obtained by screening, and then the frequent one-dimensional data is spliced to obtain candidate two-dimensional data combinations, and then the candidate two-dimensional data combinations are screened, and the above steps are repeated until the current frequent dimension data combination is empty, all the screened frequent dimension data are used as first frequent dimension data combinations, and the first support corresponding to each first frequent dimension data combination is determined. By using frequent one-dimensional data for splicing and then screening, the amount of calculation can be reduced and the efficiency of obtaining each first frequent dimension data combination and the corresponding first support can be improved.
[0127] In one embodiment, Figure 7 As shown, step 502, i.e., using an association rule algorithm to calculate each first frequent dimension data combination and the corresponding first support according to the dimension data in the normal log set, includes:
[0128] Step 702, determine each candidate one-dimensional data corresponding to the normal log set, and calculate the support corresponding to each candidate one-dimensional data, filter from each candidate one-dimensional data according to the support corresponding to each candidate one-dimensional data, obtain frequent one-dimensional data, and sort the frequent one-dimensional data combinations according to the corresponding support to obtain sorted frequent one-dimensional data combinations.
[0129] Step 704 , sort the dimensional data in the normal log set according to the sorted frequent one-dimensional data combinations to obtain a sorted normal log set.
[0130] Specifically, the server sorts each of the obtained frequent one-dimensional data from large to small according to the corresponding support, and obtains a sorted frequent one-dimensional data combination. Then, the dimension data in the logs of the normal log set is sorted according to the sorted frequent one-dimensional data group, that is, the dimension data in the logs are sorted in turn according to the size of the support, and each log is sorted to obtain a sorted normal log set.
[0131] Step 706: Generate a corresponding frequent pattern tree based on the sorted normal log set, and use the frequent pattern tree to calculate and obtain each first frequent dimension data combination and the corresponding first support.
[0132] Specifically, the frequent pattern tree refers to the FP-tree (Frequent Pattern Tree, FP tree) generated according to the sorted normal log set. FP-tree is a special prefix tree, which consists of a frequent item header table and an item prefix tree. Among them, the frequent item header table stores each candidate one-dimensional data and the corresponding support.
[0133] Then, the frequent pattern tree is used to mine the first frequent dimension data combination, and each first frequent dimension data combination and the corresponding first support are obtained. That is, the conditional FP tree is obtained by traversing the frequent item header table in forward order, and the conditional FP tree is used to obtain the conditional pattern base. The extraction and recursive mining according to the pattern base are used. When the root node is mined, each first frequent dimension data combination and the corresponding first support are obtained.
[0134] In one embodiment, the same method may be used to calculate each second frequent dimension data combination and the corresponding second support corresponding to the abnormal log set, that is, the FP-Growth algorithm may be used to calculate each second frequent dimension data combination and the corresponding second support.
[0135] In the above embodiment, by constructing a frequent pattern tree and using the frequent pattern tree to calculate and obtain each first frequent dimension data combination and the corresponding first support, the efficiency of obtaining each first frequent dimension data combination and the corresponding first support can be further improved.
[0136] In one embodiment, after step S206, that is, after calculating the corresponding first frequent dimension data set according to the dimension data in the normal log set, the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and calculating the corresponding second frequent dimension data set according to the dimension data in the abnormal log set, the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support, further comprising:
[0137] Delete the first parent frequent dimension data combination in each first frequent dimension data combination, where the first parent frequent dimension data combination refers to the first frequent dimension data combination in which a sub-frequent dimension data combination exists in each first frequent dimension data combination; delete the second parent frequent dimension data combination in each second frequent dimension data combination, where the second parent frequent dimension data combination refers to the second frequent dimension data combination in which a sub-frequent dimension data combination exists in each second frequent dimension data combination.
[0138] Among them, the sub-frequent dimension data combination refers to the frequent dimension data combination in which the parent frequent dimension data combination exists in each frequent dimension data combination, that is, the parent frequent dimension data combination includes the sub-frequent dimension data combination, and the number of dimension data in the parent frequent dimension data combination is greater.
[0139] Specifically, the server searches for the first parent frequent dimension data combination in each obtained first frequent dimension data combination, that is, determines whether the first frequent dimension data combination has a corresponding child frequent dimension data combination, and if so, deletes the first parent frequent dimension data combination in each first frequent dimension data combination. At the same time, the server searches for the second parent frequent dimension data combination in each obtained second frequent dimension data combination, that is, determines whether the second frequent dimension data combination has a corresponding child frequent dimension data combination, and if so, deletes the second parent frequent dimension data combination in each second frequent dimension data combination.
[0140] In one embodiment, the server may also, in step 212, after sorting the target frequent dimension data combinations in the target frequent dimension data set according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimension data of the target frequent dimension data combinations, find the parent target frequent dimension data combination from the sorting result, and delete the parent target frequent dimension data combination in the target frequent dimension data combination to obtain the deleted target frequent dimension data combination. The parent target frequent dimension data combination refers to the target frequent dimension data combination in which the child target frequent dimension data combination exists in each target frequent dimension data combination. That is, searching for the parent target frequent dimension data combination after sorting can improve the efficiency of searching for the parent target frequent dimension data combination, thereby improving the efficiency of deleting the parent target frequent dimension data combination.
[0141] In one embodiment, a first target frequent dimension data combination to be merged and a second target frequent dimension data combination to be merged may also be determined from the deleted target frequent dimension data combination, and the first target frequent dimension data combination to be merged and the second target frequent dimension data combination to be merged are merged to obtain a merged target frequent dimension data combination, wherein the first target frequent dimension data combination to be merged and the second target frequent dimension data combination to be merged have more than a preset number of identical dimension data, and the support difference between the first target frequent dimension data combination to be merged and the second target frequent dimension data combination to be merged is within a preset difference range. For example, the support difference is within 10%.
[0142] In the above embodiment, by deleting the parent frequent dimension data combination in each frequent dimension data combination, each obtained frequent dimension data combination can be made more accurate.
[0143] In one embodiment, Figure 8 As shown, the abnormal data locating method further includes:
[0144] Step 802, obtaining target abnormal log data, the number of dimensions in the target abnormal log data is less than the preset number of dimensions, and the dimension data type corresponding to the dimension is less than the preset number of types.
[0145] Among them, the target abnormal log data refers to abnormal log data in which the number of dimensions is less than the preset number of dimensions, and the dimension data type corresponding to the dimension is less than the preset number of types. The preset number of dimensions refers to the number of dimensions included in the preset target abnormal log data. For example, the dimensions in the target abnormal log data are less than five. The preset number of types refers to the number of dimension data types in the preset target abnormal log data. For example, the dimension data types of each dimension are less than five.
[0146] Specifically, when the number of dimensions in the obtained abnormal log data is less than the preset number of dimensions, and the dimension data types corresponding to the dimensions are less than the preset number of types, it indicates that the obtained abnormal log data is the target abnormal log data.
[0147] In a specific embodiment, the monitored abnormal log data only includes two dimensions, namely the regional dimension and the operator dimension. There are only three types of dimension data types corresponding to the regional dimension, including Guangzhou, Shanghai and Beijing. There are only three types of dimension data types corresponding to the operator dimension, including China Unicom, China Mobile and China Telecom. At this time, the abnormal log data is the target abnormal log data.
[0148] Step 804: convert the target exception log data into a target exception log set.
[0149] Step 806: Calculate a corresponding third frequent dimension data set according to the dimension data in the target abnormal log set, where the third frequent dimension data set includes each third frequent dimension data combination and the corresponding third support.
[0150] Step 808: determine the target dimensional data quantity corresponding to each third frequent dimensional data combination, sort each third frequent dimensional data combination according to the third support and the dimensional data quantity, and determine the target third frequent dimensional data combination according to the sorting result.
[0151] Among them, the third frequent dimension data combination refers to the frequent dimension data combination obtained by mining the frequent item sets of the dimension data in the target abnormal log set. The third support refers to the support corresponding to the third frequent dimension data combination, which is used to indicate the frequency of the third frequent dimension data combination appearing in the logs of the target abnormal log set. The target dimension data quantity refers to the quantity of dimension data in the third frequent dimension data combination. The target third frequent dimension data combination refers to the dimension data corresponding to the root cause of the abnormality of the target abnormal log data, that is, the combination of suspicious dimension data of the abnormality of the target abnormal log data.
[0152] Specifically, when the target abnormality log data is obtained, the target abnormality log data is directly used to mine frequent dimension data combinations, that is, the target abnormality log data is converted into a target abnormality log set, and then the dimension data in the target abnormality log set is calculated to obtain the corresponding third frequent dimension data set, and then the target dimension data quantity corresponding to each third frequent dimension data combination is sorted according to the third support and the number of dimension data, and a pre-set number of third frequent dimension data combinations are selected from the sorting results in order of support from high to low and the number of dimension data from large to small. For example, if the pre-set number is 3, then 3 third frequent dimension data combinations are selected in order from support from high to low and the number of dimension data from large to small, and the obtained third frequent dimension data combination is used as the target third frequent dimension data combination, so as to obtain the root cause of the abnormality.
[0153] In the above embodiment, when target abnormal log data is obtained, the target abnormal log data is directly used to mine frequent dimension data combinations, which can improve the efficiency of obtaining the target third frequent dimension data combinations.
[0154] In one embodiment, in step 808, that is, after sorting each third frequent dimension data combination according to the third support and the number of dimension data, the method further includes:
[0155] Obtain each of the sorted third frequent dimension data combinations, and determine the third parent frequent dimension data combination and the third child frequent dimension data combination from each of the sorted third frequent dimension data combinations. The third child frequent dimension data combination is a subset of the third parent frequent dimension data combination, and the abnormal difference between the support corresponding to the third child frequent dimension data and the support corresponding to the third parent frequent dimension data combination is less than a preset abnormal difference threshold. Delete the third child frequent dimension data combination from each of the sorted abnormal frequent dimension data combinations to obtain each of the deleted third frequent dimension data combinations.
[0156] Specifically, the third child frequent dimension data combination is a subset of the third parent frequent dimension data combination, which means that the third parent frequent dimension data combination includes the third child frequent dimension data combination. For example, the third frequent dimension data combination includes (a1, b1→abnormal) and (a1→abnormal). Its abnormal difference is less than the preset abnormal difference threshold, and (a1→abnormal) is included in (a1, b1→abnormal), then (a1, b1→abnormal) is the third parent frequent dimension data combination, and (a1→abnormal) is the third child frequent dimension data combination. When the server determines the third parent frequent dimension data combination and the third child frequent dimension data combination from each of the sorted third frequent dimension data combinations, the server deletes the third child frequent dimension data combination from each of the sorted abnormal frequent dimension data combinations to obtain each of the deleted third frequent dimension data combinations, and then screens each of the deleted third frequent dimension data combinations to obtain an abnormal third frequent dimension data combination. The accuracy of obtaining an abnormal third frequent dimension data combination can be further improved.
[0157] In one embodiment, after deleting the third sub-frequent dimension data combination from each of the sorted abnormal frequent dimension data combinations to obtain each of the deleted third frequent dimension data combinations, the method further includes:
[0158] Determine the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged from each of the deleted third frequent dimension data combinations, there is a preset number of identical dimension data between the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged, and the difference between the support corresponding to the first frequent dimension data combination to be merged and the support corresponding to the second frequent dimension data to be merged does not exceed a preset merging threshold. Merge the first frequent dimension data combination to be merged with the second frequent dimension data combination to be merged to obtain a merged third frequent dimension data combination.
[0159] The preset number refers to the preset number of data with the same dimension, for example, the preset number is 2 data with the same dimension or more than 2 data with the same dimension.
[0160] Specifically, the server determines all first frequent dimension data combinations to be merged and second frequent dimension data combinations to be merged from the deleted third frequent dimension data combinations, and then merges all first frequent dimension data combinations to be merged and second frequent dimension data combinations to be merged to obtain a merged third frequent dimension data combination.
[0161] For example, the first frequent dimensional data combination to be merged is (a1, b1, c1→abnormal), and the second frequent dimensional data combination to be merged is (a2, b1, c1→abnormal). There are two identical dimensional data b1 and c1, and the difference between the support degrees does not exceed the preset merging threshold. Then the first frequent dimensional data combination to be merged is merged with the second frequent dimensional data combination to be merged, and the merged third frequent dimensional data combination is (a1&a2, b1, c1→abnormal).
[0162] In one embodiment, when the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged have and only have one identical dimension data, and the difference between the support corresponding to the first frequent dimension data combination to be merged and the support corresponding to the second frequent dimension data to be merged does not exceed the preset merging threshold, the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged can be merged to obtain a merged third frequent dimension data combination. For example, the first frequent dimension data combination to be merged is (a1, b1, c1→abnormal), and the second frequent dimension data combination to be merged is (a2, b1, c2→abnormal), then there is only the same dimension data of b1, and the difference between the supports does not exceed the preset merging threshold, then the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged are merged, and the merged third frequent dimension data combination obtained is (a1&a2, b1, c1&c2→abnormal).
[0163] In a specific embodiment, the merged third frequent dimension data combination can be used for screening to obtain abnormal third frequent dimension data combination, and the abnormal third frequent dimension data combination can be sent to the management terminal for display. Fig. 9 As shown, it is a schematic diagram of an abnormal third frequent dimension data combination, wherein the third frequent dimension data combination is (a1, b1&b2, c1&c2), and the dimensions corresponding to the dimensional data are client IP, reporting machine and user number respectively.
[0164] In the above embodiment, frequent dimensional data combinations with the same dimensional data are merged to obtain a merged third frequent dimensional data combination, and then the merged third frequent dimensional data combination can be used for screening to obtain an abnormal third frequent dimensional data combination, which can make the obtained abnormal third frequent dimensional data combination more accurate.
[0165] In a specific embodiment, Fig.10 As shown, the abnormal data locating method specifically includes the following steps:
[0166] Step 1002, obtain monitoring log data, determine abnormal monitoring indicator data from the monitoring log data, obtain the corresponding abnormal time period according to the abnormal monitoring indicator data, obtain log data corresponding to the abnormal time period from the monitoring log data, and obtain abnormal log data.
[0167] Step 1004, determine the corresponding historical time period according to the abnormal time period, and obtain the preset transition time period, calculate the historical normal time period according to the historical time period and the preset transition time period, obtain the log data corresponding to the historical normal time period from the monitoring log data, and obtain normal log data.
[0168] Step 1006, obtain the continuous log data in the normal log data and the abnormal log data, discretize the continuous log data to obtain the discretized normal log data and the discretized abnormal log data, convert the discretized normal log data and the discretized abnormal log data into log sets to obtain the normal log set and the abnormal log set.
[0169] Step 1008: Calculate each first frequent dimension data combination and the corresponding first support using an association rule algorithm based on the dimension data in the normal log set, and obtain a first frequent dimension data set based on each first frequent dimension data combination and the corresponding first support.
[0170] Step 1010: Calculate each second frequent dimension data combination and the corresponding second support using an association rule algorithm based on the dimension data in the abnormal log set, and obtain a second frequent dimension data set based on each second frequent dimension data combination and the corresponding second support.
[0171] Step 1012: remove and merge the frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set.
[0172] Step 1014: calculate the difference support corresponding to the target frequent dimensional data combination in the target frequent dimensional data set according to the first support corresponding to each first frequent dimensional data combination and the second support corresponding to each second frequent dimensional data combination.
[0173] Step 1016: sort the target frequent dimensional data combinations in the target frequent dimensional data set according to the difference support corresponding to the target frequent dimensional data combinations in the target frequent dimensional data set and the number of dimensional data of the target frequent dimensional data combinations.
[0174] Step 1020: Find the parent target frequent dimension data combination from the sorting result, and delete the parent target frequent dimension data combination in the target frequent dimension data combination to obtain the deleted target frequent dimension data set.
[0175] Step 1022: determine the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged from the deleted target frequent dimension data set, merge the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged to obtain a merged target frequent dimension data set, and filter out the target frequent dimension data combination corresponding to the maximum support and the minimum number of dimension data from the merged target frequent dimension data set as the abnormal target frequent dimension data combination.
[0176] The present application also provides an application scenario, and the application scenario applies the above abnormal data location method. Specifically, the application of the abnormal data location method in the application scenario is as follows:
[0177] like Fig.11 The figure shows the schematic diagram of the architecture of the abnormal data location method. Specifically:
[0178] The server obtains logs through the business layer and divides the logs into normal and abnormal. That is, the server monitors the logs of accessing web pages and obtains basic information about the abnormality, such as Fig.12 The following is a schematic diagram of the basic information of log anomalies. It includes the occurrence time, duration and recovery time. The time period when the abnormal log appears is obtained from the basic information, and the page access log data corresponding to the time period is obtained to obtain the abnormal log data. Then, the time period of the normal log is determined by the time period when the abnormal log appears, and the page access log data corresponding to the normal log time is obtained to obtain the normal log data.
[0179] The server then performs data preprocessing on the obtained abnormal log data and normal log data through the data layer, that is, discretizing the continuous log data and converting the discretized log data into a log set, thus obtaining a normal log set and an abnormal log set.
[0180] Thus, the mining algorithm of frequent itemsets is used to mine the normal log set and the abnormal log set through the algorithm layer, and the normal frequent itemsets and normal support corresponding to the normal log set are obtained, and the abnormal frequent itemsets and abnormal support corresponding to the abnormal log set are obtained. The normal frequent itemsets can be called normal patterns, and the abnormal frequent itemsets can be called abnormal patterns. The number of elements corresponding to the normal frequent itemsets and the abnormal frequent itemsets is determined. Then, the obtained normal frequent itemsets are sorted according to the normal support and the number of elements to obtain the sorted normal frequent itemsets. At the same time, the obtained abnormal frequent itemsets are sorted according to the abnormal support and the number of elements to obtain the sorted abnormal frequent itemsets. Then, the sorted normal frequent itemsets and the sorted abnormal frequent itemsets are pruned, that is, the parent frequent itemsets with child frequent itemsets are deleted. The pruned normal frequent itemsets and abnormal frequent itemsets are obtained.
[0181] Finally, the decision layer makes a decision, calculates the difference support between the normal support and abnormal support corresponding to the pruned normal frequent item sets and abnormal frequent item sets, and determines the number of elements in the frequent item sets. That is, the normal support, abnormal support, support difference value and number of elements corresponding to all pruned frequent item sets are obtained. Then, they are sorted from large to small according to the support difference value and the number of elements from small to large, and the top three frequent item sets are output. That is, the dimensions and dimensional data corresponding to the root cause of the abnormal indicators are obtained, and the dimensions and corresponding dimensional data are sent to the monitoring terminal for display. Fig.13 The following is a schematic diagram of the root cause of the anomaly. The suspicious dimensions include the client IP, reporting machine, and user number. The client IP corresponds to an IP address of "10.210.XXX.XXX", and the address of the reporting machine includes two addresses "10.210.XXX.XXX" and "10.210.XXX.XXX". The user number also includes two addresses "1001" and "1003".
[0182] It should be understood that although Figure 2 , 4 The steps in the flowcharts of -8 and 10 are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , 4 -At least part of the steps in 8 and 10 may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0183] In one embodiment, Fig.14 As shown, an abnormal data locating device 1400 is provided. The device can adopt a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes: a log processing module 1402, a frequent set calculation module 1404, a target frequent set acquisition module 1406, a difference calculation module 1408 and an abnormality determination module 1410, wherein:
[0184] The log processing module 1402 is used to obtain abnormal log data and normal log data; convert the normal log data and the abnormal log data respectively to obtain a normal log set and an abnormal log set;
[0185] The frequent set calculation module 1404 is used to calculate the corresponding first frequent dimension data set according to the dimension data in the normal log set, the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and calculate the corresponding second frequent dimension data set according to the dimension data in the abnormal log set, the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support;
[0186] A target frequent set obtaining module 1406 is used to remove and merge the frequent dimension data sets in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set;
[0187] A difference calculation module 1408 is used to calculate the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set according to the first support corresponding to each first frequent dimension data combination and the second support corresponding to each second frequent dimension data combination;
[0188] The abnormality determination module 1410 is used to sort the target frequent dimension data combinations in the target frequent dimension data set according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimension data of the target frequent dimension data combinations, and determine the abnormal target frequent dimension data combinations according to the sorting results.
[0189] In one embodiment, the log processing module 1402 includes: a log acquisition unit, which is used to acquire monitoring log data, determine abnormal monitoring indicator data from the monitoring log data, acquire the corresponding abnormal time period according to the abnormal monitoring indicator data, acquire the log data corresponding to the abnormal time period from the monitoring log data, and acquire the abnormal log data; determine the corresponding historical time period according to the abnormal time period, and acquire the preset transition time period, calculate the historical normal time period according to the historical time period and the preset transition time period, acquire the log data corresponding to the historical normal time period from the monitoring log data, and acquire the normal log data.
[0190] In one embodiment, the log processing module 1402 includes: a log discretization unit, which is used to obtain continuous log data in normal log data and abnormal log data, discretize the continuous log data to obtain discretized normal log data and discretized abnormal log data; convert the discretized normal log data and the discretized abnormal log data into log sets to obtain normal log sets and abnormal log sets.
[0191] In one embodiment, the frequent set calculation module 1404 includes:
[0192] A first normal calculation unit is used to determine each first dimensional data in the normal log set, combine each first dimensional data to obtain each candidate first dimensional data combination, calculate the first support corresponding to each candidate first dimensional data combination, screen each candidate first dimensional data combination according to the first support to obtain each first frequent dimensional data combination, and obtain a first frequent dimensional data set according to each first frequent dimensional data combination and the corresponding first support;
[0193] The first anomaly calculation unit is used to determine each second dimensional data in the anomaly log set, combine each second dimensional data to obtain each candidate second dimensional data combination, calculate the second support corresponding to each candidate second dimensional data combination, screen from each candidate second dimensional data combination according to the second support to obtain each second frequent dimensional data combination, and obtain a second frequent dimensional data set according to each second frequent dimensional data combination and the corresponding second support.
[0194] In one embodiment, the frequent set calculation module 1404 includes:
[0195] A second normal calculation unit is used to calculate each first frequent dimension data combination and the corresponding first support by using an association rule algorithm according to the dimension data in the normal log set, and obtain a first frequent dimension data set according to each first frequent dimension data combination and the corresponding first support;
[0196] The second anomaly calculation unit is used to calculate each second frequent dimensional data combination and the corresponding second support by using an association rule algorithm according to the dimensional data in the anomaly log set, and obtain a second frequent dimensional data set according to each second frequent dimensional data combination and the corresponding second support.
[0197] In one embodiment, the second normal calculation unit is further used to determine each candidate one-dimensional data corresponding to the normal log set, and calculate the support corresponding to each candidate one-dimensional data, screen from each candidate one-dimensional data according to the support corresponding to each candidate one-dimensional data, obtain frequent one-dimensional data, and use the frequent one-dimensional data as the current frequent dimension data combination; connect the current frequent dimension data combination to obtain each candidate two-dimensional data combination, when the subset of the target candidate two-dimensional data combination in each candidate two-dimensional data combination is not in the current frequent dimension data combination, delete the target candidate two-dimensional data combination from each candidate two-dimensional data combination to obtain each preliminary frequent two-dimensional data combination; calculate the support corresponding to each preliminary frequent two-dimensional data combination, screen from each preliminary frequent two-dimensional data combination according to the support corresponding to each preliminary frequent two-dimensional data combination to obtain a frequent two-dimensional data combination; use the frequent two-dimensional data combination as the current frequent dimension data combination, and return to the step of connecting the current frequent dimension data combination until the current frequent dimension data combination is empty, and use all the obtained current frequent dimension data combinations as each first frequent dimension data combination, and obtain the first support corresponding to each first frequent dimension data combination.
[0198] In one embodiment, the second abnormal calculation unit is also used to determine each candidate one-dimensional data corresponding to the normal log set, and calculate the support corresponding to each candidate one-dimensional data, screen from each candidate one-dimensional data according to the support corresponding to each candidate one-dimensional data, obtain frequent one-dimensional data, and sort the frequent one-dimensional data combinations according to the corresponding support to obtain sorted frequent one-dimensional data combinations; sort the dimensional data in the normal log set according to the sorted frequent one-dimensional data combinations to obtain a sorted normal log set; generate a corresponding frequent pattern tree based on the sorted normal log set, and use the frequent pattern tree to calculate each first frequent dimensional data combination and the corresponding first support.
[0199] In one embodiment, the abnormal data locating device 1400 further includes:
[0200] The first deleting module is used to delete the first parent frequent dimension data combination in each first frequent dimension data combination, where the first parent frequent dimension data combination refers to the first frequent dimension data combination with a child frequent dimension data combination in each first frequent dimension data combination; and delete the second parent frequent dimension data combination in each second frequent dimension data combination, where the second parent frequent dimension data combination refers to the second frequent dimension data combination with a child frequent dimension data combination in each second frequent dimension data combination.
[0201] In one embodiment, the abnormality determination module 1410 includes:
[0202] A sorting unit is used to determine each target frequent dimension data combination in the target frequent dimension data set, obtain the number of dimension data corresponding to each target frequent dimension data combination, and sort each target frequent dimension data combination according to the difference support and the number of dimension data using a preset sorting rule to obtain each sorted target frequent dimension data combination; select a preset number of target frequent dimension data combinations from each sorted target frequent dimension data combination to obtain abnormal target frequent dimension data combinations.
[0203] In one embodiment, the abnormal data locating device 1400 further includes:
[0204] A target acquisition module is used to acquire target abnormal log data, wherein the number of dimensions in the target abnormal log data is less than the preset number of dimensions, and the dimension data type corresponding to the dimension is less than the preset number of types;
[0205] A target conversion module, used for converting target exception log data into a target exception log set;
[0206] A calculation module, used for calculating a corresponding third frequent dimension data set according to the dimension data in the target abnormal log set, wherein the third frequent dimension data set includes each third frequent dimension data combination and the corresponding third support;
[0207] The combination determination module is used to determine the target dimensional data quantity corresponding to each third frequent dimensional data combination, sort each third frequent dimensional data combination according to the third support and the dimensional data quantity, and determine the target third frequent dimensional data combination according to the sorting result.
[0208] In one embodiment, the abnormal data locating device 1400 further includes:
[0209] The second deleting module is used to obtain each sorted third frequent dimension data combination, determine the third parent frequent dimension data combination and the third child frequent dimension data combination from each sorted third frequent dimension data combination; wherein the third child frequent dimension data combination is a subset of the third parent frequent dimension data combination, and the abnormal difference between the support corresponding to the third child frequent dimension data and the support corresponding to the third parent frequent dimension data combination is less than a preset abnormal difference threshold; delete the third child frequent dimension data combination from each sorted abnormal frequent dimension data combination to obtain each deleted third frequent dimension data combination.
[0210] In one embodiment, the abnormal data locating device 1400 further includes:
[0211] A merging module is used to determine a first frequent dimensional data combination to be merged and a second frequent dimensional data combination to be merged from each deleted third frequent dimensional data combination, there is a preset number of identical dimensional data between the first frequent dimensional data combination to be merged and the second frequent dimensional data combination to be merged, and the difference between the support corresponding to the first frequent dimensional data combination to be merged and the support corresponding to the second frequent dimensional data to be merged does not exceed a preset merging threshold; merge the first frequent dimensional data combination to be merged with the second frequent dimensional data combination to be merged to obtain a merged third frequent dimensional data combination.
[0212] For the specific definition of the abnormal data locating device, please refer to the definition of the abnormal data locating method above, which will not be repeated here. Each module in the above abnormal data locating device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0213] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.15 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store log data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an abnormal data locating method is implemented.
[0214] Those skilled in the art will understand that Fig.15 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0215] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0216] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0217] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0218] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0219] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for locating abnormal data, characterized in that: The method comprises: Obtain abnormal log data and normal log data; The normal log data and the abnormal log data are converted respectively to obtain a normal log set and an abnormal log set; A corresponding first frequent dimension data set is calculated based on the dimension data in the normal log set, wherein the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and a corresponding second frequent dimension data set is calculated based on the dimension data in the abnormal log set, wherein the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support, the dimension data refers to the data corresponding to the dimension in the log of the log set, the frequent dimension data combination refers to the dimension data combination whose support is greater than a preset support threshold, and the support refers to the ratio of the number of log data items in all the dimension data combinations appearing in the log set to the number of all the log data items in the log set; Remove and merge the frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set; According to the first supports corresponding to the first frequent dimensional data combinations and the second supports corresponding to the second frequent dimensional data combinations, the difference supports corresponding to the target frequent dimensional data combinations in the target frequent dimensional data set are calculated; The target frequent dimensional data combinations in the target frequent dimensional data set are sorted according to the difference support corresponding to the target frequent dimensional data combinations in the target frequent dimensional data set and the number of dimensional data of the target frequent dimensional data combinations, and abnormal target frequent dimensional data combinations are determined according to the sorting results.
2. The method according to claim 1, characterized in that Obtain abnormal log data and normal log data, including: Acquire monitoring log data, determine abnormal monitoring indicator data from the monitoring log data, acquire a corresponding abnormal time period according to the abnormal monitoring indicator data, acquire log data corresponding to the abnormal time period from the monitoring log data, and obtain abnormal log data; Determine the corresponding historical time period according to the abnormal time period, and obtain the preset transition time period, calculate the historical normal time period according to the historical time period and the preset transition time period, obtain the log data corresponding to the historical normal time period from the monitoring log data, and obtain normal log data.
3. The method according to claim 1, characterized in that The normal log data and the abnormal log data include continuous log data and discrete log data, and the normal log data and the abnormal log data are converted respectively to obtain a normal log set and an abnormal log set, including: Acquire continuous log data from the normal log data and the abnormal log data, discretize the continuous log data, and obtain discretized normal log data and discretized abnormal log data; The discretized normal log data and the discretized abnormal log data are converted into log sets to obtain a normal log set and an abnormal log set.
4. The method according to claim 1, characterized in that: The first frequent dimension data set is calculated based on the dimension data in the normal log set, and the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and the second frequent dimension data set is calculated based on the dimension data in the abnormal log set, and the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support, including: Determine each first dimensional data in the normal log set, combine the each first dimensional data to obtain each candidate first dimensional data combination, calculate the first support corresponding to each candidate first dimensional data combination, screen from each candidate first dimensional data combination according to the first support to obtain each first frequent dimensional data combination, and obtain the first frequent dimensional data set according to each first frequent dimensional data combination and the corresponding first support; Determine each second dimensional data in the abnormal log set, combine the each second dimensional data to obtain each candidate second dimensional data combination, calculate the second support corresponding to each candidate second dimensional data combination, filter from each candidate second dimensional data combination according to the second support to obtain each second frequent dimensional data combination, and obtain the second frequent dimensional data set according to the each second frequent dimensional data combination and the corresponding second support.
5. The method according to claim 1, characterized in that The first frequent dimension data set is calculated based on the dimension data in the normal log set, and the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and the second frequent dimension data set is calculated based on the dimension data in the abnormal log set, and the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support, including: According to the dimension data in the normal log set, the association rule algorithm is used to calculate the first frequent dimension data combinations and the corresponding first support, and the first frequent dimension data set is obtained according to the first frequent dimension data combinations and the corresponding first support; The association rule algorithm is used to calculate the second frequent dimensional data combinations and the corresponding second supports according to the dimensional data in the abnormal log set, and the second frequent dimensional data set is obtained according to the second frequent dimensional data combinations and the corresponding second supports.
6. The method according to claim 5, characterized in that The step of calculating the first frequent dimensional data combinations and the corresponding first supports by using an association rule algorithm according to the dimensional data in the normal log set includes: Determine each candidate one-dimensional data corresponding to the normal log set, calculate the support corresponding to each candidate one-dimensional data, screen each candidate one-dimensional data according to the support corresponding to each candidate one-dimensional data, obtain frequent one-dimensional data, and use the frequent one-dimensional data as the current frequent one-dimensional data combination; Connecting the current frequent dimensional data combinations to obtain candidate two-dimensional data combinations, and when a subset of a target candidate two-dimensional data combination in the candidate two-dimensional data combinations is not in the current frequent dimensional data combination, deleting the target candidate two-dimensional data combination from the candidate two-dimensional data combinations to obtain preliminary frequent two-dimensional data combinations; Calculating the support corresponding to each of the preliminary selected frequent two-dimensional data combinations, and screening from each of the preliminary selected frequent two-dimensional data combinations according to the support corresponding to each of the preliminary selected frequent two-dimensional data combinations to obtain frequent two-dimensional data combinations; The frequent two-dimensional data combination is used as the current frequent dimensional data combination, and the step of connecting the current frequent dimensional data combination is returned to be executed until the current frequent dimensional data combination is empty, and all the obtained current frequent dimensional data combinations are used as the first frequent dimensional data combinations, and the first supports corresponding to the first frequent dimensional data combinations are obtained.
7. The method according to claim 5, characterized in that The step of calculating the first frequent dimensional data combinations and the corresponding first supports by using an association rule algorithm according to the dimensional data in the normal log set includes: Determine each candidate one-dimensional data corresponding to the normal log set, and calculate the support corresponding to each candidate one-dimensional data, screen from each candidate one-dimensional data according to the support corresponding to each candidate one-dimensional data to obtain frequent one-dimensional data, and sort the frequent one-dimensional data combinations according to the corresponding support to obtain sorted frequent one-dimensional data combinations; Sorting the dimension data in the normal log set according to the sorted frequent one-dimensional data combination to obtain a sorted normal log set; A corresponding frequent pattern tree is generated according to the sorted normal log set, and each first frequent dimension data combination and the corresponding first support are calculated using the frequent pattern tree.
8. The method according to claim 1, characterized in that The method further comprises: calculating a corresponding first frequent dimension data set according to the dimension data in the normal log set, wherein the first frequent dimension data set includes each first frequent dimension data combination and the corresponding first support, and calculating a corresponding second frequent dimension data set according to the dimension data in the abnormal log set, wherein the second frequent dimension data set includes each second frequent dimension data combination and the corresponding second support, further comprising: Deleting a first parent frequent dimension data combination in each of the first frequent dimension data combinations, where the first parent frequent dimension data combination refers to a first frequent dimension data combination that has a child frequent dimension data combination in each of the first frequent dimension data combinations; The second parent frequent dimension data combination in each of the second frequent dimension data combinations is deleted, where the second parent frequent dimension data combination refers to a second frequent dimension data combination having a child frequent dimension data combination in each of the second frequent dimension data combinations.
9. The method according to claim 1, characterized in that: Sorting the target frequent dimensional data combinations in the target frequent dimensional data set according to the difference support corresponding to the target frequent dimensional data combinations in the target frequent dimensional data set and the number of dimensional data of the target frequent dimensional data combinations, and determining abnormal target frequent dimensional data combinations according to the sorting result, including: Determine each target frequent dimension data combination in the target frequent dimension data set, obtain the number of dimension data corresponding to each target frequent dimension data combination, and sort each target frequent dimension data combination according to the difference support and the number of dimension data using a preset sorting rule to obtain each sorted target frequent dimension data combination; A preset number of target frequent dimensional data combinations are selected from the sorted target frequent dimensional data combinations to obtain abnormal target frequent dimensional data combinations.
10. The method according to claim 1, characterized in that The method further comprises: Obtain target abnormal log data, wherein the number of dimensions in the target abnormal log data is less than the preset number of dimensions, and the dimension data type corresponding to the dimension is less than the preset number of types; Converting the target exception log data into a target exception log set; A corresponding third frequent dimension data set is calculated according to the dimension data in the target abnormal log set, wherein the third frequent dimension data set includes each third frequent dimension data combination and the corresponding third support; Determine the target dimensional data quantity corresponding to each third frequent dimensional data combination, sort the each third frequent dimensional data combination according to the third support and the dimensional data quantity, and determine the target third frequent dimensional data combination according to the sorting result.
11. The method according to claim 10, characterized in that After sorting the third frequent dimension data combinations according to the third support and the number of dimension data, the method further includes: Acquire each sorted third frequent dimension data combination, and determine a third parent frequent dimension data combination and a third child frequent dimension data combination from each sorted third frequent dimension data combination; The third sub-frequent dimension data combination is a subset of the third parent frequent dimension data combination, and the abnormal difference between the support corresponding to the third sub-frequent dimension data and the support corresponding to the third parent frequent dimension data combination is less than a preset abnormal difference threshold; The third sub-frequent dimensional data combination is deleted from each of the sorted abnormal frequent dimensional data combinations to obtain each deleted third frequent dimensional data combination.
12. The method according to claim 11, characterized in that After deleting the third sub-frequent dimension data combination from the sorted abnormal frequent dimension data combinations to obtain the deleted third frequent dimension data combinations, the method further includes: Determine a first frequent dimension data combination to be merged and a second frequent dimension data combination to be merged from each of the deleted third frequent dimension data combinations, wherein a preset number of identical dimension data exists between the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged, and a difference between the support corresponding to the first frequent dimension data combination to be merged and the support corresponding to the second frequent dimension data combination to be merged does not exceed a preset merging threshold; The first to-be-merged frequent dimension data combination and the second to-be-merged frequent dimension data combination are merged to obtain a merged third frequent dimension data combination.
13. An abnormal data locating device, characterized in that: The device comprises: The log processing module is used to obtain abnormal log data and normal log data; convert the normal log data and the abnormal log data respectively to obtain a normal log set and an abnormal log set; A frequent set calculation module, used to calculate a corresponding first frequent dimension data set according to the dimension data in the normal log set, wherein the first frequent dimension data set includes each first frequent dimension data combination and a corresponding first support, and to calculate a corresponding second frequent dimension data set according to the dimension data in the abnormal log set, wherein the second frequent dimension data set includes each second frequent dimension data combination and a corresponding second support, wherein the dimension data refers to data corresponding to a dimension in the logs of the log set, the frequent dimension data combination refers to a dimension data combination whose support is greater than a preset support threshold, and the support refers to the ratio of the number of log data items in all the dimension data combinations appearing in the log set to the number of all the log data items in the log set; a target frequent set obtaining module, configured to remove and merge the frequent dimension data combinations in the first frequent dimension data set and the second frequent dimension data set to obtain a target frequent dimension data set; A difference calculation module, used to calculate the difference support corresponding to the target frequent dimension data combination in the target frequent dimension data set according to the first support corresponding to each first frequent dimension data combination and the second support corresponding to each second frequent dimension data combination; An abnormality determination module is used to sort the target frequent dimension data combinations in the target frequent dimension data set according to the difference support corresponding to the target frequent dimension data combinations in the target frequent dimension data set and the number of dimensional data of the target frequent dimension data combinations, and determine the abnormal target frequent dimension data combinations according to the sorting results.
14. The device according to claim 13, characterized in that The log processing module includes: A log acquisition unit is used to acquire monitoring log data, determine abnormal monitoring indicator data from the monitoring log data, acquire a corresponding abnormal time period according to the abnormal monitoring indicator data, acquire log data corresponding to the abnormal time period from the monitoring log data, and acquire abnormal log data; determine a corresponding historical time period according to the abnormal time period, and acquire a preset transition time period, calculate a historical normal time period according to the historical time period and the preset transition time period, acquire log data corresponding to the historical normal time period from the monitoring log data, and acquire normal log data.
15. The device according to claim 13, characterized in that The log processing module includes: The log discretization unit is used to obtain the continuous log data in the normal log data and the abnormal log data, discretize the continuous log data to obtain the discretized normal log data and the discretized abnormal log data; convert the discretized normal log data and the discretized abnormal log data into log sets to obtain a normal log set and an abnormal log set.
16. The device according to claim 13, characterized in that The frequent set calculation module includes: A first normal calculation unit is used to determine each first dimensional data in the normal log set, combine the each first dimensional data to obtain each candidate first dimensional data combination, calculate the first support corresponding to each candidate first dimensional data combination, screen from each candidate first dimensional data combination according to the first support to obtain each first frequent dimensional data combination, and obtain the first frequent dimensional data set according to each first frequent dimensional data combination and the corresponding first support; The first anomaly calculation unit is used to determine each second dimensional data in the anomaly log set, combine the each second dimensional data to obtain each candidate second dimensional data combination, calculate the second support corresponding to each candidate second dimensional data combination, filter from each candidate second dimensional data combination according to the second support to obtain each second frequent dimensional data combination, and obtain the second frequent dimensional data set according to each second frequent dimensional data combination and the corresponding second support.
17. The device according to claim 13, characterized in that The frequent set calculation module comprises: A second normal calculation unit is used to calculate the first frequent dimension data combinations and the corresponding first support degrees according to the dimension data in the normal log set by using an association rule algorithm, and obtain a first frequent dimension data set according to the first frequent dimension data combinations and the corresponding first support degrees; The second anomaly calculation unit is used to calculate the second frequent dimensional data combinations and the corresponding second support degrees according to the dimensional data in the anomaly log set using the association rule algorithm, and obtain the second frequent dimensional data set according to the second frequent dimensional data combinations and the corresponding second support degrees.
18. The device according to claim 17, characterized in that The second normal calculation unit is further used to determine each candidate one-dimensional data corresponding to the normal log set, and calculate the support corresponding to each candidate one-dimensional data, and screen each candidate one-dimensional data according to the support corresponding to each candidate one-dimensional data to obtain frequent one-dimensional data, and use the frequent one-dimensional data as the current frequent dimensional data combination; connect the current frequent dimensional data combination to obtain each candidate two-dimensional data combination, and when a subset of the target candidate two-dimensional data combination in each candidate two-dimensional data combination is not in the current frequent dimensional data combination, delete the target candidate two-dimensional data from each candidate two-dimensional combination. combination to obtain each preliminary frequent two-dimensional data combination; calculate the support corresponding to each preliminary frequent two-dimensional data combination, and filter from each preliminary frequent two-dimensional data combination according to the support corresponding to each preliminary frequent two-dimensional data combination to obtain frequent two-dimensional data combinations; use the frequent two-dimensional data combination as the current frequent dimensional data combination, and return to the step of connecting the current frequent dimensional data combination until the current frequent dimensional data combination is empty, use all the obtained current frequent dimensional data combinations as the first frequent dimensional data combinations, and obtain the first support corresponding to each first frequent dimensional data combination.
19. The device according to claim 17, characterized in that The second normal calculation unit is also used to determine each candidate one-dimensional data corresponding to the normal log set, and calculate the support corresponding to each candidate one-dimensional data, screen from each candidate one-dimensional data according to the support corresponding to each candidate one-dimensional data, obtain frequent one-dimensional data, and sort the frequent one-dimensional data combinations according to the corresponding support to obtain sorted frequent one-dimensional data combinations; sort the dimensional data in the normal log set according to the sorted frequent one-dimensional data combinations to obtain a sorted normal log set; generate a corresponding frequent pattern tree according to the sorted normal log set, and use the frequent pattern tree to calculate the each first frequent dimensional data combination and the corresponding first support.
20. The device according to claim 13, characterized in that The device further comprises: A first deleting module is configured to delete a first parent frequent dimension data combination in each of the first frequent dimension data combinations, wherein the first parent frequent dimension data combination refers to a first frequent dimension data combination in which a child frequent dimension data combination exists in each of the first frequent dimension data combinations; and to delete a second parent frequent dimension data combination in each of the second frequent dimension data combinations, wherein the second parent frequent dimension data combination refers to a second frequent dimension data combination in which a child frequent dimension data combination exists in each of the second frequent dimension data combinations.
21. The device according to claim 13, characterized in that The abnormality determination module comprises: A sorting unit is used to determine each target frequent dimension data combination in the target frequent dimension data set, obtain the number of dimension data corresponding to each target frequent dimension data combination, and sort the each target frequent dimension data combination according to the difference support and the number of dimension data using a preset sorting rule to obtain each sorted target frequent dimension data combination; select a preset number of target frequent dimension data combinations from each sorted target frequent dimension data combination to obtain abnormal target frequent dimension data combinations.
22. The device according to claim 13, characterized in that The device further comprises: A target acquisition module is used to acquire target abnormal log data, wherein the number of dimensions in the target abnormal log data is less than the preset number of dimensions, and the dimension data type corresponding to the dimension is less than the preset number of types; A target conversion module, used to convert the target exception log data into a target exception log set; A calculation module, configured to calculate a corresponding third frequent dimension data set according to the dimension data in the target abnormal log set, wherein the third frequent dimension data set includes each third frequent dimension data combination and a corresponding third support; A combination determination module is used to determine the target dimensional data quantity corresponding to each third frequent dimensional data combination, sort the each third frequent dimensional data combination according to the third support and the dimensional data quantity, and determine the target third frequent dimensional data combination according to the sorting result.
23. The device according to claim 22, characterized in that The device further comprises: A second deleting module is used to obtain each sorted third frequent dimension data combination, determine a third parent frequent dimension data combination and a third child frequent dimension data combination from each sorted third frequent dimension data combination; wherein the third child frequent dimension data combination is a subset of the third parent frequent dimension data combination, and the abnormal difference between the support corresponding to the third child frequent dimension data and the support corresponding to the third parent frequent dimension data combination is less than a preset abnormal difference threshold; and delete the third child frequent dimension data combination from each sorted abnormal frequent dimension data combination to obtain each deleted third frequent dimension data combination.
24. The device according to claim 23, characterized in that The device further comprises: A merging module is used to determine a first frequent dimension data combination to be merged and a second frequent dimension data combination to be merged from each of the deleted third frequent dimension data combinations, wherein there is a preset number of identical dimension data between the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged, and the difference between the support corresponding to the first frequent dimension data combination to be merged and the support corresponding to the second frequent dimension data to be merged does not exceed a preset merging threshold; and merge the first frequent dimension data combination to be merged and the second frequent dimension data combination to be merged to obtain a merged third frequent dimension data combination.
25. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.
26. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
