Anomaly detection method and related apparatus
By working collaboratively with the operation support system and the first node, and utilizing parameters such as the anomaly type and log producer information in the anomaly detection request, abnormal logs are automatically identified. This solves the problems of low efficiency and low accuracy caused by manual intervention in existing technologies, and achieves efficient and accurate log anomaly detection.
Patent Information
- Application Number
- CN202510686013.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for detecting log anomalies require a large amount of manual intervention, resulting in low efficiency and accuracy, making it difficult to accurately and efficiently identify abnormal logs.
The system sends anomaly detection requests to the first node through the operation support system. The first node controls the identification criteria according to the anomaly type and automatically outputs the detection result of whether the anomaly type has occurred, reducing manual analysis. Combined with parameters such as log producer information, aggregation type and compression ratio, the accuracy and efficiency of detection are improved.
It achieves accurate anomaly log detection without human intervention, improving the efficiency and accuracy of anomaly detection while reducing computational and data transmission load.
Smart Images

Figure CN123178190A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and in particular to an anomaly detection method and related apparatus. Background Technology
[0002] System logs record system status and significant events. They are collections of files used to record operational events and serve functions such as querying historical data, diagnosing problems, and performing system checks. They are typically used to help debug performance issues, faults, and perform root cause analysis. This log data is widely available in computer systems and is an important resource for understanding system status. Furthermore, because system logs record significant events in active running processes, they are an excellent source of information for online testing and anomaly detection.
[0003] Log anomaly detection refers to the automatic identification and detection of abnormal events or patterns that deviate from normal behavior patterns in log data generated by a system or application. Through log anomaly detection, operations and maintenance personnel can more quickly discover problems in the system, troubleshoot faults, and prevent system crashes or performance degradation. However, existing anomaly detection methods identify a large number of abnormal logs, requiring further manual analysis and verification. This not only consumes a significant amount of time but may also lead to incomplete analysis due to the large volume of logs, thus affecting the efficiency and accuracy of anomaly detection.
[0004] Therefore, how to accurately and efficiently control the anomaly detection of logs is a technical problem that urgently needs to be solved by those in this field. Summary of the Invention
[0005] This application provides an anomaly detection method and related apparatus, which can accurately and efficiently control the anomaly detection of logs.
[0006] The present application is described below from different aspects. It should be understood that the different implementation methods and beneficial effects described below can be referred to each other. In a first aspect, an embodiment of the present application provides an anomaly detection method applied to a first node, exemplarily, the first node may be a node deployed in an Operations and Maintenance Center (OMC). The method includes: receiving an anomaly detection request from an operations support system, the anomaly detection request including an anomaly type; and based on the anomaly detection request, returning a detection result to the operations support system, the detection result indicating that a first anomaly has occurred, the first anomaly belonging to an anomaly type, or the detection result indicating that an anomaly of the anomaly type has not occurred.
[0007] In this application, the anomaly detection requests that the first node can receive include anomaly types. This means that the operations support system can specify anomaly identification criteria for anomaly detection, enabling the first node to output targeted detection results that meet the needs of the operations support system based on the anomaly types in the anomaly detection requests. Here, the detection results can be used to indicate whether an anomaly of an anomaly type has occurred. In other words, the first node does not return all anomalies that have occurred, but accurately outputs whether an anomaly of an anomaly type has occurred. Moreover, the entire process does not require manual analysis, which can effectively improve the accuracy and efficiency of anomaly logs.
[0008] In conjunction with the first aspect, in one possible implementation, if the detection result is used to indicate the occurrence of a first anomaly, the detection result also includes the first log corresponding to the first anomaly.
[0009] For example, the first log includes log producer information, which may be used to indicate one or more of the following: the producer, the module in the producer, or the resource pool.
[0010] In the above implementation, the detection results can not only indicate that the first anomaly has occurred, but also specifically specify the first log of the first anomaly and the source of the first log. This can more clearly identify the object of the anomaly, further improve the accuracy of anomaly detection, and provide convenience for subsequent operation and maintenance users.
[0011] In conjunction with the first aspect, in one possible implementation, the first node sends log reporting information to at least one second node, the log reporting information being used to indicate the reporting of logs; the first node receives second logs from at least one second node; the first node analyzes the received second logs based on an anomaly detection request to obtain detection results.
[0012] For example, at least one second node includes one or more of the following: a compute node, a network node, or a storage node.
[0013] In the above implementation, the second log collected by the first node may be reported by the computing node, the network node, or the storage node. This means that the network structure of the anomaly detection method provided in this application embodiment is diverse, and its application scenarios are relatively wide and its applicability is strong.
[0014] In conjunction with the first aspect, in one possible implementation, the second log includes log producer information, which can be used to indicate one or more of the following: the producer, the module in the producer, or the resource pool.
[0015] In the above implementation, the second log carries producer information, which can facilitate the second node to perform log anomaly detection. For example, if the anomaly detection request carries the detection object (e.g., a node, a module in the node, or a resource pool), the second node can filter out the second logs that do not belong to the detection object from the collected logs based on the producer information. This can reduce the amount of computation required for subsequent anomaly detection and thus improve the efficiency of anomaly detection.
[0016] In conjunction with the first aspect, in one possible implementation, the anomaly detection request further includes an aggregation type and / or a compression ratio; the first node analyzes the received second log based on the anomaly detection request to obtain a detection result, including: the first node detects the received second log based on the anomaly type to obtain at least one log corresponding to the first anomaly; the first node aggregates the at least one log corresponding to the first anomaly according to the aggregation type to obtain a detection result, or the first node compresses the at least one log corresponding to the first anomaly according to the compression ratio to obtain a detection result, or the first node aggregates and compresses the at least one log corresponding to the first anomaly according to both the aggregation type and the compression ratio to obtain a detection result.
[0017] For example, the aggregation type or compression ratio here can be specified by the operations support system or pre-configured; these will not be limited here. In the above implementation, the first node, through the aggregation type, can further summarize the correlation between the logs in the first log and display more accurate detection results to the operations support system. The first node can also use the compression ratio to address the log display accuracy under different needs. By hierarchically controlling the transmission volume between the first node and the operations support system, the transmission volume between the first node and the operations support system can be effectively reduced, thereby improving transmission efficiency.
[0018] In conjunction with the first aspect, in one possible implementation, the anomaly detection request also includes an aggregation type and a detection time period, wherein the aggregation type is time; the first log includes at least one timestamp and the log corresponding to the first anomaly under at least one timestamp, wherein at least one timestamp belongs to the detection time period.
[0019] In the above implementation, the first node, through the aggregation type of time, can further summarize the sequential relationship of the logs in the first log in terms of log generation time. This not only controls the anomaly identification criteria for anomaly detection, but also displays more accurate detection results to the operation support system.
[0020] In conjunction with the first aspect, in one possible implementation, the anomaly detection request further includes an aggregation type, which is either a topological relationship or an explosion radius; the first log includes logs of at least one third node, which is a node associated with the first anomaly, and the at least one third node includes the anomalous node and the affected node, which is either a node with a topological relationship to the anomalous node or a node affected by the explosion radius of the anomalous node.
[0021] For example, topology can represent the network connectivity of nodes, and the explosion radius can represent the range of impact in the network after a node failure (e.g., one hop, two hops, etc.). A hop can be understood as the distance corresponding to the transmission path of a data packet. A one-hop can represent the distance a data packet travels from one node to another adjacent node, that is, taking one step at the network layer.
[0022] For example, the determination of an abnormal node depends on whether the abnormal detection request includes a detection object. If the abnormal detection request does not include a detection object, the abnormal node can be the node corresponding to the earliest occurrence of the abnormal type. If the abnormal detection request includes a detection object, the abnormal node is the node corresponding to the detection object.
[0023] In the above implementation, the first node can further summarize the relationship between the third nodes through the aggregation type of topological relationship or explosion radius, that is, to indicate which node is the key node where the anomaly occurs and which node is the affected node. This not only controls the anomaly identification standard of anomaly detection, but also shows more accurate detection results to the operation support system.
[0024] Secondly, embodiments of this application provide an anomaly detection method applied to an Operations Support System (OSS). The method may include: sending an anomaly detection request to a first node, the anomaly detection request including an anomaly type; receiving a detection result returned by the first node, the detection result indicating the occurrence of a first anomaly, the first anomaly belonging to an anomaly type, or the detection result indicating that an anomaly of an anomaly type has not occurred.
[0025] In this application, the operation support system sends anomaly detection requests to the first node, enabling the first node to control the anomaly identification criteria based on the anomaly type in the anomaly detection request and accurately output the detection results. Here, the detection results can be used to indicate that the first anomaly has occurred and belongs to an anomaly type, or the detection results can be used to indicate that an anomaly of an anomaly type has not occurred. That is to say, the first node does not return all anomalies, but specifically determines whether an anomaly of an anomaly type has occurred, and the whole process does not require manual analysis, which can effectively improve the accuracy and efficiency of anomaly logs.
[0026] In conjunction with the second aspect, in one possible implementation, if the detection result is used to indicate the occurrence of a first anomaly, the detection result also includes the first log corresponding to the first anomaly.
[0027] For example, the first log includes log producer information, which may be used to indicate one or more of the following: the producer, the module in the producer, or the resource pool.
[0028] In the above implementation, the detection results can not only indicate that the first anomaly has occurred, but also specifically specify the first log of the first anomaly and the source of the first log. This can more clearly identify the object of the anomaly, further improve the accuracy of anomaly detection, and provide convenience for subsequent operation and maintenance users.
[0029] In conjunction with the second aspect, in one possible implementation, the anomaly detection request also includes an aggregation type and a detection time period, where the aggregation type is time; the first log includes at least one timestamp and the log corresponding to the first anomaly under at least one timestamp, where at least one timestamp belongs to the detection time period.
[0030] In the above implementation, the operation support system can specify the aggregation type as time in the anomaly detection request. The final detection result can further indicate the order of the logs in the first log in terms of log generation time, thereby further improving the accuracy of anomaly detection.
[0031] In conjunction with the second aspect, in one possible implementation, the anomaly detection request further includes an aggregation type, which is either a topological relationship or an explosion radius; the first log includes logs of at least one third node, which is a node associated with the first anomaly, and the at least one third node includes the anomalous node and the affected node, which is either a node with a topological relationship to the anomalous node or a node affected by the explosion radius of the anomalous node.
[0032] In the above implementation, the operation support system can specify the aggregation type as topological relationship or explosion radius in the anomaly detection request. The final detection result can further summarize the correlation between the third nodes, that is, indicate which node is the key node where the anomaly occurred and which node is the affected node, thereby further improving the accuracy of anomaly detection.
[0033] In conjunction with the first or second aspect, in one possible implementation, the anomaly detection request further includes at least one detection object and anomaly detection parameters corresponding to each detection object, the anomaly detection parameters including the anomaly type.
[0034] In the above implementation, the anomaly detection request carries the detection object. The second node can then filter out second logs that do not belong to the detection object from the collected logs based on the producer information. This reduces the computational load of subsequent anomaly detection and improves the efficiency of anomaly detection.
[0035] In one possible implementation, the anomaly detection parameters also include aggregation type and / or compression ratio.
[0036] In one possible implementation, the detection objects include nodes, modules within nodes, or resource pools within nodes.
[0037] In one possible implementation, the exception type includes business exceptions, which include at least one of file operation exceptions, database exceptions, network exceptions, hardware exceptions, or system exceptions.
[0038] In one possible implementation, the exception type includes log feature class exceptions, which include at least one of the following: log template number exception, execution order exception, variable value exception in log content, or log semantic exception.
[0039] In one possible implementation, the exception type includes one or more of the following: file operation exception, database exception, network exception, hardware exception, system exception, log template quantity exception, execution order exception, variable value exception in log content, or log semantic exception.
[0040] The above methods offer a variety of anomaly types, allowing the operations support system to flexibly select at least one anomaly identification standard for subsequent anomaly detection, enabling the first node to more accurately control anomaly detection.
[0041] Thirdly, embodiments of this application provide a communication device for implementing the method as described in the first aspect or any implementation thereof. The communication device includes modules for implementing the method in the first aspect or any implementation thereof.
[0042] Fourthly, embodiments of this application provide a communication device for implementing the method as described in the second aspect or any of its implementations. The communication device includes modules for implementing the method in the second aspect or any of its implementations.
[0043] In the third or fourth aspect, the aforementioned communication device may include a transceiver module and a processing module. Further details regarding the transceiver module and processing module can be found in the device embodiments shown below. The beneficial effects of the third and fourth aspects described above can be referenced in the relevant descriptions of the first and second aspects, and will not be repeated here.
[0044] Fifthly, embodiments of this application provide a communication device, which includes a processor and a transceiver. The transceiver is used to send and receive information, and the processor is used to enable the communication device to implement the method as described in the first aspect or any of the implementations of the first aspect, or to implement the method as described in the second aspect or any of the implementations of the second aspect.
[0045] Sixthly, this application provides a communication device, which includes at least a processor. The processor is configured to execute computer execution instructions to cause the communication device to implement the method as described in the first aspect or any implementation thereof, or to implement the method as described in the second aspect or any implementation thereof.
[0046] In conjunction with the sixth aspect, in one possible implementation, the communication device may further include a memory for storing instructions executed by the processor, or for storing input data required for the processor to execute instructions, or for storing data generated after the processor executes instructions.
[0047] In a seventh aspect, this application provides a computer-readable storage medium storing a computer program that, when executed, causes a communication device including a processor to implement the method as described in the first aspect or any of the implementations of the first aspect, or to implement the method as described in the second aspect or any of the implementations of the second aspect.
[0048] Eighthly, embodiments of this application provide a computer program product including instructions that, when executed on a computer, cause the computer to implement a method as described in the first aspect or any of the implementations of the first aspect, or to implement a method as described in the second aspect or any of the implementations of the second aspect.
[0049] Ninthly, embodiments of this application provide a communication system, which includes at least a first node and an operation support system. The first node is used to implement the method as described in the first aspect or any of the implementations of the first aspect, and the operation support system is used to implement the method as described in the second aspect or any of the implementations of the second aspect.
[0050] The technical effects achieved in the above aspects can be referred to each other or to the beneficial effects in the method embodiments shown below, which will not be repeated here. Attached Figure Description
[0051] Figure 1 This is a simplified schematic diagram of a communication system applicable to an embodiment of this application;
[0052] Figure 2 This is a flowchart illustrating an anomaly detection method provided in an embodiment of this application.
[0053] Figure 3 This is a network architecture diagram of a second node provided in an embodiment of this application;
[0054] Figure 4 This is a flowchart illustrating another anomaly detection method provided in this application embodiment;
[0055] Figure 5 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;
[0056] Figure 6 This is a schematic diagram of the structure of another communication device provided in the embodiments of this application. Detailed Implementation
[0057] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0058] In the description of this application, terms such as "first" and "second" are used only to distinguish different objects, not to describe a specific order. Furthermore, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Additionally, "at least one" refers to one or more, and "multiple" refers to two or more. "One or more of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c; a and b; a and c; b and c; or a and b and c. Where a, b, and c can be single or multiple.
[0059] The terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0060] In this application, the words "exemplary" or "for example" are used to indicate that something is an example, illustration, or illustration. Any embodiment or design described as "exemplary," "for example," or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Rather, the use of the words "exemplary," "for example," or "for example" is intended to present the relevant concepts in a specific manner.
[0061] It is understood that in this application, "when," "if," and "if" all refer to the device performing a corresponding action under certain objective circumstances, and are not time-limited, nor do they require the device to perform a judgment action when it is implemented, nor do they imply any other limitations. The device performing a corresponding action under certain objective circumstances includes: satisfying the objective circumstances, i.e., being able to perform the corresponding action; or satisfying both the objective circumstances and other circumstances, in order to perform the corresponding action.
[0062] In this application, "simultaneous" can be understood as "parallel", or at the same point in time, or within a period of time, or within the same cycle. The specific meaning can be understood in conjunction with the context.
[0063] In this application, the use of singular designations for elements is intended to represent "one or more" rather than "one and only one," unless otherwise specified.
[0064] It is understood that in the various embodiments of this application, phrases such as "B corresponding to A," "A corresponds to B," or similar expressions indicate that B is associated with A, and B can be determined based on A. This includes determining information B solely based on A, as well as determining B based on A and other information. Furthermore, the use of A to determine information B can also include indirect determination, such as B being determined based on C, and C being determined based on A.
[0065] In this application, "send" and "receive" indicate the direction of signal transmission. For example, "send information to XX" can be understood as the destination of the information being XX, which can include direct transmission via the air interface or indirect transmission by other units or modules via the air interface. "Receive information from YY" can be understood as the source of the information being YY, which can include direct reception from YY via the air interface or indirect reception from YY by other units or modules via the air interface. "Send" can also be understood as the "output" of a chip interface, and "receive" can also be understood as the "input" of a chip interface. In other words, sending and receiving can occur between devices, for example, through buses, traces, or interfaces between components, modules, chips, software modules, or hardware modules within a device.
[0066] In this application, "instruction" can include direct instruction, indirect instruction, explicit instruction, and implicit instruction. When describing certain instruction information to indicate A, it can be understood that the information carries A, directly indicates A, or indirectly indicates A. Direct instruction A can be understood as including the information A; implicit instruction A can be understood as indicating A through the correspondence between A and B and the direct instruction B.
[0067] The anomaly detection method of this application embodiment can be applied to various communication systems, such as the Global System for Mobile Communications (GSMA), Long Term Evolution (LTE) system, Universal Mobile Telecommunications System (UMTS), 4th Generation (4G) mobile communication system, 4.5th Generation (4.5G) mobile communication system, and 5th Generation (5G) mobile communication system. Furthermore, with the continuous development of communication technology, the technical solution of this application embodiment can also be used in subsequent evolved communication systems. The technical solution of this application embodiment can also be applied to Universal Mobile Telecommunications System (UMTS), Code Division Multiple Access (CDMA) systems, Wireless Local Area Networks (WLANs), etc.
[0068] The system architecture used in the embodiments of this application is described below. It should be noted that the system architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, as the system architecture or application scenarios evolve, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0069] For example, please see Figure 1 , Figure 1 This is a simplified schematic diagram of a communication system applicable to an embodiment of this application. For example... Figure 1 As shown, the communication system 100 may include an operation support system 110, nodes 120, and a node cluster 130. For example... Figure 1 As shown, the node cluster 130 may include one or more nodes; there is no limit to the number of nodes in the node cluster 130. Figure 1 As shown, the node cluster 130 may specifically include node 130a, node 130b, ..., node 130n.
[0070] The Operation Support System 110, also known as the Operation Support System, is an essential support platform for the development and operation of communication services. It is responsible for the inspection and management of the entire network's communication quality and operation, and records and collects various data related to the network's operation. It is understood that the Operation Support System 110 can also interact with users. For example, the Operation Support System 110 can be deployed on terminal devices or on another device with a network connection to the terminal device; this is not limited here. Examples of terminal devices include: mobile phones, tablets, laptops, desktop computers, smart home devices (e.g., smart speakers or smart TVs), wearable devices (e.g., smartwatches), in-vehicle terminals, or satellite communication terminals.
[0071] Node 120, also known as a management node, can be understood as an operations and maintenance management platform. It helps operations and maintenance personnel detect and manage network devices (e.g., nodes in node cluster 130), systems, and applications to ensure network stability and reliability. For example, node 120 can collect logs and analyze them to identify logs that are abnormal.
[0072] In this cluster, each node in the node cluster 130 can establish a network connection with node 120, enabling each node to interact with node 120 via this network connection. For example, in a scenario where network management is used to manage network elements (e.g., a data center scenario), each node can report logs to node 120. The network connection method is not limited; it can be established directly or indirectly via wired communication, wireless communication, or other methods. This application does not impose any restrictions on this method.
[0073] It should be understood that the nodes in the node cluster 130 are not independent and may have network connections. For example, node 130a can be connected to node 130b or node 130c. That is, the nodes connected to node 130a can include nodes 130b and 130c.
[0074] In addition, the nodes in node cluster 130 may also include one or more of the following: compute nodes, network nodes, or storage nodes, as described below:
[0075] Compute nodes are primarily responsible for executing computing tasks. They typically possess powerful processing capabilities and memory resources, enabling them to perform complex calculations or process large amounts of data. Their functions may include virtual machine management, resource scheduling, security, and isolation.
[0076] Network node: Primarily responsible for communication between the external network and the internal network. For example, this network node (also called an access network device or network equipment) can be an entity on the network side used to transmit or receive signals, such as a base station (BS). A BS can be a device deployed in a radio access network capable of wireless communication with terminals. Base stations may take various forms, such as macro base stations, micro base stations, relay stations, and access points (APs). For example, the base station involved in this application embodiment can be a base station in 5G, an access network device or module of an access network device in an open radio access network (O-RAN) system, a base station in a future mobile communication system, an access node in a Wi-Fi system, or an evolved node B (eNB) in LTE, etc.
[0077] Storage nodes: Primarily responsible for storing and managing data, they typically have large-capacity storage devices, such as disk arrays or distributed file systems, used to store the actual data. Their use cases can include virtual machine storage, object storage, and block storage.
[0078] For ease of explanation, in this application embodiment, the node used for anomaly detection of logs (e.g., node 120 mentioned above) can be referred to as the first node; and the node in the node cluster 130 used for reporting logs to the first node can be referred to as the second node (e.g., node 130a mentioned above). It should be understood that in this application, the operation support system and / or the first node can perform some or all of the steps in the various embodiments. These steps or operations are merely examples, and other operations or variations of various operations can also be performed in this application embodiment. Furthermore, the various steps can be performed in different orders as presented in the various embodiments, and it is not necessary to perform all the operations in the embodiments of this application.
[0079] To facilitate understanding of the technical methods provided in the embodiments of this application, the relevant technologies of the embodiments of this application will be briefly introduced as follows:
[0080] Existing model-based anomaly detection methods often require significant time and manpower to annotate historical logs and train the model using these annotated logs. The goal is to enable the model to distinguish between logs containing anomalies and those that did not. However, this approach only identifies logs containing anomalies without further categorizing them. In other words, model-based anomaly detection methods cannot control the anomaly identification criteria. If a specific type of anomaly (e.g., hardware anomalies) needs to be detected, further manual analysis and verification are required. However, when the model identifies a large number of logs containing anomalies, manual analysis not only takes considerable time but may also result in missed or false detections, severely impacting the efficiency and accuracy of anomaly detection.
[0081] To address the aforementioned issues, this application provides an anomaly detection method. The operation support system can send an anomaly detection request to a first node, enabling the first node to control the anomaly identification criteria based on the anomaly type in the request and accurately output detection results. These detection results can indicate the occurrence of a first anomaly, which belongs to an anomaly type; or they can indicate that no anomaly of the anomaly type has occurred. In other words, the first node does not return all anomalies but selectively determines whether an anomaly of an anomaly type has occurred. Furthermore, the entire process does not require manual analysis, thus effectively improving the accuracy and efficiency of anomaly logs.
[0082] Among them, the exception type belongs to at least one of the N candidate types. The candidate types are obtained after classifying the exceptions existing in the log. It should be understood that the exceptions existing in the log can be classified according to the business level or according to the log characteristics. For ease of explanation, the exception types classified according to the business level can be collectively referred to as business exceptions, and the exception types classified according to the log characteristics can be collectively referred to as log characteristic exceptions.
[0083] For example, business exception classes can specifically include file operation exceptions, database exceptions, network exceptions, hardware exceptions, and system exceptions, which will be described in detail below:
[0084] File operation exceptions: These usually refer to errors that occur when performing file / folder operations (such as reading, writing, deleting, moving, etc.), such as the file or directory not existing, the file or directory not having access permissions, or failure to read / write files.
[0085] Database exceptions: These typically refer to errors that occur during database operations, such as database loading failure, database connection failure, table / database not existing, statement-level exceptions (e.g., syntax errors), and database operation (e.g., query, insert, delete, update, etc.) exceptions.
[0086] Network anomalies typically refer to errors that occur during network communication, such as network port occupancy, connection failure, network request failure, connection closure, and connection timeout.
[0087] Hardware malfunctions: These typically refer to errors related to the hard drive, memory, device drivers, etc. For example, a malfunction of the Central Processing Unit (CPU) (e.g., excessive CPU usage), insufficient disk space, disk damage, unrecognized devices, incompatible drivers, etc.
[0088] System anomalies: These are usually caused by abnormalities in the operating system, memory, hard disk, or CPU load. Examples include operating system anomalies (e.g., kernel anomalies, system boot anomalies, system update anomalies), memory overflows, security verification anomalies, and daemon process anomalies.
[0089] For example, log feature exceptions may specifically include abnormal log template quantity, abnormal execution order, abnormal variable values in log content, and abnormal log semantics, which will be described in detail below:
[0090] Abnormal number of log templates: This usually refers to a situation where the number of entries for a certain type of log template generated by the system within a certain time window significantly exceeds or falls below the normal expectation. This type of anomaly usually indicates a change in the execution frequency of a certain module. For example, under normal operation, a certain type of log entry generates 5 entries per minute, but at a certain point in time, 100 log entries with the same template are suddenly generated. This may indicate that the service has entered an infinite loop or is experiencing frequent error retries.
[0091] An abnormal execution order refers to a situation where the order of log entries does not conform to the normal execution flow of the system or application. The operation of a system or program typically follows a fixed sequence of steps, and log entries reflect these steps. If this sequence is disrupted, it may indicate abnormal system behavior. For example, in a certain service, the normal log order should be "Create" → "Register" → "Login". If the logs show "Login" preceding "Register", it indicates an abnormal execution flow.
[0092] Abnormal variable values in log content: This refers to the values of dynamic variables in the log deviating from the expected range or format. Log entries often contain dynamic content, such as temperature and CPU utilization. These variables should conform to the normal logic or business rules of the system. When a variable value does not meet expectations, it is considered an abnormal variable value. This type of problem can be transformed into numerical timing anomaly detection. For example, if a log for monitoring hardware temperature prints the CPU temperature, and the CPU temperature variable value suddenly increases, it indicates an abnormal variable value.
[0093] Log semantic anomalies refer to situations where, from the perspective of the log content and context, a log entry is valid in form but semantically isolated and abnormal.
[0094] The technical solution provided in this application will be described in detail below with reference to more accompanying drawings.
[0095] The technical solutions provided in this application are illustrated through multiple embodiments, with specific reference to the descriptions of the various embodiments below. The same or similar parts between the various embodiments or implementations can be referred to mutually. In the various embodiments of this application, and in the various implementation methods / methods / implementations within each embodiment, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments and between the various implementation methods / methods / implementations within each embodiment are consistent and can be mutually referenced. The technical features in different embodiments and the various implementation methods / methods / implementations within each embodiment can be combined according to their inherent logical relationships to form new embodiments, implementation methods, methods, or implementation approaches. The following embodiments of this application do not constitute a limitation on the scope of protection of this application.
[0096] For further information, please refer to [link / reference]. Figure 2 , Figure 2 This is a flowchart illustrating an anomaly detection method provided in an embodiment of this application. For example... Figure 2 As shown, the method may include an operations support system and a first node, wherein the operations support system may be as described above. Figure 1 The operation support system 110 shown can have a first node that is used for anomaly detection of logs (e.g., Figure 1 (Node 120 shown). The method may include at least steps S201-S202:
[0097] Step S201: The operation support system sends an anomaly detection request to the first node. The anomaly detection request includes the anomaly type.
[0098] For example, an anomaly detection request can be a request for anomaly detection in logs, such as one generated by the operations support system based on anomaly detection parameters. It can be understood that the operations support system provides an interface for user interaction, allowing users to perform corresponding operations on this interface to determine the anomaly detection parameters. These anomaly detection parameters can include the anomaly type.
[0099] In one possible implementation, the operations support system determines the type of anomaly (e.g., hardware anomaly) through a human-computer interaction interface.
[0100] Among them, exception types can be divided based on different granularities. For example, at a coarse-grained level, exception types can include business exceptions and log feature exceptions. Specifically, business exceptions can include file operation exceptions, database exceptions, network exceptions, hardware exceptions, or system exceptions, etc.; log feature exceptions can include log template quantity exceptions, execution order exceptions, variable value exceptions in log content exceptions, or log semantic exceptions, etc.
[0101] For example, at a finer granular level, exception types can include file operation exceptions, database exceptions, network exceptions, hardware exceptions, system exceptions, log template quantity exceptions, execution order exceptions, variable value exceptions in log content, or log semantic exceptions, etc.
[0102] In step S202, the first node returns the detection result to the operation support system based on the anomaly detection request.
[0103] The detection result can be used to indicate the occurrence of a first anomaly, which belongs to the anomaly type in the anomaly detection request, or the detection result can be used to indicate that no anomaly of the above-mentioned anomaly type has occurred.
[0104] For example, after receiving an anomaly detection request, the first node can analyze the received second log based on the anomaly type in the anomaly detection request to obtain a detection result. This detection result may also include the first log corresponding to the first anomaly.
[0105] It is understandable that different anomaly types may require different anomaly detection methods.
[0106] For example, if the exception type belongs to the business exception, the first node can determine the log to be analyzed from the collected second log, and then detect the log to be analyzed to determine the log in which the exception occurred. From the log in which the exception occurred, the log corresponding to the exception type is selected as the first log corresponding to the first exception, and then the detection result is determined based on the first log.
[0107] For example, if the anomaly type belongs to the log feature type anomaly, the first node can determine the log to be analyzed from the collected second log, and then obtain the anomaly detection method corresponding to the anomaly type. This allows for the detection of the log to be analyzed, obtaining the first log corresponding to the first anomaly, and then determining the detection result based on this first log. It can be understood that the embodiments of this application can more accurately select anomaly detection methods that are closer to the anomaly type from multiple anomaly detection methods (such as model detection, rule matching, feature recognition, etc.), thereby effectively improving the accuracy of anomaly detection.
[0108] Among them, the log to be analyzed is related to the content carried by the anomaly detection request. If the anomaly detection request includes a detection time period, the log to be analyzed is obtained by filtering the received second log based on the detection time period. That is, the log to be analyzed is the second log whose log generation time belongs to the detection time period from the received second log. This can effectively reduce the amount of computation of the first node and save computing resources.
[0109] Optionally, the detection result may include, in addition to the first log, one or more of the following: detection time period, anomaly type, and the producer of the log in which the first anomaly occurred. For example, please refer to Table 1, which is a schematic table of a possible detection result provided in an embodiment of this application, as shown in Table 1:
[0110] Table 1
[0111]
[0112] It should be noted that the items shown in Table 1 are merely a reference format, and the specific form of Table 1 is not limited in this application embodiment. In actual business scenarios, other items can be created according to requirements. For example, Table 1 can also include the number of logs corresponding to the exception type, and the number of logs corresponding to the next level type of exception. For example, Table 1 can include: the number of business exceptions is 3, of which the number of hardware exceptions is 1; and the number of network exceptions is 2.
[0113] It is understandable that log feature-based exceptions and business-based exceptions are not isolated, but may overlap. In other words, an exception in a certain log may belong to both the log template quantity exception and a lower-level type of business-based exception (e.g., file operation exception, database exception, network exception, hardware exception, or system exception).
[0114] For example, overlapping types of abnormal log template quantity may include: file operation abnormality, database abnormality, network abnormality, hardware abnormality, or system abnormality; overlapping types of abnormal execution order may include: file operation abnormality or database abnormality; overlapping types of abnormal variable values in log content may include: network abnormality, hardware abnormality, or system abnormality; overlapping types of abnormal log semantics may include: file operation abnormality, database abnormality, network abnormality, hardware abnormality, or system abnormality.
[0115] In one possible implementation, in order to improve the accuracy of anomaly detection, even if the anomaly type in the anomaly detection request belongs to the log feature type anomaly, the embodiments of this application can also more clearly indicate the possible type of the log to which the anomaly belongs in the detection result. For example, when the anomaly type included in the anomaly detection request is a log semantic anomaly, the embodiments of this application can also indicate the business-level anomaly of the log that caused the first anomaly in the detection result, that is, a business-type anomaly.
[0116] Optionally, the detection result may include not only the possible types of the logs that caused the anomalies, but also the number of logs corresponding to each type. For example, please refer to Table 2, which is an illustration of another possible detection result provided in an embodiment of this application, as shown in Table 2:
[0117] Table 2
[0118]
[0119] In one possible implementation, before executing step S201, the first node may send log reporting information (instructions for reporting logs) to at least one second node and receive second logs from at least one second node. After executing step S201, the received second logs may be analyzed based on an anomaly detection request to obtain detection results. Here, at least one second node may include one or more of the following: a computing node, a network node, or a storage node. This means that the anomaly detection method provided in this embodiment has a wide range of applications and strong applicability.
[0120] It is understandable that, in order to quickly filter out the second log corresponding to a certain detection object, thereby improving detection efficiency and reducing the amount of calculation, the second log here can include log producer information. This producer information can be used to indicate one or more of the following: the producer, the module or resource pool in the producer. For example, a possible format of the second log can be: [log generation time][log producer information][log exception reason].
[0121] In one possible implementation, the detection result determined by the first node may include the first log corresponding to the first anomaly, and the first log corresponding to the first anomaly may also include log producer information.
[0122] To avoid wasting resources and reduce the amount of data transmitted between the operations support system and the first node, the anomaly detection requests sent by the operations support system to the first node can include not only the anomaly type and detection time period, but also the aggregation type and / or compression ratio. This allows the first node to more accurately control the anomaly detection of logs by limiting the transmission of anomaly logs.
[0123] Here, the compression ratio can be used to indicate the ratio of the number of logs displaying the first anomaly to the actual number of logs detecting the first anomaly. In one possible implementation, the operations support system can determine the compression ratio through a human-computer interaction interface. For example, the interface provided by the operations support system may also include a first area related to the compression ratio. The compression ratio can be determined by the operations support system in response to input operations to the first area. This compression ratio can be directly input by the user into the first area, or it can be determined by the user from multiple candidate compression ratios displayed in the first area. The method of determining the compression ratio is not limited here.
[0124] The aggregation type here can include at least one of time, topological relationship, or explosion radius. In one possible implementation, the operations support system can also determine the compression ratio through a human-computer interaction interface. For example, the interface provided by the operations support system can also include a second area related to the aggregation type. The aggregation type here can be determined by the operations support system in response to input operations to the second area. This aggregation type can be directly input by the user into the second area, or it can be determined by the user from multiple candidate aggregation types displayed in the second area. The method of determining the aggregation type will not be limited here.
[0125] Here, topology represents the network connectivity of nodes, and blast radius represents the range of impact within the network after a node failure. For ease of understanding, please refer to the example provided. Figure 3 , Figure 3 This is a network architecture diagram of a second node provided in an embodiment of this application. For example... Figure 3 As shown, the network structure diagram can include multiple second nodes. Here, we can take eight second nodes as an example, specifically including node a, node b, node c, node d, node e, node f, node g, and node h.
[0126] It is understandable that the topology in the anomaly detection request can refer to all connections between nodes throughout the entire network, or it can refer to connections between any few nodes specified by the user; this will not be limited here. For example, in the entire network architecture, node a is connected to both node b and node c. If the user is more concerned with logs showing anomalies between nodes a and b, then the topology in the anomaly detection request can indicate the connection between nodes a and b. This way, when the first node subsequently aggregates at least one log corresponding to the first anomaly based on the topology, it does not need to aggregate the logs showing the first anomaly in node c. This not only reduces computational load but also allows for more precise control over log anomaly detection.
[0127] Similarly, the explosion radius in the anomaly detection request can be specified or pre-configured; we will not limit it here. For example, the explosion radius can be pre-configured to 1 hop, where 1 hop can be understood as a data packet moving from one node to another adjacent node, i.e., taking one step at the network layer. Figure 3 As shown, the nodes within one hop range of node d can include nodes b, e, f, g, and h. Therefore, when node d is the node where the log is abnormal, the affected nodes can include at least one of nodes b, e, f, g, and h.
[0128] In one possible implementation, if the anomaly detection request includes a detection time period and the aggregation type in the anomaly detection request is time, then the first log in the detection result may include at least one timestamp and the log corresponding to the first anomaly under at least one timestamp, wherein the at least one timestamp belongs to the detection time period.
[0129] In one possible implementation, if the aggregation type in the anomaly detection request is a topology relationship or an explosion radius, the first log in the detection result may include the log of at least one third node, wherein the at least one third node may be a node associated with the first anomaly, and the at least one third node includes the anomalous node and the affected node. The affected node is a node that has a topology relationship with the anomalous node, or the affected node is a node affected by the explosion radius of the anomalous node.
[0130] For a better understanding of the above process, please refer to [further details]. Figure 4 , Figure 4 This is a flowchart illustrating another anomaly detection method provided in an embodiment of this application. For example... Figure 4 As shown, the method may include an operations support system, a first node, and a second node, wherein the operations support system may be the aforementioned Figure 1The operation support system 110 shown can have a first node that is used for anomaly detection of logs (e.g., Figure 1 As shown in node 120), the second node here can be two, specifically node a and node b. For example, these two second nodes can be the ones mentioned above. Figure 1 The nodes in the node cluster 130 shown. The method may include at least steps S401-S405:
[0131] Step S401: The first node sends log reporting information to at least one second node.
[0132] Among them, the log reporting information is used to indicate the reporting of logs.
[0133] In one possible implementation, the log reporting information can be used to indicate the time interval for reporting logs (e.g., 1 minute).
[0134] In one possible implementation, the log reporting information can also be used to indicate the log format of the reported log. For example, the log format of the second log needs to include log producer information, which can be used to indicate one or more of the following: the producer, the module in the producer, or the resource pool.
[0135] In step S402, the first node receives a second log from at least one second node.
[0136] For example, any second node can periodically report the second log, such as reporting a log every minute. The time interval for the second node to report the log can be pre-configured or indicated by the log reporting information, and will not be limited here.
[0137] Step S403: The operation support system sends an anomaly detection request to the first node.
[0138] In addition to the anomaly type, the anomaly detection request may also include the aggregation type and / or compression ratio. For example, please refer to Table 3, which is a schematic table illustrating a possible format of an anomaly detection request provided in an embodiment of this application, as shown in Table 3:
[0139] Table 3
[0140]
[0141] In one possible implementation, the anomaly detection request may further include at least one detection object and anomaly detection parameters corresponding to each detection object, wherein the anomaly detection parameters may include an anomaly type. The detection object here may include a node, a module within a node, or a resource pool within a node.
[0142] For example, the operations support system can determine the detection object through a human-computer interaction interface. For instance, the interface provided by the operations support system may also include an object determination area related to the detection object. Here, the detection object can be determined by the operations support system in response to an input operation on the object determination area. The detection object can be directly input by the user into the object determination area, or it can be selected by the user from multiple candidate objects displayed in the object determination area. The method of determining the detection object will not be limited here.
[0143] Optionally, the anomaly detection parameters may include, in addition to the anomaly type, the aggregation type and / or compression ratio. For example, please refer to Table 4, which is a schematic table illustrating another possible format of anomaly detection requests provided in embodiments of this application, as shown in Table 4:
[0144] Table 4
[0145]
[0146] The anomaly detection request shown in Table 4 can include two detection objects and their corresponding anomaly detection parameters. It is understood that any one of the anomaly detection parameters for different detection objects can be the same or different; this is not limited here. For example, detection object 1 can be resource pool x in node a, and its corresponding anomaly detection parameters can include anomaly type (e.g., network anomaly), aggregation type (e.g., time), and compression ratio (e.g., 10%). Detection object 2 can be module y in node b, and its corresponding anomaly detection parameters can include anomaly type (e.g., semantic anomaly), aggregation type (e.g., topology relationship), and compression ratio (e.g., 10%). It can be understood that by specifying detection objects, the operation support system can reduce the computational load of anomaly detection. Furthermore, different anomaly detection parameters can be specified for different detection objects, allowing for more refined detection of the logs of the first anomaly occurring in each detection object, thereby further improving the efficiency and accuracy of anomaly detection.
[0147] In step S404, the first node analyzes the received second log based on the anomaly detection request to obtain the detection result.
[0148] Specifically, the first node can detect the received second log based on the exception type to obtain at least one log corresponding to the first exception. Then, the first node can perform different processing on the at least one log corresponding to the first exception depending on the parameters carried in the exception detection request.
[0149] For example, if the anomaly detection request includes an aggregation type, the first node can aggregate at least one log corresponding to the first anomaly according to the aggregation type to obtain the detection result. If the anomaly detection request includes a compression ratio, the first node can compress at least one log corresponding to the first anomaly according to the compression ratio to obtain the detection result. If the anomaly detection request includes both an aggregation type and a compression ratio, the first node can aggregate and compress at least one log corresponding to the first anomaly according to both the aggregation type and the compression ratio to obtain the detection result.
[0150] The following will elaborate on the different aggregation types included in the anomaly detection request:
[0151] Implementation method 1:
[0152] This is used to describe the case where an anomaly detection request includes a detection time period and an aggregation type, and the aggregation type is time.
[0153] It is understandable that after receiving the aforementioned anomaly detection request, the first node can identify the logs containing the first anomaly within the detection period as logs to be processed. Then, based on the corresponding time intervals (e.g., 10 minutes, 15 minutes, or 30 minutes), the detection period can be divided into N time intervals. These time intervals can be directly specified by the user or pre-configured; this will not be limited here. Next, the first node can categorize the logs of the anomaly type based on a timestamp within each time interval (e.g., the earliest timestamp of a business-related anomaly), resulting in N display categories and the corresponding logs for each of the N display categories.
[0154] For example, if the detection period is "2025-05-15 14:00-15:00" and the anomaly type is a business-related anomaly, then after receiving the above anomaly detection request, the first node will determine the following 8 pending log entries:
[0155] Log 1: [14:05][ERROR] Hard disk failure - Input / output anomaly;
[0156] Log 2: [14:15][ERROR] Hard drive failure - read failed;
[0157] Log 3: [14:20][ERROR] Hard drive failure - Device malfunction;
[0158] Log 4: [14:23][ERROR] Network error - severe packet loss;
[0159] Log 5: [14:26][ERROR] Network error - connection timeout;
[0160] Log 6: [14:39][ERROR] CPU overload - task processing delay;
[0161] Log 7: [14:46][ERROR] CPU overload - high load warning;
[0162] Log 8: [14:58][ERROR] CPU overload - high load warning.
[0163] Then, the first node can divide the detection period into two time periods based on the corresponding time intervals (e.g., 30 minutes). Specifically, this can include time period 1 (e.g., 14:00-14:30) and time period 2 (e.g., 14:30-15:00). Next, the first node can categorize the logs showing the anomalies. For example, logs showing anomalies at timestamps 14:05, 14:15, 14:20, 14:23, and 14:26 can be categorized under the earliest business-related anomaly timestamp (14:05). Logs showing anomalies at timestamps 14:39, 14:46, and 14:58 can be categorized under the earliest business-related anomaly timestamp (14:39). At this point, the first node can determine the detection result based on these two display categories and the corresponding logs for each category.
[0164] For example, please refer to Table 5, which is a schematic table of another possible detection results provided in the embodiments of this application, as shown in Table 5:
[0165] Table 5
[0166]
[0167] Optionally, to avoid transmitting too many logs to the operations support system from the first node, the anomaly detection request sent by the operations support system to the first node may also include a compression ratio. Based on this, after obtaining N display categories and the logs corresponding to each of the N display categories, the first node can compress the logs (i.e., the logs to be compressed) corresponding to each display category based on the compression ratio, thereby obtaining the detection results. For example, if the compression ratio is 10%, and the number of logs to be compressed for a certain display category (e.g., the display category corresponding to timestamp 1) is 150, then the first node can determine that the number of display categories corresponding to timestamp 1 in the detection results is 15.
[0168] Among them, the 15 logs corresponding to the display category of timestamp 1 in the detection results can be selected from the logs to be compressed in the display category corresponding to timestamp 1 according to the order of log generation time and at equal intervals, or they can be selected from the logs to be compressed in the display category corresponding to timestamp 1 according to the next lower level of the exception type.
[0169] For example, the next level of the business category exception to which the 150 logs to be compressed belong can include hardware exceptions (60 of which can be), network exceptions (60 of which can be), and system exceptions (30 of which can be). Then, these 15 logs can include 6 logs of hardware exceptions, 6 logs of network exceptions, and 3 logs of system exceptions.
[0170] Implementation Method Two:
[0171] This is used to illustrate the case where the anomaly detection request includes an aggregation type, and the aggregation type is a topological relationship.
[0172] It is understandable that the third node in the detection results (i.e., the node associated with the first anomaly) can include both anomaly nodes and affected nodes. The determination of the anomaly node is related to whether the anomaly detection request specifies a detection object. If the anomaly detection request does not specify a detection object, it can be understood that the log that first caused the anomaly is more likely to be the key to triggering the anomaly. Therefore, after receiving the above anomaly detection request, the first node can sort the logs that caused the first anomaly according to their log generation time and determine the node corresponding to the log with the earliest generation time as the anomaly node. If the anomaly detection request includes a detection object, then the node corresponding to the detection object can be directly determined as the anomaly node.
[0173] Then, the first node can identify nodes with a topological relationship to the node corresponding to the log that caused the first anomaly, and designate these nodes as affected nodes. Further, the first node can categorize the logs of the anomaly type according to the anomaly node and the affected nodes to obtain the detection results.
[0174] For example, if the first node determines that the first anomaly has occurred after receiving the anomaly detection request, the log entry may include the following 5 entries:
[0175] Log 1: [14:05][ERROR] Node a - Hard disk failure - Input / output anomaly;
[0176] Log 2: [14:15][ERROR] Node b-server is overloaded;
[0177] Log 3: [14:20][ERROR] Node c - Network latency anomaly;
[0178] Log 4: [14:23][ERROR] Node d - Database access failed;
[0179] Log 5: [14:26][ERROR] Node e-request timed out.
[0180] Among them, nodes a, b, c, d, and e all belong to Figure 3 The network architecture shown.
[0181] If no detection object is specified in the anomaly detection request, the abnormal node included in the detection result is the node corresponding to the log with the earliest log generation time (i.e., node a). For example, please refer to Table 6, which is an illustration of another possible detection result provided by an embodiment of this application, as shown in Table 6:
[0182] Table 6
[0183]
[0184] If the anomaly detection request includes a detection object (e.g., resource pool x in node c), then the abnormal node included in the detection result is the node corresponding to the detection object (i.e., node c). For example, please refer to Table 7, which is an illustration of another possible detection result provided in the embodiments of this application, as shown in Table 7:
[0185] Table 7
[0186]
[0187] Optionally, to avoid transmitting too many logs to the operation support system from the first node, the anomaly detection request sent by the operation support system to the first node may also include a compression ratio. Based on this, after classifying the logs of the anomaly type, the first node may also compress the classified logs (i.e. logs to be compressed) based on the compression ratio to obtain the detection results.
[0188] Implementation method three:
[0189] This is used to illustrate the case where the anomaly detection request includes an aggregation type, and the aggregation type is the explosion radius.
[0190] It's understandable that the identification of anomalous nodes in the detection results is related to whether the anomaly detection request specifies a detection object. If the anomaly detection request does not specify a detection object, it can be understood that the log that first caused the anomaly is more likely to be the key to triggering the anomaly. Therefore, after receiving the above anomaly detection request, the first node can sort the logs that caused the first anomaly according to their log generation time and identify the node corresponding to the log with the earliest generation time as the anomalous node. If the anomaly detection request includes a detection object, then the node corresponding to the detection object can be directly identified as the anomalous node.
[0191] Then, the first node can determine the nodes affected by the blast radius of the abnormal node from the nodes corresponding to the logs of the first anomaly, and identify these as the affected nodes. For example, if the blast radius in the anomaly detection request is one hop, the abnormal nodes identified by the first node are as described above. Figure 3 The node d shown can be used as a reference. The nodes that can identify the logs that caused the first anomaly include nodes a, b, c, d, and e. In this case, the affected node can be identified as node e. Furthermore, the first node can classify the logs of the anomaly type according to the abnormal nodes and the affected nodes to obtain the detection results. The detection results can be found in Table 6 or Table 7 above.
[0192] Optionally, to avoid transmitting too many logs to the operation support system from the first node, the anomaly detection request sent by the operation support system to the first node may also include a compression ratio. Based on this, after classifying the logs of the anomaly type, the first node may also compress the classified logs (i.e. logs to be compressed) based on the compression ratio to obtain the detection results.
[0193] Step S405: The first node returns the detection result to the operation support system. The detection result is used to indicate that a first anomaly has occurred and that the first anomaly belongs to an anomaly type. Alternatively, the detection result is used to indicate that an anomaly of an anomaly type has not occurred.
[0194] For specific implementation methods of steps S404-S405, please refer to the above. Figure 2 The descriptions of steps S201-S202 in the corresponding embodiments will not be repeated here.
[0195] In this embodiment, the anomaly detection request sent by the operations support system to the first node can include not only the anomaly type, but also the detection object, compression ratio, and / or aggregation type. This means that the operations support system can not only control the anomaly identification criteria, but also specify the display category of the anomaly detection, or specify the number of logs for anomaly detection, or more precisely specify the specific detection object. This allows the first node to output targeted detection results that meet the needs of the operations support system when analyzing the received logs based on the anomaly detection request. The entire process does not require manual analysis, which can effectively improve the accuracy and efficiency of anomaly logs.
[0196] The foregoing details the method provided in this application. To facilitate the implementation of the above-described solutions in the embodiments of this application, corresponding apparatus or devices are also provided in the embodiments of this application.
[0197] This application divides the communication device into functional modules according to the above-described method embodiments. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this application is illustrative and represents only one logical functional division; other division methods may be used in actual implementation. The following will combine... Figures 5 to 6 The communication device of the present application embodiment is described in detail.
[0198] See Figure 5 , Figure 5 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application. Figure 5 As shown, the communication device includes at least one of a transceiver module 51 and a processing module 52. The transceiver module 51 may also be referred to as an interface, a communication interface, or a communication module, etc.
[0199] In some embodiments of this application, the communication device may be the first node shown above, i.e. Figure 5 The communication device shown can be used to perform the steps or functions executed by the first node in the above method embodiments. For example, the communication device can be the first node or a chip or functional module configured in the first node, etc., and this application embodiment does not limit this. The transceiver module 51 is used to perform the transceiver-related operations of the first node in the above method embodiments, and the processing module 52 is used to perform the processing-related operations of the first node in the above method embodiments.
[0200] For example, the transceiver module 51 is configured to receive an anomaly detection request from the operation support system, the anomaly detection request including an anomaly type; the transceiver module 51 is also configured to return a detection result to the operation support system based on the anomaly detection request, the detection result being used to indicate that a first anomaly has occurred, the first anomaly belonging to an anomaly type, or the detection result being used to indicate that an anomaly of an anomaly type has not occurred.
[0201] For example, the detection results also include the first log corresponding to the first anomaly.
[0202] For example, the first log includes log producer information.
[0203] For example, the transceiver module 51 is further configured to send log reporting information to at least one second node respectively, the log reporting information being used to indicate the reporting of logs; the transceiver module 51 is further configured to receive second logs from at least one second node; the processing module 52 is configured to analyze the received second logs based on the anomaly detection request to obtain detection results.
[0204] For example, the anomaly detection request may also include an aggregation type and / or a compression ratio; the processing module 52 is specifically configured to detect the received second log based on the anomaly type to obtain at least one log corresponding to the first anomaly; the processing module 52 is also specifically configured to aggregate the at least one log corresponding to the first anomaly according to the aggregation type to obtain a detection result, or the processing module 52 is also specifically configured to compress the at least one log corresponding to the first anomaly according to the compression ratio to obtain a detection result, or the processing module 52 is also specifically configured to aggregate and compress the at least one log corresponding to the first anomaly according to the aggregation type and the compression ratio to obtain a detection result.
[0205] For example, at least one second node includes one or more of the following: a compute node, a network node, or a storage node.
[0206] For example, the second log includes log producer information.
[0207] For example, the producer information above is used to indicate one or more of the following: a producer, a module in a producer, or a resource pool.
[0208] For example, the anomaly detection request also includes an aggregation type and a detection time period, where the aggregation type is time; the first log includes at least one timestamp and the log corresponding to the first anomaly under at least one timestamp, where at least one timestamp belongs to the detection time period.
[0209] For example, the anomaly detection request also includes an aggregation type, which is either a topological relationship or an explosion radius; the first log includes logs of at least one third node, which is a node associated with the first anomaly, and the at least one third node includes the anomalous node and the affected node, which is either a node with a topological relationship to the anomalous node or a node affected by the explosion radius of the anomalous node.
[0210] For example, the anomaly detection request also includes at least one detection object and anomaly detection parameters corresponding to each detection object, the anomaly detection parameters including the anomaly type.
[0211] For example, anomaly detection parameters may also include aggregation type and / or compression ratio.
[0212] For example, the detection objects include nodes, modules within nodes, or resource pools within nodes.
[0213] For example, exception types include business exceptions, which include at least one of file operation exceptions, database exceptions, network exceptions, hardware exceptions, or system exceptions.
[0214] For example, the exception type includes log feature exceptions, which include at least one of the following: log template quantity exception, execution order exception, variable value exception in log content, or log semantic exception.
[0215] For example, the exception type includes one or more of the following: file operation exception, database exception, network exception, hardware exception, system exception, log template quantity exception, execution order exception, variable value exception in log content, or log semantic exception.
[0216] It is understood that the specific descriptions of the transceiver module and the processing module shown in the embodiments of this application are merely examples. For the specific functions or execution steps of the transceiver module and the processing module, please refer to the above method embodiments, which will not be described in detail here.
[0217] Reuse Figure 5 In other embodiments of this application, the communication device may be the operations support system shown above. Figure 5 The communication device shown can be used to perform the steps or functions executed by the operation support system in the above method embodiments. For example, the communication device may be the operation support system or a chip or functional module configured within the operation support system, etc., and this application embodiment does not limit this. The transceiver module 51 is used to perform transceiver-related operations of the operation support system in the above method embodiments, and the processing module 52 is used to perform processing-related operations of the operation support system in the above method embodiments.
[0218] For example, the transceiver module 51 is used to send an anomaly detection request to the first node, the anomaly detection request including an anomaly type; the transceiver module 51 is also used to receive a detection result returned by the first node, the detection result being used to indicate that a first anomaly has occurred, the first anomaly belonging to an anomaly type, or the detection result being used to indicate that an anomaly of an anomaly type has not occurred.
[0219] For example, processing module 52 is used to generate an anomaly detection request.
[0220] For example, the detection results also include the first log corresponding to the first anomaly.
[0221] For example, the first log includes log producer information.
[0222] For example, producer information is used to indicate one or more of the following: a producer, a module in a producer, or a resource pool.
[0223] For example, the anomaly detection request also includes an aggregation type and a detection time period, where the aggregation type is time; the first log includes at least one timestamp and the log corresponding to the first anomaly under at least one timestamp, where at least one timestamp belongs to the detection time period.
[0224] For example, the anomaly detection request also includes an aggregation type, which is either a topological relationship or an explosion radius; the first log includes logs of at least one third node, which is a node associated with the first anomaly, and the at least one third node includes the anomalous node and the affected node, which is either a node with a topological relationship to the anomalous node or a node affected by the explosion radius of the anomalous node.
[0225] For example, the anomaly detection request also includes at least one detection object and anomaly detection parameters corresponding to each detection object, the anomaly detection parameters including the anomaly type.
[0226] For example, anomaly detection parameters may also include aggregation type and / or compression ratio.
[0227] For example, the detection objects include nodes, modules within nodes, or resource pools within nodes.
[0228] For example, exception types include business exceptions, which include at least one of file operation exceptions, database exceptions, network exceptions, hardware exceptions, or system exceptions.
[0229] For example, the exception type includes log feature exceptions, which include at least one of the following: log template quantity exception, execution order exception, variable value exception in log content, or log semantic exception.
[0230] For example, the exception type includes one or more of the following: file operation exception, database exception, network exception, hardware exception, system exception, log template quantity exception, execution order exception, variable value exception in log content, or log semantic exception.
[0231] It is understood that the specific descriptions of the transceiver module and the processing module shown in the embodiments of this application are merely examples. For the specific functions or execution steps of the transceiver module and the processing module, please refer to the above method embodiments, which will not be described in detail here.
[0232] The communication device according to embodiments of this application has been described above. The following describes possible product forms of the communication device. It should be understood that any device possessing the above-described features... Figure 5 Any form of product that utilizes the functionality of a communication device falls within the protection scope of the embodiments of this application. It should also be understood that the following description is merely illustrative and does not limit the product form of the communication device in the embodiments of this application to this specific example.
[0233] See Figure 6 , Figure 6 This is a schematic diagram of another communication device provided in the embodiments of this application. The communication device 2 can be the first node or operation support system mentioned above, or it can be a chip or system-on-a-chip, and is not limited thereto.
[0234] Specifically, the communication device 2 includes a processor 61 and a memory 62.
[0235] The memory 62 is used to store instructions; the processor 61 is used to execute the instructions in the memory 62 to implement the operations performed by the first node or the operation support system in the above embodiments.
[0236] The memory 62 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM).
[0237] Figure 6 Only one memory is shown, but there can be multiple memory locations, without limitation.
[0238] Processor 61 can be a controller, central processor (CPU), general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Processor 61 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessor, etc.
[0239] This application also provides a communication system, which includes at least a first node or an operation support system, both of which can be used to implement the aforementioned method.
[0240] This application also provides a chip system including a processor for supporting the devices on which the chip system is installed to implement the method steps performed by the first node or operation support system in the above embodiments, such as generating or processing data and / or information involved in the above methods. In one possible design, the chip system also includes a memory for storing program instructions and data necessary for the data transmission device. The chip system may be composed of chips or may include chips and other discrete devices.
[0241] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the method steps performed by the first node or the operation support system in the above embodiments.
[0242] This application also provides a computer program product that, when executed by a computer, implements the method steps performed by the first node or the operation support system in the above embodiments.
[0243] In the above method embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. A computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. Available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0244] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. The order of the process numbers described above does not imply the order of execution; the execution order of each process should be determined by its function and internal logic.
[0245] The above are merely preferred embodiments of the technical solutions of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. An anomaly detection method, characterized in that, Applied to the first node, the method includes: Receive an anomaly detection request from the operations support system, the anomaly detection request including the anomaly type; Based on the anomaly detection request, a detection result is returned to the operation support system. The detection result is used to indicate that a first anomaly has occurred, and the first anomaly belongs to the anomaly type. Alternatively, the detection result is used to indicate that an anomaly of the anomaly type has not occurred.
2. The method according to claim 1, characterized in that, The detection results also include the first log corresponding to the first anomaly.
3. The method according to claim 2, characterized in that, The first log includes log producer information.
4. The method according to claim 2 or 3, characterized in that, The method further includes: Send log reporting information to at least one second node, wherein the log reporting information is used to instruct logs to be reported; Receive a second log from the at least one second node; Based on the anomaly detection request, the received second log is analyzed to obtain the detection result.
5. The method according to claim 4, characterized in that, The anomaly detection request also includes aggregation type and / or compression ratio; The step of analyzing the received second log based on the anomaly detection request to obtain the detection result includes: Based on the anomaly type, the received second log is inspected to obtain at least one log corresponding to the first anomaly; According to the aggregation type, at least one log corresponding to the first anomaly is aggregated to obtain the detection result; or, according to the compression ratio, at least one log corresponding to the first anomaly is compressed to obtain the detection result; or, according to the aggregation type and the compression ratio, at least one log corresponding to the first anomaly is aggregated and compressed to obtain the detection result.
6. The method according to claim 4 or 5, characterized in that, The at least one second node includes one or more of the following: a computing node, a network node, or a storage node.
7. The method according to claim 6, characterized in that, The second log includes information about the log producer.
8. The method according to any one of claims 2-7, characterized in that, The producer information is used to indicate one or more of the following: a producer, a module in a producer, or a resource pool.
9. The method according to any one of claims 2-8, characterized in that, The anomaly detection request also includes an aggregation type and a detection time period, wherein the aggregation type is time. The first log includes at least one timestamp and the log corresponding to the first anomaly under the at least one timestamp, wherein the at least one timestamp belongs to the detection time period.
10. The method according to any one of claims 2-8, characterized in that, The anomaly detection request also includes an aggregation type, which is either a topological relationship or an explosion radius. The first log includes logs of at least one third node, which is a node associated with the first anomaly. The at least one third node includes an anomalous node and an affected node. The affected node is a node with a topological relationship to the anomalous node, or the affected node is a node affected by the explosion radius of the anomalous node.
11. An anomaly detection method, characterized in that, Applied to an operations support system, the method includes: Send an anomaly detection request to the first node, the anomaly detection request including the anomaly type; The system receives a detection result returned by the first node, which indicates that a first anomaly has occurred and that the first anomaly belongs to the anomaly type; or, the detection result indicates that an anomaly of the anomaly type has not occurred.
12. The method according to claim 11, characterized in that, The detection results also include the first log corresponding to the first anomaly.
13. The method according to claim 12, characterized in that, The first log includes log producer information.
14. The method according to claim 13, characterized in that, The producer information is used to indicate one or more of the following: a producer, a module in a producer, or a resource pool.
15. The method according to any one of claims 12-14, characterized in that, The anomaly detection request also includes an aggregation type and a detection time period, wherein the aggregation type is time. The first log includes at least one timestamp and the log corresponding to the first anomaly under the at least one timestamp, wherein the at least one timestamp belongs to the detection time period.
16. The method according to any one of claims 12-14, characterized in that, The anomaly detection request also includes an aggregation type, which is either a topological relationship or an explosion radius. The first log includes logs of at least one third node, which is a node associated with the first anomaly. The at least one third node includes an anomalous node and an affected node. The affected node is a node with a topological relationship to the anomalous node, or the affected node is a node affected by the explosion radius of the anomalous node.
17. The method according to any one of claims 1-16, characterized in that, The anomaly detection request also includes at least one detection object and anomaly detection parameters corresponding to each detection object, wherein the anomaly detection parameters include anomaly type.
18. The method according to claim 17, characterized in that, The anomaly detection parameters also include aggregation type and / or compression ratio.
19. The method according to claim 17 or 18, characterized in that, The detection objects include nodes, modules within nodes, or resource pools within nodes.
20. The method according to any one of claims 1-19, characterized in that, The exception types include business-related exceptions, which include at least one of the following: file operation exceptions, database exceptions, network exceptions, hardware exceptions, or system exceptions.
21. The method according to any one of claims 1-19, characterized in that, The exception types include log feature exceptions, which include at least one of the following: log template quantity exception, execution order exception, variable value exception in log content exception, or log semantic exception.
22. The method according to any one of claims 1-19, characterized in that, The exception types include one or more of the following: file operation exception, database exception, network exception, hardware exception, system exception, log template quantity exception, execution order exception, variable value exception in log content, or log semantic exception.
23. A communication device, characterized in that, Includes modules for implementing the methods as described in any one of claims 1 to 10 and 17 to 22.
24. A communication device, characterized in that, Includes modules for implementing the method as described in any one of claims 11 to 22.
25. A communication device, characterized in that, It includes a processor and a memory, the memory being used to store instructions, and the processor being used to execute the instructions stored in the memory to cause the communication device to implement the method as described in any one of claims 1 to 22.
26. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program that, when executed by a processor, causes a communication device including the processor to implement the method as described in any one of claims 1 to 22.
27. A computer program product, characterized in that, The computer program product includes instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 22.
28. A communication system, characterized in that, The communication system includes means for performing the method as described in any one of claims 1 to 10 and 17 to 22, and means for performing the method as described in any one of claims 11 to 22.
