A method for locating and tracing abnormal data

By constructing automatic comparison analysis between the actual comparison set and the standard comparison set and spatial analysis of traceable abnormality generation paths, the problem of low efficiency of abnormal data troubleshooting in the existing technology is solved, and a method for efficiently determining the root cause of the abnormality is realized.

CN118426997BActive Publication Date: 2024-10-18BEIJING YUNCHENG FINANCIAL INFORMATION SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410853602.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing technology relies on human operations in troubleshooting abnormal data, has errors and is inefficient, and cannot efficiently determine the root cause of the abnormality.

Method used

By constructing the actual comparison set and the standard comparison set for automatic comparison analysis, tracing the abnormal generation path and performing spatial analysis and abnormal threshold segmentation to determine the root cause of the abnormality.

Benefits of technology

It effectively avoids errors caused by manual investigation and improves the efficiency of determining the root cause of abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118426997B_ABST
    Figure CN118426997B_ABST
Patent Text Reader

Abstract

The present invention provides a method for locating and tracing abnormal data, which belongs to the field of data analysis technology, and includes: step 1: obtaining log information generated by a target scene during an actual operation process, and constructing an actual comparison set based on the log information according to the analysis index of the target scene; step 2: analyzing the actual comparison set according to the scene characteristics of the target scene, determining the abnormal data and the generation location of the abnormal data based on the log information; step 3: tracing the generation location to obtain the abnormal generation path, and performing spatial analysis and abnormal threshold segmentation analysis on the abnormal generation path to obtain the abnormal root cause and output it. By constructing an actual comparison set to automatically compare and analyze with a standard comparison set matching the corresponding scene characteristics, errors caused by manual investigation can be effectively avoided, and the abnormal root cause can be obtained by tracing the abnormal generation path from the generation location and performing spatial analysis and abnormal threshold segmentation to effectively improve the efficiency of determining the abnormal root cause.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data analysis, and in particular to a method for locating and tracing abnormal data. Background Art

[0002] With the development of computer technology, various online operating systems have also been applied. However, due to the complexity of online systems, when an abnormality occurs, the current common method is to manually check each data layer in the system to determine the abnormality problem in the corresponding data layer. However, this operation is heavily dependent on professional skills. If the skills are not up to standard, the existing abnormality may not be detected, and there is a certain degree of error. In this process, it is also heavily dependent on multiple run verifications of the operating system. That is, after manually determining the abnormality problem, it is necessary to run verification to see whether the detected abnormality is correct, which undoubtedly reduces the efficiency of abnormality determination.

[0003] Therefore, the present invention proposes a method for locating and tracing abnormal data. Summary of the invention

[0004] The present invention provides a method for locating and tracing abnormal data, which is used to automatically compare and analyze the standard comparison set that matches the corresponding scene characteristics by constructing an actual comparison set, effectively avoiding errors caused by manual investigation, and obtaining the abnormal root cause by generating a location tracing abnormality generation path and performing spatial analysis and abnormal threshold segmentation, effectively improving the efficiency of determining the abnormal root cause.

[0005] The present invention provides a method for locating and tracing abnormal data, comprising:

[0006] Step 1: Obtain the log information generated by the target scenario during the actual operation process, and construct an actual comparison set based on the log information according to the analysis indicators of the target scenario;

[0007] Step 2: Analyze the actual comparison set according to the scene characteristics of the target scene to determine abnormal data and the location where the abnormal data is generated based on the log information;

[0008] Step 3: Tracing the generation location to obtain the abnormal generation path, and performing spatial analysis and abnormal threshold segmentation analysis on the abnormal generation path to obtain the abnormal root cause and output it.

[0009] Preferably, constructing an actual comparison set based on the log information according to the analysis indicators of the target scenario includes:

[0010] Performing cluster analysis on the log information to construct a cluster distribution map;

[0011] Determining the cluster association degree between each cluster and each remaining cluster according to the cluster distribution diagram;

[0012] According to the cluster association degree and cluster type, setting attribute labels to corresponding cluster blocks;

[0013] Obtaining analysis indicators matching the target scenario from the scenario-indicator comparison table, and performing indicator decomposition on each analysis indicator to obtain indicator attributes;

[0014] Performing registration analysis on the indicator attributes and the attribute labels to obtain a matching set of each analysis indicator, and extracting corresponding proportion information from the cluster distribution map according to each matching coefficient in the matching set to obtain an initial comparison set;

[0015] Counting the amount of information of each cluster block in the cluster distribution diagram and calculating the representative value of the cluster cluster in each cluster block;

[0016] A proportion adjustment set based on each analysis indicator is determined according to the information volume and representative value, and the remaining unextracted information is redistributed according to the proportion adjustment set to expand the initial comparison set to obtain an actual comparison set.

[0017] Preferably, determining a ratio adjustment set based on each analysis indicator according to the information amount and representative value includes:

