Asset fault early warning system based on operation and maintenance data model
Through the asset fault warning system of the operation and maintenance data model, it processes massive log data and builds a fault warning model, which solves the problems of low processing efficiency of massive log data and inaccurate fault location, and achieves efficient fault warning and accurate fault location.
Patent Information
- Application Number
- CN202410782634.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-22
AI Technical Summary
Existing technology is difficult to effectively process massive log data, resulting in low timeliness of fault warnings, and inaccurate fault location in a single data dimension, resulting in poor early warning effects.
An asset fault early warning system based on the operation and maintenance data model is adopted. Through the topology node building module, the log information sorting module and the early warning model building module, the log data is dimensionally reduced and structured, and the convolutional neural network model is used to build the asset fault early warning model. Combined with the DBSCAN clustering algorithm, the root cause nodes are determined to implement the early warning strategy.
It improves the sensitivity of log data and the accuracy of early warning models, reduces computing power consumption, improves processing efficiency, and significantly improves fault location accuracy and early warning timeliness with the support of multi-dimensional data.
Smart Images

Figure CN118820006A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of asset operation and maintenance technology, and in particular to an asset failure early warning system based on an operation and maintenance data model. Background Art
[0002] As the level of enterprise informatization increases, the number of various assets and equipment continues to increase, and the complexity of operation and maintenance work also increases. Traditional asset failure warning methods are usually based on manual inspections and regular maintenance. This method is inefficient and difficult to predict failures in a timely and accurate manner. In recent years, with the rapid development of big data and artificial intelligence technologies, it has become possible to automatically warn and predict asset failures by collecting and analyzing operation and maintenance data.
[0003] However, in real scenarios, there are many types of equipment assets, and a large amount of log information will be generated. The data dimensions contained in different log information are very complex, and there is a high coupling between different dimensional data; therefore, the structuring and information extraction of logs have an important impact on the accuracy of fault warning; at the same time, the representation and data characteristics of log data in different business scenarios are different, and targeted data processing and root cause location are required to achieve accurate fault warning of the system. Based on this, we propose an asset fault warning system based on the operation and maintenance data model. Summary of the invention
[0004] The purpose of the present invention is to provide an asset failure early warning system based on an operation and maintenance data model.
[0005] The technical problems solved by the present invention are:
[0006] (1) How to reduce the dimension and structure massive log data to solve the problem of low warning timeliness caused by computing power consumption and time-consuming log analysis;
[0007] (2) How to vectorize the factors with strong correlation among abnormal indicators, log data and call chain data and then perform cluster analysis to obtain abnormal clusters and determine the root cause nodes, so as to solve the problem of inaccurate fault location and poor early warning effect due to unstable data support under a single data dimension.
[0008] The present invention can be implemented by the following technical solution: an asset failure early warning system based on an operation and maintenance data model, comprising:
[0009] The topology node construction module is used to discover the device assets, status information and connection relationships in the network, and use the constructed network topology map to arrange probes and obtain the log data of each node;
[0010] The log information sorting module is used to divide the massive log data into levels and scenario types to obtain different log data groups under several storage spaces, and abstract log templates using log data groups, so as to merge and reduce the dimensions of log data and log templates to obtain log libraries and log template libraries;
[0011] The early warning model building module takes the log data, call chain data and abnormal indicators vectorized in a time segment arranged in time sequence as input, and the root cause node set sorted by priority as output to build a convolutional neural network model. After offline training, the asset fault early warning model is obtained;
[0012] The early warning strategy execution module uses the asset fault early warning model to observe the highest log alarm level of the top three root cause nodes in the root cause node set, and visually marks the node with color in the network topology diagram according to the different alarm levels, and takes measures such as ignoring, notifying or suspending service.
[0013] A further technical improvement of the present invention is that the log information sorting module divides the device levels in the topology network into a core layer, a relay layer and an application layer, and divides business scenarios in each layer, including business activity logs, network IO logs, system service logs, security event logs and periodic monitoring logs, and packages log data into log data groups with time series characteristics in different business scenarios.
[0014] A further technical improvement of the present invention is that: the log information sorting module divides the log data group into subordinate subsets according to the number of variable parameters, uses the characters before each variable parameter of the log data in the subordinate subset as a label, and defines them in order of installation as token1, token2, ..., tokenN;
[0015] Generate multiple log templates according to the number of tags and tag characters to obtain a log template sequence. Traverse each log data according to the tags one by one to find the log template with the greatest similarity, and then complete the classification of the log data.
[0016] Relax the limit on the number of tags, and decide whether to merge log templates based on the comparison results of the similarity between different log templates and the set threshold. If merged, retain the same tokens in the two log templates and the tokens with high value based on expert experience data, generate a new log template, and then complete the merging and deduplication of the corresponding subordinate subsets.
[0017] A further technical improvement of the present invention is that the similarity between the log template and the log template / log data is calculated as follows:
[0018]
[0019] Where l represents the length of the log message, Log1(u) and Log2(u) represent the u-th token of the current log template and the u-th token of the log data to be merged / another log template, respectively;
[0020]
[0021] A further technical improvement of the present invention is that the specific steps of the deduplication operation are:
[0022] Set the time length to perform segment cutting in the subordinate subset;
[0023] Set the moving window and the number of reciprocating translations;
[0024] De-duplication of the same data in each captured segment that appears in the same moving window;
[0025] The deduplication operation is performed periodically or triggered when log data explodes in a short period of time.
[0026] A further technical improvement of the present invention is that: when performing the translation, the moving step length of each unidirectional movement changes and is coprime with the number of log data before this movement; the number of reciprocating translations is positively correlated with the number of log data of the corresponding intercepted fragment.
[0027] A further technical improvement of the present invention is that the process of constructing the asset failure early warning model includes:
[0028] Step 1: Build a call chain library and a log template library consisting of log templates with globally unique identification codes;
[0029] Step 2: According to the abnormal indicators at a certain moment generated by the log data, the log data of three minutes before and after the corresponding moment and the call chain data of one minute before and after are respectively extracted to obtain the associated data set of abnormal indicators, logs, call chains and corresponding alarms;
[0030] Step 3: Vectorize the log data, call chain data and abnormal indicators to construct the model input;
[0031] Step 4: Obtain abnormal clusters based on the DBSCAN clustering algorithm to obtain a set of root cause nodes sorted by priority, and output them as the model;
[0032] Step 5: Based on the convolutional neural network model, a training set and a validation set are constructed in a ratio of 7:3 for offline training to obtain an asset fault warning model.
[0033] A further technical improvement of the present invention is that the process of prioritizing the root cause nodes includes:
[0034] The corresponding impact level threshold is set according to the type of abnormal indicator, and each impact level threshold corresponds to a different assigned score, so as to obtain the abnormal score of the corresponding abnormal indicator;
[0035] According to the node call frequency f, the number of connected nodes x, and the service duration t 持续 Calculate its importance score, the specific calculation formula is: b =(α*f+β*x)*lnt 持续 ; Where α and β are the weight distribution values of the call frequency and the number of connected nodes, respectively, and α<β;
[0036] The anomaly score and the importance score of the calling service node are summed to get the total score, and the nodes are sorted according to the total score.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] 1. Based on the topological network structure, the present invention divides the massive log data into layers and types, so that the subsequent structured processing is clearer, extracts the log template according to the log data and divides the subordinate subsets according to the number of variable parameters, removes the duplicates of the log data and the log template with high similarity, and further realizes the dimensionality reduction processing of the log data, which provides a basis for the data set for the subsequent construction of the early warning model, and also improves the sensitivity of the log data and the accuracy of the early warning model; at the same time, it greatly reduces the computing power consumption and improves the processing efficiency.
[0039] 2. The present invention uses the DBSCAN clustering algorithm to perform cluster analysis on vectorized log data, call chain data and abnormal indicators to obtain abnormal clustering clusters, and determines the root cause node set based on the nodes in the abnormal clustering clusters. With the support of multi-dimensional strongly correlated data, the positioning accuracy of the root cause node is much higher than the root cause node accuracy of single-dimensional data; at the same time, the root cause nodes in the set are prioritized to guide the discovery of the nodes most likely to have abnormalities; it is also convenient for the rapid and orderly execution of subsequent early warning strategies. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0041] Figure 1 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0042] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0043] See also Figure 1 As shown, an asset fault early warning system based on an operation and maintenance data model includes a topology node construction module, a log information sorting module, an early warning model construction module, and an early warning strategy execution module;
[0044] The topology node building module uses the SNMP-based network topology discovery algorithm and script commands to obtain network topology information; and uses XML and JavaScript plug-in technology to complete the drawing function and generate the topology map;
[0045] Specifically, first obtain the status and configuration information of the network device; obtain the routing table from the management information base MIB, which includes information such as the destination IP, next hop, local subnet mask, and routing type. Through the next hop address, use a recursive method to obtain the device information and connection relationship of the entire network structure;
[0046] Based on the constructed network topology, the server is used to actively install probes on each network node to record and upload the operation log data of each network node device terminal in real time;
[0047] The log information sorting module performs structured processing and similar merging and sorting on massive amounts of log data. The specific steps include:
[0048] Step 1: Divide the log data into different levels according to the device level
[0049] Generally speaking, the device layers in the operation and maintenance topology network include the core layer for high-speed data transmission, such as servers, etc.; the relay layer for the aggregation and distribution of data traffic, such as three-layer switches or switches with routing functions; and the application layer for executing tasks for traffic consumption, including user equipment terminals, etc.
[0050] Corresponding to the above-mentioned device levels, an independent level prefix code is added to the log data generated by each device level and partitioned and stored in the log storage module;
[0051] Step 2: Classify log data at each level according to business scenarios
[0052] Business scenarios include business activity logs, network IO logs, system service logs, security event logs, and periodic monitoring logs. The log data of different business scenarios at each device level are packaged into different log data groups with time series characteristics LogA k = {l a1 ,…,l b1 ,…,l ai ,…,l bj};
[0053] Among them, A krepresents different business scenarios, and the maximum value of k is consistent with the number of business scenario types, and is 5 in this embodiment; ai represents the i-th normal log (1≤i≤n), l bj represents the jth normal log (1≤j≤n);
[0054] The above-mentioned business activity logs mainly include activity records of users operating and executing functions on the device; network IO logs are used to record file size and traffic data during network upload and download; system service logs are used to record server system events, system errors, resource usage, etc.; security event logs are used to record system security events, such as login failures, restricted access, illegal operations, etc., and are also used to record attacks on the system; periodic monitoring logs represent logs generated by monitoring tools at each device level.
[0055] Step 3: Structuring log data in different log data groups
[0056] Since the logs have been classified for different business scenarios in step 2, the parameter composition and length of the logs in the same log data group are roughly the same; and the log data is composed of constant text information and variable parameters.
[0057] A single log data includes a message header and a log event. The message header generally has a fixed log framework, including timestamp, process ID, log level, and node component, while a series of characters in the log event cannot be used directly. A log template is abstracted from the constant part in the log data group. The log template consists of the constant part of the log event and the variable part replaced by a placeholder. The placeholder is usually represented by <*>. For example, if the log event is "Receivedblock blk-7526945448667194862of size 67108864 from / 10.251.91.84", the corresponding log template is "Received block<*>of size<*>from<*>".
[0058] Divide each log data group into subordinate subsets according to the number of variable parameters;
[0059] The characters before each variable parameter in the log event in the subordinate subset are used as labels, and are defined as token1, token2, ..., tokenN in the order of the labels.
[0060] Generate multiple log templates in several subordinate subsets to form a log template sequence, and the log template sequence is bound to the corresponding log data group; traverse the labels of the log events in the log data one by one, so as to find the log template with the greatest similarity to the corresponding log data, and then classify the log data into the corresponding log data group; it should be noted that when the maximum similarity value is less than the set threshold, a new log data group is created and a new log template is abstracted;
[0061] Specifically, the similarity is calculated as follows:
[0062]
[0063] Where l represents the length of the log message, Log1(u) and Log2(u) represent the u-th token of the log data to be merged and the u-th token of the log template respectively;
[0064]
[0065] Step 4: Merge and remove duplicate log data
[0066] In order to further reduce the dimensionality of massive log information, for the subordinate subset in the unified log data group in step 3, relax the limit on the number of labels, calculate the similarity between different log templates, and when the similarity value exceeds the set threshold, the two are considered to be similar templates, so the two log templates are merged. During the merging process, the same tokens are retained, and the different tokens are marked. Expert experience is used to screen the importance and retain the tokens with higher data value. Other tokens are ignored and deleted, so as to obtain a new merged log template;
[0067] After the log templates are merged, the corresponding subordinate subsets are also merged and arranged in time sequence. In each subordinate subset, the log data is deduplicated.
[0068] Specifically:
[0069] The log data in the subordinate subset is segmented according to the set time length;
[0070] The moving window and the number of reciprocating translations are set, and the moving step length changes in each unidirectional movement process; it should be noted that the moving window length here represents the number of log data included in the window, which is a preset value, and the number of reciprocating translations is positively correlated with the number of log data in the corresponding intercepted fragment; the moving step length of each unidirectional movement is coprime with the number of log data before this movement, and the moving step length decreases each time;
[0071] The same data in each intercepted segment that appears in the same moving window is deduplicated. After completion, the deduplicated and dimension-reduced log data group is obtained;
[0072] The deduplication operation is performed regularly or when there is an explosion in log data within a short period of time. In this case, the log data within the explosion time series is deduplicated first, and the deduplication operation is no longer performed on the log data segments that have been deduplicated.
[0073] Step 5: The log data groups after dimensionality reduction are classified and stored according to business scenarios to form a log library, and the structured log templates are packaged to obtain a log template library.
[0074] The early warning model building module performs cluster analysis on abnormal log data, associates abnormal events with the log library, and provides data support for subsequent accurate prediction of faults;
[0075] The steps for building the early warning model are as follows:
[0076] (1) Building a knowledge base
[0077] Use the hash code to assign a globally unique identification code to each log template in the above log template library;
[0078] According to different business scenarios, multi-dimensional query items are used to retrieve the call chain, including different types of call methods such as HTTP, RPC, DB, MQ, etc., to query the corresponding call chain set. It should be noted that tags (such as transaction numbers) are customized in each business scenario; the complete call chain data includes timestamp, host IP, node name, call chain ID, current call ID, parent node call ID, call start time, URL, status code and call-related information, so as to build a call chain library;
[0079] (2) Data extraction
[0080] According to the alarms displayed in the log variable parameters in the historical data and the abnormal indicators recorded in the corresponding time period (such as CPU occupancy, memory occupancy or response time, etc.), the log data of three minutes before and after time t0 and the call chain data of one minute before and after time t0 are extracted. Time t0 is the time when the corresponding alarm first appears in the log data; thus, the associated data set of abnormal indicators, logs, call chains and corresponding alarms is obtained; because the log information sorting module has reduced the dimension and deduplicated the log data, the data size and number of variable parameters of the associated data set are controllable, and will not cause the problem of excessive computing consumption;
[0081] (3) Build the model and perform offline training
[0082] Construct model input:
[0083] ① For log data, the log template identification code and log timestamp are vectorized and expressed in the form of A = {g 1 ,g 2 ,...,g n}, Among them, g n Indicates the specific value of the variable parameter contained in the nth token. It is the vectorized representation of the pth token value at time t0-Δt+1;
[0084] ② For the call chain data, the node set of the completion path of each call service in the call chain and the service duration are used as vector elements to construct a vector, expressed as:
[0085] D={s(d1,t1),s(d2,t2),...,s(d n ,t n )};
[0086] Among them, s(d q ,t q ) represents the vectorized representation of the qth service call, and the node set is d q , the service duration is t q ;
[0087] ③For abnormal indicators, vectorization is expressed as
[0088]
[0089] y n Indicates the specific characteristic value contained in the nth abnormal indicator, It is the vectorized representation of the eigenvalue of the zth abnormal indicator at time t0-Δt+1;
[0090] Take vectorized log data, call chain data, and abnormal indicators as input;
[0091] Based on the DBSCAN clustering algorithm, key parameters are set, including the neighborhood radius and the minimum number of points;
[0092] The DBSCAN algorithm is used to cluster the vectorized data set. During the clustering process, the algorithm divides the input vector set into multiple point clusters according to the density of the data.
[0093] Calculate the point density within a certain range around each point and compare it with the density threshold. If the point density of a certain point is significantly lower than the density of the adjacent sample points, the point is considered to belong to the abnormal cluster, and finally an abnormal cluster is formed;
[0094] Find the corresponding call chain in the cluster, determine the related call services and nodes in the call chain; define the nodes in the abnormal cluster as root cause nodes, and judge whether there is a call relationship between multiple root cause nodes. If so, retain the most downstream node according to the call relationship. If not, prioritize these root cause nodes;
[0095] Prioritize the root cause nodes as follows:
[0096] The corresponding impact level threshold is set according to the type of abnormal indicator, and each impact level threshold corresponds to a different assigned score. For example, when the impact level is slight, the assigned score is set to 1; when the impact level is general, the assigned score is set to 3; when the impact level is medium, the assigned score is set to 5; when the impact level is severe, the assigned score is set to 7; and then the abnormal score d of each abnormal indicator is obtained. a
[0097] According to the calling frequency f of the node calling the service, the number of connected nodes x, and the service duration t 持续 Calculate its importance score, the specific calculation formula is: b =(α*f+β*x)*lnt 持续 ; Where α and β are the weight distribution values of the call frequency and the number of connected nodes, respectively, and α<β;
[0098] The total score is obtained by summing up the anomaly score and the importance score of the calling service node, and the nodes are sorted according to the total score. The higher the score, the higher the priority of the calling service node.
[0099] Output the root cause nodes sorted by priority as the model output;
[0100] In summary, we construct a convolutional neural network model with vectorized log data, call chain data, and abnormal indicators in a time segment arranged in time sequence as input, and a set of root cause nodes sorted by priority as output. We construct a training set and a validation set in a ratio of 7:3 for offline training to obtain an asset fault warning model.
[0101] When the asset fault warning model outputs the corresponding set of root cause nodes sorted by priority based on the real-time log data, the warning strategy execution module observes the highest log alarm level of the top three root cause nodes. When the highest log alarm level is DEBUG or INFO, the node is marked in yellow in the network topology diagram, and the duration is set manually according to the importance of the node. The higher the importance, the longer the duration; when the highest log alarm level is NOTICE or WARN, the node is marked in blue, and the duration is set similarly, and the user and operation and maintenance specialist are notified through the information distribution mechanism; when the highest log alarm level is ERROR or ALERT, the node is marked in red, and the service of the entire call chain is suspended to prevent irreversible damage. At this time, the color mark of the node needs to be manually restored.
[0102] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. An asset failure early warning system based on operation and maintenance data model, It is characterized in that include: The topology node construction module is used to discover the device assets, status information and connection relationships in the network, and use the constructed network topology map to arrange probes and obtain the log data of each node; The log information sorting module is used to divide the massive log data into levels and scenario types to obtain different log data groups under several storage spaces, and abstract log templates using log data groups, so as to merge and reduce the dimensions of log data and log templates to obtain log libraries and log template libraries; The early warning model building module takes the log data, call chain data and abnormal indicators vectorized in a time segment arranged in time sequence as input, and the root cause node set sorted by priority as output to build a convolutional neural network model. After offline training, the asset fault early warning model is obtained; The early warning strategy execution module uses the asset fault early warning model to observe the highest log alarm level of the top three root cause nodes in the root cause node set, and visually marks the node with color in the network topology diagram according to the different alarm levels, and takes measures such as ignoring, notifying or suspending service.
2. According to claim 1, an asset failure early warning system based on an operation and maintenance data model, It is characterized in that The log information sorting module divides the device layers in the topology network into core layer, relay layer and application layer, and divides business scenarios in each layer, including business activity logs, network IO logs, system service logs, security event logs and periodic monitoring logs, and packages log data into log data groups with time series characteristics in different business scenarios.
3. The asset failure early warning system based on the operation and maintenance data model according to claim 2, It is characterized in that The log information sorting module divides the log data group into subordinate subsets according to the number of variable parameters, uses the characters before each variable parameter of the log data in the subordinate subset as a label, and defines them in order of installation, arrangement and definition as token1, token2, ..., tokenN; Generate multiple log templates according to the number of tags and tag characters to obtain a log template sequence. Traverse each log data according to the tags one by one to find the log template with the greatest similarity, and then complete the classification of the log data. Relax the limit on the number of tags, and decide whether to merge log templates based on the comparison results of the similarity between different log templates and the set threshold. If merged, retain the same tokens in the two log templates and the tokens with high value based on expert experience data, generate a new log template, and then complete the merging and deduplication of the corresponding subordinate subsets.
4. The asset failure early warning system based on the operation and maintenance data model according to claim 3, It is characterized in that The similarity calculation method between the log template and the log template / log data is as follows: Among them, l represents the length of the log message, Log 1 (u) and Log 2 (u) represents the u-th token of the current log template and the u-th token of the log data to be merged / another log template respectively; 5. The asset failure early warning system based on the operation and maintenance data model according to claim 3, It is characterized in that The specific steps of the deduplication operation are: Set the time length to perform segment cutting in the subordinate subset; Set the moving window and the number of reciprocating translations; De-duplication of the same data in each captured segment that appears in the same moving window; The deduplication operation is performed periodically or triggered when log data explodes in a short period of time.
6. The asset failure early warning system based on the operation and maintenance data model according to claim 5, It is characterized in that When performing the translation, the moving step length of each unidirectional movement changes and is mutually prime with the number of log data before the current movement; the number of reciprocating translations is positively correlated with the number of log data of the corresponding intercepted segment.
7. The asset failure early warning system based on the operation and maintenance data model according to claim 3, It is characterized in that The construction process of the asset failure early warning model includes: Step 1: Build a call chain library and a log template library consisting of log templates with globally unique identification codes; Step 2: According to the abnormal indicators at a certain moment generated by the log data, the log data of three minutes before and after the corresponding moment and the call chain data of one minute before and after are respectively extracted to obtain the associated data set of abnormal indicators, logs, call chains and corresponding alarms; Step 3: Vectorize the log data, call chain data and abnormal indicators to construct the model input; Step 4: Obtain abnormal clusters based on the DBSCAN clustering algorithm to obtain a set of root cause nodes sorted by priority, and output them as the model; Step 5: Based on the convolutional neural network model, a training set and a validation set are constructed in a ratio of 7:3 for offline training to obtain an asset fault warning model.
8. The asset failure early warning system based on the operation and maintenance data model according to claim 7, It is characterized in that The process of prioritizing the root cause nodes includes: The corresponding impact level threshold is set according to the type of abnormal indicator, and each impact level threshold corresponds to a different assigned score, so as to obtain the abnormal score of the corresponding abnormal indicator; According to the node call frequency f, the number of connected nodes x, and the service duration t 持续 Calculate its importance score, the specific calculation formula is: b =(α*f+β*x)*lnt 持续 ; Where α and β are the weight distribution values of the call frequency and the number of connected nodes, respectively, and α<β; The anomaly score and the importance score of the calling service node are summed to get the total score, and the nodes are sorted according to the total score.
Citation Information
Cited By
Monitoring and early warning method and device for skid-mounted equipment
CN119809614A
System debugging method and device, equipment, storage medium and program product
CN121364991A