[0018] ;in, represents the proportion adjustment set of the j1th analysis indicator; Represents the amount of information of the i-th cluster block; Represents the total amount of information based on the cluster distribution graph; n2 represents the total number of cluster blocks; Indicates the representative value of the cluster in the i-th cluster block; The judgment value indicating whether there is a matching relationship between the j1th analysis indicator and the i-th cluster block; represents the matching coefficient between the j1th analysis index and the i-th clustering block; The judgment value indicating whether there is any remaining unextracted information in the i-th cluster block.

[0019] Preferably, determining the abnormal data and the location where the abnormal data is generated based on the log information includes:

[0020] Obtaining a standard comparison set based on the scene characteristics, and splitting the set according to the analysis indicators to obtain a standard subset based on each analysis indicator;

[0021] Determine the final information clustering subset under each analysis indicator according to the actual comparison set;

[0022] Compare and analyze the standard subset under the same analysis index with the final information cluster subset, mark the sub-information in the final information cluster subset that does not meet the standard setting, determine the marking ratio of each sub-information, and lock the memory address of the marked sub-information based on the generated code;

[0023] Based on the annotation ratio and the memory address, a annotation array is constructed;

[0024] The abnormal data of the actual comparison set and the generating position are determined based on all the marked arrays.

[0025] Preferably, determining the abnormal data and the generating position of the actual comparison set based on all the annotated arrays includes:

[0026] According to the annotation ratio of each sub-information in the same final information cluster subset, and combined with the actual weight and standard weight of each sub-information, determine whether the annotated part in the corresponding sub-information should be retained;

[0027] If so, the corresponding marked part will be retained;

[0028] Otherwise, the cluster block to which the corresponding marked part belongs is regarded as the first block, and the current distribution map of the first block is obtained;

[0029] Determine a first distribution position of the corresponding marked part based on the current distribution graph, and at the same time, capture a second distribution position based on the current distribution graph and the corresponding marked part having the same analysis situation;

[0030] Based on the first distribution position and the second distribution position, and in combination with the overall distribution position of the current distribution graph, determining a neglect coefficient of the corresponding marked portion;

[0031] If the neglect coefficient is greater than the preset coefficient, the corresponding marked part is removed, otherwise, the corresponding marked part is retained;

[0032] Treat all retained data as abnormal data;

[0033] The number of address overlaps is counted according to the memory addresses of each reserved part, and the generation positions are obtained by sorting the statistical numbers from large to small, and the generation positions correspond to the abnormal data one by one.

[0034] Preferably, tracing the generation location to obtain the abnormality generation path includes:

[0035] Any generating node in the corresponding abnormal generating path is regarded as an abnormal node, and the remaining generating nodes are regarded as normal nodes to construct a single abnormal node path;

[0036] Determine the positional relationship between the abnormal node and each normal node in the single abnormal node path, and calculate a number of abnormal thresholds corresponding to the abnormal node based on the number of branches and forks of each abnormal node and a historical abnormal database;

[0037] Analyze the current operation information of the abnormal node based on a number of abnormal thresholds to obtain the first abnormal cause of the corresponding abnormal node;

[0038] Performing spatial division according to the logical attribute of each node in the corresponding abnormal production path to obtain a plurality of spatial subsets, wherein the spatial subsets include a plurality of nodes with similar logical attributes;

[0039] According to the distribution position of the nodes in each spatial subset and the current operation information, the second abnormal cause corresponding to each node is obtained, and the dispersion of the first cause is calculated;

[0040] At the same time, the dispersion of the second cause based on the first abnormal cause of each generating node in the same spatial subset is calculated;

[0041] It is determined whether the first cause dispersion and the second cause dispersion meet the conditions, and a key cause is extracted from the corresponding first abnormal cause and the second abnormal cause, and output as an abnormal root cause.

[0042] Preferably, determining whether the first cause dispersion and the second cause dispersion meet the conditions includes:

[0043] Responding to a judgment statement from the judgment database that matches the central attribute of all logical attributes involved in the corresponding space subset;

[0044] Based on the judgment statement, conditional judgment is performed on the first cause discreteness and the second cause discreteness to obtain a combination symbol, and the combination symbol is matched with the condition database to obtain a condition that meets the condition.

[0045] Compared with the prior art, the present invention has the following beneficial effects:

[0046] By constructing an actual comparison set to automatically compare and analyze with the standard comparison set that matches the corresponding scene characteristics, the errors caused by manual investigation can be effectively avoided. By generating a location traceability anomaly generation path and performing spatial analysis and anomaly threshold segmentation to obtain the anomaly root cause, the efficiency of determining the anomaly root cause can be effectively improved.

[0047] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0048] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0050] Figure 1 The present invention is a flowchart of a method for locating and tracing abnormal data in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0052] The present invention provides a method for locating and tracing abnormal data, such as Figure 1 As shown, including:

[0053] Step 1: Obtain the log information generated by the target scenario during the actual operation process, and construct an actual comparison set based on the log information according to the analysis indicators of the target scenario;

[0054] Step 2: Analyze the actual comparison set according to the scene characteristics of the target scene to determine abnormal data and the location where the abnormal data is generated based on the log information;

[0055] Step 3: Tracing the generation location to obtain the abnormal generation path, and performing spatial analysis and abnormal threshold segmentation analysis on the abnormal generation path to obtain the abnormal root cause and output it.

[0056] In this embodiment, the target scenario refers to various online operating systems. Different systems are regarded as different scenarios. For example, a business management system, a personnel management system, etc., the corresponding analysis indicators will also be different in different systems. Among them, the analysis indicators corresponding to different systems are planned in advance.

[0057] In this embodiment, the log information refers to the information captured by the log capture tool during the operation of the corresponding operating system. Generally, various operation records will be generated in the background during the operation of the system, and the records are used as log information.

[0058] In this embodiment, for example, the analysis indicators include: indicator 1, indicator 2 and indicator 3. In the process of constructing the actual comparison set according to the analysis indicators, the log information is split according to the indicators to obtain the sub-information set matching each indicator.

[0059] The actual comparison set = {the sub-information set of indicator 1, the sub-information set of indicator 2, the sub-information set of indicator 3}.

[0060] In this embodiment, the scenario characteristics refer to the system characteristics of the corresponding operating system, such as the specific execution type of the system, etc., to obtain a standard comparison set matching the scenario characteristics from the characteristic-standard database, and the standard comparison set refers to a reasonable and standardized set of the corresponding operating system in normal operating state, which serves as the basis for abnormal analysis of the actual comparison set.

[0061] In this embodiment, abnormal data refers to data in the actual comparison set that is not within the corresponding specification range of the standard comparison set, and the generation location refers to the occurrence time of the abnormal data and the memory address corresponding to the occurrence code.

[0062] In this embodiment, tracing back the source refers to taking the generation location as the node end and tracing back the source in combination with the logical operation diagram of the operating system to obtain the exception generation path, and each exception generation path at least includes the end node.

[0063] In this embodiment, spatial analysis refers to performing similarity analysis of node attributes on the same abnormality generating path to spatially classify nodes, and abnormality threshold segmentation analysis refers to obtaining the abnormality threshold of each node to analyze the current operation status of the node. The combination of the two can obtain the root cause.

[0064] The beneficial effects of the above technical solution are: by constructing an actual comparison set to automatically compare and analyze with the standard comparison set that matches the corresponding scene characteristics, errors caused by manual investigation can be effectively avoided, and the root cause of the anomaly can be obtained by generating a location tracing anomaly generation path and performing spatial analysis and anomaly threshold segmentation, thereby effectively improving the efficiency of determining the root cause of the anomaly.

[0065] The present invention provides a method for locating and tracing abnormal data, which constructs an actual comparison set based on the log information according to the analysis index of the target scenario, including:

[0066] Performing cluster analysis on the log information to construct a cluster distribution map;

[0067] Determining the cluster association degree between each cluster and each remaining cluster according to the cluster distribution diagram;

[0068] According to the cluster association degree and cluster type, setting attribute labels to corresponding cluster blocks;

[0069] Obtaining analysis indicators matching the target scenario from the scenario-indicator comparison table, and performing indicator decomposition on each analysis indicator to obtain indicator attributes;

[0070] Performing registration analysis on the indicator attributes and the attribute labels to obtain a matching set of each analysis indicator, and extracting corresponding proportion information from the cluster distribution map according to each matching coefficient in the matching set to obtain an initial comparison set;

[0071] Counting the amount of information of each cluster block in the cluster distribution diagram and calculating the representative value of the cluster cluster in each cluster block;

[0072] A proportion adjustment set based on each analysis indicator is determined according to the information volume and representative value, and the remaining unextracted information is redistributed according to the proportion adjustment set to expand the initial comparison set to obtain an actual comparison set.

[0073] In this embodiment, cluster analysis can use K-means algorithm to cluster log information, so as to obtain the distribution based on each cluster, that is, a cluster distribution graph, which includes several clusters and the information distribution around each cluster.

[0074] In this embodiment, the cluster association degree is determined based on the distance difference between the distance between the corresponding clustering cluster and a remaining cluster and the preset association distance. If the distance difference is greater than or equal to 0, the cluster association degree is determined to be 0. If the distance difference is less than 0, the cluster association degree is determined to be the absolute value of the distance difference / preset association distance, wherein the preset association distance is pre-set.

[0075] In this embodiment, the cluster type refers to the type of information to which the cluster obtained after cluster analysis belongs, because corresponding information will be clustered together only when the types are similar or consistent.

[0076] In this embodiment, the attribute label is: cluster association degree--cluster type.

[0077] In this embodiment, the scenario-indicator comparison table includes different target scenarios and various analysis indicators matched therewith. The comparison table is planned in advance, so the analysis indicators can be obtained directly based on the target scenario matching.

[0078] In this embodiment, indicator decomposition is implemented based on an indicator analysis model, and the indicator analysis model is obtained by training a neural network model using various analysis indicators and attributes corresponding to the results of expert indicator decomposition as samples. The indicator attributes can be directly obtained based on the model, and the indicator attributes and the information type involved in the indicator analysis.

[0079] In this embodiment, the registration analysis is to determine the analysis information that the analysis index can determine from the cluster distribution map, wherein, during the registration analysis process, the information type is registered with the cluster type in the label attribute, and the association type involved in the information type is registered with the cluster association degree of the cluster type.

[0080] For example, the attribute label of cluster block 1: cluster type-the cluster correlation with cluster A1 is 0.3, the cluster correlation with cluster A2 is 0.2, and the cluster correlation with cluster A3 is 0;

[0081] Analyze the indicator attributes of indicator 1: information type B1--information type B3;

[0082] Among them, based on the information type B1, a type matching B1 is found from all clustering clusters, and based on the information type B3, a type matching B3 is found from all clustering clusters. After finding it, the analysis indicators are matched with other clustering clusters whose cluster correlation degree with the corresponding cluster type is not 0. Among them, the matching coefficient of the associated cluster that directly matches the corresponding information type is: the preset proportion of the corresponding information type involved in the corresponding analysis indicator, and the matching coefficient of the associated cluster that indirectly matches the corresponding information type is: the preset proportion of the corresponding information type involved in the corresponding analysis indicator × the cluster correlation degree of indirect matching.

[0083] In this embodiment, the matching set={matching coefficients of each information type involved in the corresponding analysis indicator}.

[0084] In this embodiment, the corresponding proportion information is extracted. For example, if the matching coefficient of cluster A1 is 0.1, the information of the corresponding cluster blocks can be randomly extracted according to 0.1 multiples.

[0085] In this embodiment, the initial comparison set = {extracted information under each matching coefficient involved in the corresponding analysis index}.

[0086] In this embodiment, the amount of information refers to the amount of information existing in the corresponding cluster block.

[0087] In this embodiment, representative value=weight of information type involved in the corresponding cluster block×ln(2+information amount of the corresponding cluster block / total information amount of all cluster blocks), where ln is the sign of logarithmic function.

[0088] In this embodiment, the reallocation is: ,in, represents the remaining unextracted information of the i-th clustering block.

[0089] The beneficial effects of the above technical solution are: by constructing a distribution map through cluster analysis of log information, and then preliminarily obtaining attribute labels by determining the cluster type and cluster correlation, and subsequently realizing the registration analysis of the two attributes by obtaining the indicator attributes of the indicator, a basis is provided for constructing the actual comparison set, and the refined construction of the actual comparison set is ensured. In the construction process, the integrity of information distribution is ensured by extracting and adjusting the information in corresponding proportions, thereby ensuring that the actual comparison set can completely and reasonably divide the log information, which is convenient for subsequent comparative analysis.

[0090] The present invention provides a method for locating and tracing abnormal data, which determines a ratio adjustment set based on each analysis indicator according to the information amount and representative value, including:

[0091] ;in, represents the proportion adjustment set of the j1th analysis indicator; Represents the amount of information of the i-th cluster block; Represents the total amount of information based on the cluster distribution graph; n2 represents the total number of cluster blocks; Indicates the representative value of the cluster in the i-th cluster block; The judgment value indicating whether there is a matching relationship between the j1th analysis indicator and the i-th cluster block; represents the matching coefficient between the j1th analysis index and the i-th clustering block; The judgment value indicating whether there is any remaining unextracted information in the i-th cluster block.

[0092] The beneficial effect of the above technical solution is that starting from the cluster distribution map, cluster blocks, Western Sydney volume and representative value, the proportional adjustment set of each analysis indicator can be effectively calculated to ensure the reasonable distribution of the remaining unextracted information.

[0093] The present invention provides a method for locating and tracing abnormal data, which determines the abnormal data and the location where the abnormal data is generated based on the log information, including:

[0094] Obtaining a standard comparison set based on the scene characteristics, and splitting the set according to the analysis indicators to obtain a standard subset based on each analysis indicator;

[0095] Determine the final information clustering subset under each analysis indicator according to the actual comparison set;

[0096] Compare and analyze the standard subset under the same analysis index with the final information cluster subset, mark the sub-information in the final information cluster subset that does not meet the standard setting, determine the marking ratio of each sub-information, and lock the memory address of the marked sub-information based on the generated code;

[0097] Based on the annotation ratio and the memory address, a annotation array is constructed;

[0098] The abnormal data of the actual comparison set and the generating position are determined based on all the marked arrays.

[0099] In this embodiment, the standard comparison set = {standard specification information related to all analysis indicators}.

[0100] In this embodiment, standard subset={standard specification information related to a certain analysis indicator}.

[0101] In this embodiment, the actual comparison set = {actually extracted information related to all analysis indicators}.

[0102] The final information cluster subset = {the actual extracted information involved in a certain analysis indicator}.

[0103] It should be noted that the information actually mentioned in the final information cluster subset is a collection of partial information extracted from different cluster blocks.

[0104] In this embodiment, for example, the standard subset based on analysis indicator 1 = {based on the standard information of clustering block A1 based on the standard information of clustering block A2}, and the final information clustering subset based on analysis indicator 1 = {based on partial information of clustering block A2 (information r1~r6) based on partial information of clustering block A3}.

[0105] At this time, the standard information based on cluster block A2 is compared with the partial information based on cluster block A2, and the information r1 and information r2 in the partial information of cluster block A2 do not conform to the standard information of cluster block A2, while the remaining information r3, information r4, information r5, and information r6 all conform. At this time, information r1 and information r2 are marked, and the marking ratio is 2 / 6.

[0106] In this embodiment, since the partial information based on the cluster block A3 does not match, the marking ratio of the partial information of the cluster block A3 is 1.

[0107] In this embodiment, the labeled sub-information refers to information r1, information r2, and partial information of cluster block A3.

[0108] In this embodiment, the system will automatically record the time when each sub-information is generated, and this time is the generation time, so that the address of the program code executed corresponding to the generation time can be determined.

[0109] In this embodiment, the annotation array={the annotation ratio and memory address of each sub-information}.

[0110] The beneficial effect of the above technical solution is: by obtaining a standard comparison set and splitting the set according to the analysis index, it is convenient to obtain a standard subset for the same analysis index for comparative analysis with the corresponding final information clustering subset, so as to effectively mark the sub-information that does not meet the standard setting, to construct a standard array, and to facilitate the subsequent determination of anomalies and locations.

[0111] The present invention provides a method for locating and tracing abnormal data, which determines the abnormal data of the actual comparison set and the location where the data is generated based on all the annotated arrays, including:

[0112] According to the annotation ratio of each sub-information in the same final information cluster subset, and combined with the actual weight and standard weight of each sub-information, determine whether the annotated part in the corresponding sub-information should be retained;

[0113] If so, the corresponding marked part will be retained;

[0114] Otherwise, the cluster block to which the corresponding marked part belongs is regarded as the first block, and the current distribution map of the first block is obtained;

[0115] Determine a first distribution position of the corresponding marked part based on the current distribution graph, and at the same time, capture a second distribution position based on the current distribution graph and the corresponding marked part having the same analysis situation;

[0116] Based on the first distribution position and the second distribution position, and in combination with the overall distribution position of the current distribution graph, determining a neglect coefficient of the corresponding marked portion;

[0117] If the neglect coefficient is greater than the preset coefficient, the corresponding marked part is removed, otherwise, the corresponding marked part is retained;

[0118] Treat all retained data as abnormal data;

[0119] The number of address overlaps is counted according to the memory addresses of each reserved part, and the generation positions are obtained by sorting the statistical numbers from large to small, and the generation positions correspond to the abnormal data one by one.

[0120] In this embodiment, the retention coefficient is calculated as follows:

[0121] ;in, is the retention coefficient; is the actual weight; is the standard weight; To mark the scale;

[0122] When the retention coefficient is greater than the retention threshold, it is determined that the marked part in the corresponding sub-information is retained.

[0123] In this embodiment, the current distribution graph is a graph of information cluster distribution for a certain first block.

[0124] In this embodiment, the marked part is a significant mark for certain information in the first block, so it will be reflected in the figure, and the first distribution position can be determined intuitively.

[0125] The second distribution position refers to the position of the significant annotation distribution of other annotated parts in the current distribution map.

[0126] In this embodiment, the neglect coefficient=1-(position proportion of the first distribution position / (position proportion of the first distribution position+position proportion of the second distribution position))×(position proportion of the first distribution position / position proportion of the overall distribution position).

[0127] In this embodiment, the preset coefficient is set to 0.08.

[0128] In this embodiment, the generation location is the memory address.

[0129] The beneficial effects of the above technical solution are: based on the annotation ratio, actual weight and standard weight, it is preliminarily determined whether the annotated part should be retained, and then the ignoring coefficient is determined by subsequent analysis of the distribution position to achieve reasonable determination of abnormal data, and by counting the number of overlaps of memory addresses and sorting them by size, it is convenient to trace the path of the generating location in an orderly manner, thereby improving the tracing efficiency.

[0130] The present invention provides a method for locating and tracing abnormal data, tracing the generation location to obtain the abnormal generation path, including:

[0131] According to the scenario application of the target scenario, a consistent logic operation diagram is obtained from the application-logic comparison table, wherein the logic operation diagram includes a number of operation nodes and connection relationships between nodes;

[0132] Matching and placing the generation positions with the logic operation diagram in sequence, and obtaining a plurality of paths to be analyzed for each generation position according to the node connection relationship of the logic operation diagram;

[0133] According to the logical representation of each node in each path to be analyzed and the historical anomaly database, the anomaly set corresponding to the path to be analyzed is obtained;

[0134] Matching and analyzing the abnormal data at each generating position with the corresponding abnormal set, and obtaining the first path with the largest matching analysis value;

[0135] Among them, all first paths are regarded as abnormal generation paths.

[0136] In this embodiment, the scenario application refers to the system application of the operating system, for example, it is applied to personnel management, business management, etc. At this time, the application-logic comparison table contains logical operation diagrams corresponding to different applications, which are pre-planned, mainly to determine the hierarchical logical flow of the corresponding system.

[0137] In this embodiment, the generation position is generally regarded as the terminal node. Therefore, after being placed in correspondence with the logical operation diagram, several paths to be analyzed can be obtained according to the connection relationship. For example, the generation position corresponds to node 09. At this time, based on node 09 and tracing back according to the node connection relationship, the path to be analyzed can be obtained: node 09--node 12-node 23, or node 09--node 16.

[0138] In this embodiment, the logic of each node is pre-planned and runs as the logic runs. Figure 1 And planned, therefore, the logical expression of each node can be directly determined, and each node corresponds to a historical anomaly database, mainly to determine the anomalies existing in the node.

[0139] In this embodiment, the anomaly set of the path can be obtained by counting the anomalies existing in each node in the path to be analyzed.

[0140] In this embodiment, the matching analysis of abnormal data and abnormal sets is obtained based on the similarity function, wherein the more data that matches the abnormal data with the corresponding possible abnormal set, the greater the matching value set to the corresponding path, and thus the first path can be obtained.

[0141] The beneficial effects of the above technical solution are: obtaining the logical operation diagram from the comparison table to provide an analysis basis, and obtaining the path to be analyzed based on the location placement of the generated location and the node connection relationship, and then screening the path based on the matching analysis of abnormal data and possible abnormal sets, providing a basis for subsequent analysis.

[0142] The present invention provides a method for locating and tracing abnormal data, which performs spatial analysis and abnormal threshold segmentation analysis on the abnormal generation path, including:

[0143] Any generating node in the corresponding abnormal generating path is regarded as an abnormal node, and the remaining generating nodes are regarded as normal nodes to construct a single abnormal node path;

[0144] Determine the positional relationship between the abnormal node and each normal node in the single abnormal node path, and calculate a number of abnormal thresholds corresponding to the abnormal node based on the number of branches and forks of each abnormal node and a historical abnormal database;

[0145] Analyze the current operation information of the abnormal node based on a number of abnormal thresholds to obtain the first abnormal cause of the corresponding abnormal node;

[0146] Performing spatial division according to the logical attribute of each node in the corresponding abnormal production path to obtain a plurality of spatial subsets, wherein the spatial subsets include a plurality of nodes with similar logical attributes;

[0147] According to the distribution position of the nodes in each spatial subset and the current operation information, the second abnormal cause corresponding to each node is obtained, and the dispersion of the first cause is calculated;

[0148] At the same time, the dispersion of the second cause based on the first abnormal cause of each generating node in the same spatial subset is calculated;

[0149] It is determined whether the first cause dispersion and the second cause dispersion meet the conditions, and a key cause is extracted from the corresponding first abnormal cause and the second abnormal cause, and output as an abnormal root cause.

[0150] In this embodiment, for example, for the path: node 09--node 12-node 23, node 09 is regarded as an abnormal node, and nodes 12 and 23 are regarded as normal nodes. The constructed path is a single abnormal node path, that is, there is only one abnormal node set in the path.

[0151] In this embodiment, the position relationship refers to the logical relationship between the node 09 and the node 12 when deployed at the position, or the logical relationship between the node 09 and the node 23 when deployed at the position.

[0152] In this embodiment, the number of branch intersections refers to the number of node branches that are in parallel relationship with node 09.

[0153] In this embodiment, the abnormality threshold = the average value of the abnormality reference coefficient based on the logical relationship × (the abnormality frequency of each branch fork in the historical abnormality database × the sum of the average abnormality degree of the corresponding branch fork / total frequency) and then squared. Therefore, the types of abnormalities involved are different, so there will be an abnormality threshold for each abnormality, and the calculation method is similar.

[0154] In this embodiment, the historical anomaly database includes multiple anomaly levels of different branch forks based on the same anomaly type, and the branch fork refers to the anomaly between the node 09 connected to the fork and the other end node of the fork during operation.

[0155] In this embodiment, after the current operating information is divided according to the abnormal type, the corresponding abnormal threshold is used to judge the divided information, and the first abnormal cause of the node can be intuitively determined. For example, the abnormal threshold corresponding to the information u1 in the current operating information of the abnormal node is y01. At this time, the information u1 is numerically standardized to obtain y02, and y02 is greater than y01. At this time, the abnormal cause of the information u1 can be obtained, and it can be directly matched based on the cause database. The cause database contains different abnormal types and the causes of the type of abnormality, and can be directly matched.

[0156] In this embodiment, the logical attribute refers to the execution logic expression of the corresponding node, and the similarity analysis is implemented based on the similarity function, which belongs to the existing technology, and the nodes can be divided according to the attributes.

[0157] In this embodiment, the node distribution position refers to the position of the node in the corresponding path, and the current operation information is captured by the system during the actual operation process, which is mainly the information on the execution logic.

[0158] In this embodiment, the second abnormal cause is obtained by inputting the current operating information at the distribution position and the distribution position into the logical analysis model for analysis, and the logical analysis model is based on different combination nodes, combination nodes in different operating information combinations and experts' judgment results on the abnormal causes of the combination as samples to train the neural network model. Therefore, the second abnormal cause of each node can be directly obtained.

[0159] In this embodiment, the first discreteness and the second discreteness are calculated based on a discreteness function, which belongs to the prior art.

[0160] The beneficial effect of the above technical solution is: by setting a node in the path as abnormal and the remaining nodes as normal, a single analysis is performed to obtain the abnormal threshold for the single abnormal node path, obtain the reference abnormal cause, and subsequently obtain a new abnormal cause by spatially dividing the abnormal path according to logical attributes, that is, obtaining the abnormal cause and discreteness from two aspects, improving the accuracy of extracting the root cause of the abnormality, and thus improving the efficiency of abnormality determination.

[0161] The present invention provides a method for locating and tracing abnormal data, and judging whether the first cause dispersion and the second cause dispersion meet the conditions, including:

[0162] Responding to a judgment statement from the judgment database that matches the central attribute of all similar logical attributes involved in the corresponding space subset;

[0163] Based on the judgment statement, conditional judgment is performed on the first cause discreteness and the second cause discreteness to obtain a combination symbol, and the combination symbol is matched with the condition database to obtain a condition that meets the condition.

[0164] In this embodiment, the judgment database contains judgment statements matching different attributes, which are pre-defined, and the judgment statements are judgments on the first cause discreteness and the second cause discreteness. For example, when the first cause discreteness is greater than the first set degree, the symbol #1 is obtained, and when the second cause discreteness is greater than the second set degree, the symbol #2 is obtained. The combined symbol is: #1#2.

[0165] In this embodiment, the condition database contains symbol conditions that match the combined symbol, mainly for extracting key causes from the corresponding first abnormal cause and second abnormal cause. For example, the symbol condition is to obtain the cause with a matching degree greater than 0.9 with cause 1 from the first abnormal cause and the second abnormal cause, and regard it as the key cause.

[0166] In this embodiment, the central attribute of the similar logical attributes refers to the most representative logical attribute in the space subset.

[0167] The beneficial effect of the above technical solution is: obtaining the required judgment statements and the conditions that meet the conditions from the two databases respectively, providing a basis for subsequent extraction of the root cause.

[0168] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for locating and tracing abnormal data, characterized in that: include: Step 1: Obtain the log information generated by the target scenario during the actual operation process, and construct an actual comparison set based on the log information according to the analysis indicators of the target scenario; Step 2: Analyze the actual comparison set according to the scene characteristics of the target scene to determine abnormal data and the location where the abnormal data is generated based on the log information; Step 3: Tracing the generation location to obtain the abnormal generation path, and performing spatial analysis and abnormal threshold segmentation analysis on the abnormal generation path to obtain the abnormal root cause and output it; Constructing an actual comparison set based on the log information according to the analysis indicators of the target scenario, including: Performing cluster analysis on the log information to construct a cluster distribution map; Determining the cluster association degree between each cluster and each remaining cluster according to the cluster distribution diagram; According to the cluster association degree and cluster type, setting attribute labels to corresponding cluster blocks; Obtaining analysis indicators matching the target scenario from the scenario-indicator comparison table, and performing indicator decomposition on each analysis indicator to obtain indicator attributes; Performing registration analysis on the indicator attributes and the attribute labels to obtain a matching set of each analysis indicator, and extracting corresponding proportion information from the cluster distribution map according to each matching coefficient in the matching set to obtain an initial comparison set; Counting the amount of information of each cluster block in the cluster distribution diagram and calculating the representative value of the cluster cluster in each cluster block; Determine a proportion adjustment set based on each analysis indicator according to the information amount and representative value, and redistribute the remaining unextracted information according to the proportion adjustment set to expand the initial comparison set to obtain an actual comparison set; Determining abnormal data and a location where the abnormal data is generated based on the log information includes: Obtaining a standard comparison set based on the scene characteristics, and splitting the set according to the analysis indicators to obtain a standard subset based on each analysis indicator; Determine the final information clustering subset under each analysis indicator according to the actual comparison set; Compare and analyze the standard subset under the same analysis index with the final information cluster subset, mark the sub-information in the final information cluster subset that does not meet the standard setting, determine the marking ratio of each sub-information, and lock the memory address of the marked sub-information based on the generated code; Based on the annotation ratio and the memory address, a annotation array is constructed; The abnormal data of the actual comparison set and the generating position are determined based on all the marked arrays.

2. The method for locating and tracing abnormal data according to claim 1, characterized in that: The proportion adjustment set based on each analysis indicator is determined based on the amount of information and representative value, including: ;in, represents the proportion adjustment set of the j1th analysis indicator; Represents the amount of information of the i-th cluster block; Represents the total amount of information based on the cluster distribution graph; n2 represents the total number of cluster blocks; Indicates the representative value of the cluster in the i-th cluster block; The judgment value indicating whether there is a matching relationship between the j1th analysis indicator and the i-th cluster block; represents the matching coefficient between the j1th analysis index and the i-th clustering block; The judgment value indicating whether there is any remaining unextracted information in the i-th cluster block.

3. The method for locating and tracing abnormal data according to claim 1, characterized in that: Determining the abnormal data of the actual comparison set and the location where the abnormal data is generated based on all the annotated arrays includes: According to the annotation ratio of each sub-information in the same final information cluster subset, and combined with the actual weight and standard weight of each sub-information, determine whether the annotated part in the corresponding sub-information should be retained; If so, the corresponding marked part will be retained; Otherwise, the cluster block to which the corresponding marked part belongs is regarded as the first block, and the current distribution map of the first block is obtained; Determine a first distribution position of the corresponding marked part based on the current distribution graph, and at the same time, capture a second distribution position based on the current distribution graph and the corresponding marked part having the same analysis situation; Based on the first distribution position and the second distribution position, and in combination with the overall distribution position of the current distribution graph, determining a neglect coefficient of the corresponding marked portion; If the neglect coefficient is greater than the preset coefficient, the corresponding marked part is removed, otherwise, the corresponding marked part is retained; Treat all retained data as abnormal data; The number of address overlaps is counted according to the memory addresses of each reserved part, and the generation positions are obtained by sorting the statistical numbers from large to small, and the generation positions correspond to the abnormal data one by one.

4. The method for locating and tracing abnormal data according to claim 1, characterized in that: Tracing the generation location to obtain the abnormal generation path includes: According to the scenario application of the target scenario, a consistent logic operation diagram is obtained from the application-logic comparison table, wherein the logic operation diagram includes a number of operation nodes and connection relationships between nodes; Matching and placing the generation positions with the logic operation diagram in sequence, and obtaining a plurality of paths to be analyzed for each generation position according to the node connection relationship of the logic operation diagram; According to the logical representation of each node in each path to be analyzed and the historical anomaly database, the anomaly set corresponding to the path to be analyzed is obtained; Matching and analyzing the abnormal data at each generating position with the corresponding abnormal set, and obtaining the first path with the largest matching analysis value; Among them, all first paths are regarded as abnormal generation paths.

5. The method for locating and tracing abnormal data according to claim 4, characterized in that: Performing spatial analysis and anomaly threshold segmentation analysis on the anomaly generation path includes: Any generating node in the corresponding abnormal generating path is regarded as an abnormal node, and the remaining generating nodes are regarded as normal nodes to construct a single abnormal node path; Determine the positional relationship between the abnormal node and each normal node in the single abnormal node path, and calculate a number of abnormal thresholds corresponding to the abnormal node based on the number of branches and forks of each abnormal node and a historical abnormal database; Analyze the current operation information of the abnormal node based on a number of abnormal thresholds to obtain the first abnormal cause of the corresponding abnormal node; Performing spatial division according to the logical attribute of each node in the corresponding abnormal production path to obtain a plurality of spatial subsets, wherein the spatial subsets include a plurality of nodes with similar logical attributes; According to the distribution position of the nodes in each spatial subset and the current operation information, the second abnormal cause corresponding to each node is obtained, and the dispersion of the first cause is calculated; At the same time, the dispersion of the second cause based on the first abnormal cause of each generating node in the same spatial subset is calculated; It is determined whether the first cause dispersion and the second cause dispersion meet the conditions, and a key cause is extracted from the corresponding first abnormal cause and the second abnormal cause, and output as an abnormal root cause.

6. The method for locating and tracing abnormal data according to claim 5, characterized in that: The determining whether the first cause dispersion and the second cause dispersion meet the conditions includes: Responding to a judgment statement from the judgment database that matches the central attribute of all logical attributes involved in the corresponding space subset; Based on the judgment statement, conditional judgment is performed on the first cause discreteness and the second cause discreteness to obtain a combination symbol, and the combination symbol is matched with the condition database to obtain a condition that meets the condition.

Citation Information

Patent Citations

  • Intrusion detection method and device based on improved density clustering

    CN104484600A

  • Method and device for recognizing non-section abnormity of pantograph-catenary contact force

    CN113610188A