Aerospace engineering business operation log management and monitoring alarm method and system
Through the aerospace engineering business operation log management and monitoring and alarm methods, the monitoring problems caused by the scattered logs in the aerospace engineering field are solved, the effective monitoring of the aerospace engineering business system and the rapid identification of abnormal problems are achieved, and the cost and difficulty of operation and maintenance are reduced.
Patent Information
- Application Number
- CN202410492184.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-04-23
AI Technical Summary
In the field of aerospace and aviation, the microservice architecture causes logs to be scattered on different machines, making it difficult to query and analyze. As a result, users cannot quickly monitor the operating status of the aerospace engineering business system, which increases the cost and difficulty of operation and maintenance.
Provides an aerospace engineering business operation log management and monitoring alarm method. By obtaining log information from multiple business systems, processing log monitoring indicators, receiving alarm thresholds input by users, obtaining monitoring information on service call relationships, and generating alarm analysis reports, it is possible to achieve Effective monitoring of business systems and rapid identification of abnormal problems.
A unified aerospace engineering business operation monitoring and alarm system has been constructed, using methods based on statistical analysis and alarm configuration update algorithms to improve the accuracy and reliability of monitoring, reduce operation and maintenance costs and difficulties, and improve operation and maintenance efficiency.
Smart Images

Figure CN118331823B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of aerospace engineering business operation log management and monitoring alarm, and in particular to an aerospace engineering business operation log management and monitoring alarm method and system. Background Art
[0002] In the aerospace field, the business logic of aerospace engineering is usually executed by multiple business systems to support complex business operations. Logs are usually generated during the operation of the business system. Logs are important information and data that reflect the operating status of the business system. Logs are used to monitor and record key information in the business production process. Logs play a key role in troubleshooting abnormal problems in the business system.
[0003] However, with the widespread application of microservice architecture, logs are scattered on different machines, making log query and analysis extremely difficult. As a result, users are unable to monitor the operating status of the overall business system based on the logs generated by multiple independently running business systems, and quickly identify abnormal problems, making it difficult to effectively monitor the business system of aerospace engineering, resulting in high operation and maintenance costs and difficulties in the business system of aerospace engineering. Summary of the invention
[0004] The embodiment of the present invention provides a method and system for aerospace engineering business operation log management and monitoring alarm, which can realize the effective management of the log information generated by the business system of aerospace engineering, and then monitor the operation status of the business system according to the log information, and quickly determine the abnormal problems and abnormal causes, so as to realize the effective monitoring of the business system of aerospace engineering, thereby reducing the operation and maintenance costs and difficulty.
[0005] To achieve the above object, the embodiments of the present invention adopt the following technical solutions:
[0006] In a first aspect, a method for log management and monitoring alarm of aerospace engineering business operation is provided, the method comprising: obtaining log information corresponding to each business system in a plurality of business systems, processing the log information, obtaining a plurality of log monitoring indicators corresponding to each business system, the log monitoring indicators being used to characterize the operating status of the business system; receiving an alarm threshold corresponding to each log monitoring indicator input by a user; obtaining monitoring information corresponding to each business system in a plurality of business systems, the monitoring information comprising a plurality of service operating indicators corresponding to each associated business system in a plurality of associated business systems having a service call relationship with each business system, the service operating indicators being used to characterize the operating status of the associated business systems; in the case where there are abnormal log monitoring indicators in the log monitoring indicators, determining an alarm analysis report according to the monitoring information of the target business system corresponding to the log monitoring indicators, wherein the value corresponding to the abnormal log monitoring indicator is within a first alarm threshold interval, the first alarm threshold interval of each log monitoring indicator is determined according to the alarm threshold corresponding to each log monitoring indicator, and the alarm analysis report comprises alarm information for prompting the abnormality of the target business system and the cause of the abnormality of the target business system.
[0007] In an implementable manner of the first aspect, the cause of the abnormality includes an abnormality of a business system or an associated business system of a target business system; an alarm analysis report is determined based on monitoring information of the target business system corresponding to the log monitoring indicator, including: when there are abnormal service operation indicators among multiple service operation indicators of the target business system, an alarm analysis report is determined, and the cause of the abnormality of the target business system included in the alarm analysis report is the abnormality of an associated business system of the target business system; when there are no abnormal service operation indicators among multiple service operation indicators of the target business system, an alarm analysis report is determined, and the cause of the abnormality of the target business system included in the alarm analysis report is the abnormality of the target business system.
[0008] In an implementation method of the first aspect, each business system is respectively configured with a corresponding message middleware, and the message middleware is used to store log information; obtaining the log information corresponding to each business system in multiple business systems includes: obtaining the log information in a preset format corresponding to each business system from the message middleware corresponding to each business system in the multiple business systems.
[0009] In an implementable manner of the first aspect, the above method also includes: displaying in a visual interface a plurality of log monitoring indicators corresponding to each business system in a plurality of business systems and a plurality of service operation indicators corresponding to each associated business system in a plurality of associated business systems that have a service call relationship with each business system; and storing in a database a plurality of log monitoring indicators corresponding to each business system in a plurality of business systems and a plurality of service operation indicators corresponding to each associated business system in a plurality of associated business systems that have a service call relationship with each business system.
[0010] In an implementable manner of the first aspect, the above method also includes: obtaining historical log monitoring indicator data, the historical log monitoring indicator data including multiple values corresponding to each log monitoring indicator among multiple log monitoring indicators within a preset time period; determining the historical average value of the target log monitoring indicator based on the multiple values corresponding to the target log monitoring indicator, the target log monitoring indicator being any one of the multiple log monitoring indicators; determining the sum of a pre-set first offset and the historical average value of the target log monitoring indicator as a first alarm threshold update value for the target log monitoring indicator; and updating the alarm threshold corresponding to the target log monitoring indicator based on the first alarm threshold update value of the target log monitoring indicator.
[0011] In an implementable manner of the first aspect, updating the alarm threshold corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator includes: obtaining the alarm threshold corresponding to the target log monitoring indicator; determining a first alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data based on the alarm threshold corresponding to the target log monitoring indicator, the first alarm number being the number of values that are located in the first alarm threshold interval among multiple values corresponding to the target log monitoring indicator; in a case where the alarm threshold is the first alarm threshold update value, determining a second alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the second alarm number being the number of values that are located in the second alarm threshold interval corresponding to the target log monitoring indicator among multiple values corresponding to the target log monitoring indicator, the second alarm threshold interval being determined according to the first alarm threshold update value; in a case where the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is less than a preset value, The first alarm threshold update value of the target log monitoring indicator is used to update the alarm threshold corresponding to the target log monitoring indicator; when the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is greater than or equal to the preset value, determine the second offset, wherein the second offset is less than the first offset; the sum of the second offset and the historical average value of the target log monitoring indicator is determined as the second alarm threshold update value of the target log monitoring indicator; when the alarm threshold is the second alarm threshold update value, determine the third alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the third alarm number is the number of values in the multiple values corresponding to the target log monitoring indicator that are located in the third alarm threshold interval corresponding to the target log monitoring indicator, and the third alarm threshold interval is determined according to the second alarm threshold update value; when the difference between the first alarm number and the third alarm number is less than the preset value, update the alarm threshold corresponding to each performance indicator according to the second alarm threshold update value of the target log monitoring indicator.
[0012] In an implementable manner of the first aspect, each log monitoring indicator is respectively configured with a different importance level, the importance levels include general indicators and core indicators, each log monitoring indicator is also respectively configured with a different alarm level, each alarm level corresponds to a different alarm threshold interval, the alarm levels include a first level, a second level and a third level, and the importance level and alarm level of each log monitoring indicator correspond to different alarm modes; the above method also includes: determining the alarm level corresponding to the abnormal log monitoring indicator according to the value corresponding to the abnormal log monitoring indicator; determining the alarm mode corresponding to the abnormal log monitoring indicator according to the alarm level and importance level of the abnormal log monitoring indicator; and issuing an alarm based on the alarm mode corresponding to the abnormal log monitoring indicator.
[0013] The method provided by the present invention can build a unified monitoring and alarm system for aerospace engineering business operation with comprehensive functions and reliability, aiming at the problems that the aerospace system business is complex, the business systems are numerous, and the online business is required to have extremely high stability, and the cost is difficult to control for each business to be operated and maintained separately. In addition, the present invention adopts a method based on statistical analysis to realize automatic and efficient monitoring of the business system. And the accuracy and reliability of alarm monitoring are improved by adopting technical means such as alarm configuration update algorithm and multi-level alarm level, which can meet the complex monitoring and alarm requirements of the operation and maintenance of the aerospace engineering business system, thereby realizing effective management of the log information generated by the business system of the aerospace engineering, and then quickly determining the abnormal problems and abnormal causes of the business system according to the log monitoring indicators included in the log information and the service operation indicators included in the monitoring information, realizing effective monitoring of the business system of the aerospace engineering, thereby reducing the operation and maintenance costs and difficulty, and improving the operation and maintenance efficiency.
[0014] In a second aspect, a log management and monitoring alarm system for aerospace engineering business operation is provided, the system comprising: a log acquisition module, for acquiring log information corresponding to each business system in a plurality of business systems, processing the log information, and obtaining a plurality of log monitoring indicators corresponding to each business system, the log monitoring indicators being used to characterize the operating status of the business system; an alarm configuration module, for receiving an alarm threshold corresponding to each log monitoring indicator input by a user; a link monitoring module, for acquiring monitoring information corresponding to each business system in a plurality of business systems, the monitoring information comprising a plurality of service operating indicators corresponding to each associated business system in a plurality of associated business systems having a service call relationship with each business system, the service operating indicators being used to characterize the operating status of the associated business systems; an alarm sending module, for sending an alarm according to the corresponding log monitoring indicators when there are abnormal log monitoring indicators in the log monitoring indicators. The monitoring information of the target business system determines an alarm analysis report, wherein the value corresponding to the abnormal log monitoring indicator is within the first alarm threshold interval, the first alarm threshold interval of each log monitoring indicator is determined according to the alarm threshold corresponding to each log monitoring indicator, and the alarm analysis report includes alarm information for prompting the abnormality of the target business system and the abnormal cause of the target business system; an alarm display module is used to display in a visual interface a plurality of log monitoring indicators corresponding to each business system in a plurality of business systems and a plurality of service operation indicators corresponding to each associated business system in a plurality of associated business systems that have a service call relationship with each business system; a data storage module is used to store a plurality of log monitoring indicators corresponding to each business system in a plurality of business systems and a plurality of service operation indicators corresponding to each associated business system in a plurality of associated business systems that have a service call relationship with each business system in a database.
[0015] In a third aspect, an electronic device is provided, the electronic device comprising a memory and one or more processors. The memory is coupled to the processor. The memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the aerospace engineering business operation log management and monitoring alarm method in any implementation of the first aspect.
[0016] In a fourth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the aerospace engineering business operation log management and monitoring alarm method as in any implementation of the first aspect.
[0017] In a fifth aspect, a computer program product is provided. When the computer program product runs on a computer, it enables the computer to execute an aerospace engineering business operation log management and monitoring alarm method as described in any implementation method of the first aspect.
[0018] It can be understood that the beneficial effects that can be achieved by the aerospace engineering business operation log management and monitoring alarm system of the second aspect, the electronic device of the third aspect, the computer-readable storage medium of the fourth aspect, and the computer program product of the fifth aspect provided above can be referred to the beneficial effects of the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of the hardware structure of a monitoring and alarm system according to an embodiment of the present invention;
[0020] Figure 2 A schematic diagram of the hardware structure of another monitoring and alarm system according to an embodiment of the present invention;
[0021] Figure 3 A flowchart of a method for managing and monitoring alarms of aerospace engineering business operation logs according to an embodiment of the present invention;
[0022] Figure 4 A flowchart of another aerospace engineering business operation log management and monitoring alarm method according to an embodiment of the present invention;
[0023] Figure 5 The present invention is a flowchart of another aerospace engineering business operation log management and monitoring alarm method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The technical solution in the embodiment of the present invention will be described below in conjunction with the accompanying drawings in the embodiment of the present invention. Among them, in the description of the present invention, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present invention is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present invention, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0025] In addition, in order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not necessarily limit the difference.
[0026] Meanwhile, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way for easy understanding.
[0027] In the aerospace field, the business logic of aerospace engineering is usually executed by multiple business systems to support complex business operations. Logs are usually generated during the operation of the business system. Logs are important information and data that reflect the operating status of the business system. Logs are used to monitor and record key information in the business production process. Logs play a key role in troubleshooting abnormal problems in the business system.
[0028] However, with the widespread application of microservice architecture, logs are scattered on different machines, making log query and analysis extremely difficult. As a result, users are unable to monitor the overall business system operation status and quickly identify abnormal problems based on the logs generated by multiple independently running business systems, making it difficult to effectively monitor the business system of aerospace engineering, resulting in high operation and maintenance costs and difficulties in the business system of aerospace engineering.
[0029] In view of this, an embodiment of the present invention provides a method for log management and monitoring alarm of aerospace engineering business operation, the method comprising: obtaining log information corresponding to each business system in multiple business systems, processing the log information, and obtaining multiple log monitoring indicators corresponding to each business system, the log monitoring indicators being used to characterize the operating status of the business system; receiving an alarm threshold corresponding to each log monitoring indicator input by a user; obtaining monitoring information corresponding to each business system in multiple business systems, the monitoring information comprising multiple service operation indicators corresponding to each associated business system in multiple associated business systems having a service call relationship with each business system, the service operation indicators being used to characterize the operating status of the associated business systems; in the case where there are abnormal log monitoring indicators in the log monitoring indicators, determining an alarm analysis report according to the monitoring information of the target business system corresponding to the log monitoring indicators, wherein the value corresponding to the abnormal log monitoring indicator is within a first alarm threshold interval, the first alarm threshold interval of each log monitoring indicator is determined according to the alarm threshold corresponding to each log monitoring indicator, and the alarm analysis report comprises alarm information for prompting the abnormality of the target business system and the abnormal cause of the target business system.
[0030] The method provided by the embodiment of the present invention can build a unified, fully functional and reliable monitoring and alarm system for the operation of aerospace engineering business, aiming at the problem that the aerospace system business is complex, the business systems are numerous, and the online business is required to have extremely high stability, and the cost is difficult to control for each business to be operated and maintained separately. In addition, the present invention adopts a method based on statistical analysis to realize automatic and efficient monitoring of the business system. And the accuracy and reliability of alarm monitoring are improved by using technical means such as alarm configuration update algorithm and multi-level alarm level, which can meet the complex monitoring and alarm requirements of the operation and maintenance of the aerospace engineering business system, thereby realizing effective management of the log information generated by the business system of the aerospace engineering, and then quickly determining the abnormal problems and abnormal causes of the business system according to the log monitoring indicators included in the log information and the service operation indicators included in the monitoring information, realizing effective monitoring of the business system of the aerospace engineering, thereby reducing the operation and maintenance costs and difficulty, and improving the operation and maintenance efficiency.
[0031] In some embodiments, the aerospace engineering business operation log management and monitoring alarm method provided by the embodiments of the present invention can be executed by the aerospace engineering business operation log management and monitoring alarm system 100 (hereinafter referred to as the monitoring alarm system 100).
[0032] The embodiment of the present invention can divide the monitoring alarm system 100 into functional units. For example, the monitoring alarm system 100 can be divided into functional modules corresponding to various functions, or two or more functions can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0033] For example, Figure 1 A schematic diagram of the hardware structure of a monitoring and alarm system shown in an embodiment of the present invention is shown. The monitoring and alarm system 100 includes: a log acquisition module 110, which is used to obtain log information corresponding to each business system in multiple business systems, process the log information, and obtain multiple log monitoring indicators corresponding to each business system, and the log monitoring indicators are used to characterize the operating status of the business system; an alarm configuration module 120, which is used to receive the alarm threshold corresponding to each log monitoring indicator input by the user; a link monitoring module 130, which is used to obtain monitoring information corresponding to each business system in multiple business systems, and the monitoring information includes multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have service call relationships with each business system, and the service operation indicators are used to characterize the operating status of the associated business systems; an alarm sending module 140, which is used to send monitoring information to the target business system corresponding to the log monitoring indicator when there are abnormal log monitoring indicators in the log monitoring indicators. The information determines an alarm analysis report, wherein the value corresponding to the abnormal log monitoring indicator is within the first alarm threshold interval, the first alarm threshold interval of each log monitoring indicator is determined according to the alarm threshold corresponding to each log monitoring indicator, and the alarm analysis report includes alarm information for prompting the abnormality of the target business system and the abnormal cause of the target business system; an alarm display module 150 is used to display in a visual interface a plurality of log monitoring indicators corresponding to each business system in a plurality of business systems and a plurality of service operation indicators corresponding to each associated business system in a plurality of associated business systems that have a service call relationship with each business system; a data storage module 160 is used to store a plurality of log monitoring indicators corresponding to each business system in a plurality of business systems and a plurality of service operation indicators corresponding to each associated business system in a plurality of associated business systems that have a service call relationship with each business system in a database.
[0034] As an example, the monitoring and alarm system 100 can be any device with data processing capabilities, such as a general-purpose computer, a personal computer, a laptop computer, a switch or a tablet computer, etc. The specific implementation method of the monitoring and alarm system 100 is not limited here.
[0035] Figure 2The hardware structure diagram of the monitoring and alarm system provided by the embodiment of the present invention is shown. The monitoring and alarm system 100 includes a processor 210 , a memory 220 and a communication interface 230 .
[0036] The processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts of the monitoring and alarm system 100, and executes various functions and processes data of the monitoring and alarm system 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220. Optionally, the processor 210 can be implemented in at least one hardware form of a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA).
[0037] The memory 220 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 220 includes a non-transitory computer-readable storage medium. The memory 220 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 220 may include a program storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a data acquisition function, a data processing function, and a data display function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.
[0038] The communication interface 230 is used to communicate with other devices, equipment or communication networks, such as data storage devices, image processing equipment or Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0039] In physical implementation, the above-mentioned components (such as processor 210, memory 220 and communication interface 230) can be components in the same device (such as a laptop). Alternatively, at least two of the components can be set in the same device, that is, as different components in one device, such as a deployment method similar to devices or components in a distributed system.
[0040] It is to be understood that the structure shown in this embodiment does not constitute a specific limitation on the monitoring alarm system 100. In other embodiments of the present invention, the monitoring alarm system 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0041] The following describes the aerospace engineering business operation log management and monitoring alarm method provided by an embodiment of the present invention in conjunction with the accompanying drawings.
[0042] Figure 3 The present invention provides a flowchart of a method for aerospace engineering business operation log management and monitoring alarm. Optionally, the method can be performed by Figure 1 and Figure 2 The monitoring alarm system 100 of the structure shown is executed. The method may include the following steps:
[0043] S1. Obtain log information corresponding to each business system in multiple business systems, process the log information, and obtain multiple log monitoring indicators corresponding to each business system.
[0044] Specifically, the log monitoring index is used to characterize the operating status of the business system. It can also be understood that the log monitoring index is used to evaluate the health and performance of the business system. Exemplarily, the log monitoring index includes the number of error logs, the number of access logs, the log processing delay, and the log availability. Through the log monitoring index, the monitoring and alarm system 100 can determine whether there are abnormal conditions in the business system, evaluate the usage and load of the business system, evaluate the performance of the log processing program of the business system, and evaluate the stability and reliability of the log system.
[0045] In one possible implementation, each business system is respectively configured with a corresponding message middleware, which is used to store log information; obtaining log information corresponding to each business system in multiple business systems includes: obtaining log information in a preset format corresponding to each business system from the message middleware corresponding to each business system in the multiple business systems.
[0046] Optionally, the message middleware corresponding to each business system is Kafka middleware.
[0047] It should be understood that due to the advantage of high throughput of Kafka, by collecting and saving the log information generated by the business system through the Kafka middleware, the log information of the business system can be obtained in real time to ensure transmission performance. At the same time, Kafka has the ability to cut peaks. When the amount of log information is too large and the collection speed is too fast, if the log information is directly stored in the database, the log information writing speed may be greater than the writing threshold of the log acquisition module, resulting in the loss of log information. The Kafka middleware can ensure a stable writing speed even during traffic peaks, thereby ensuring the stability of the log management and monitoring alarm system.
[0048] In a possible implementation, the preset format of the log information is a log collection format set by a logback configuration file, wherein logback is an open source log component for providing an efficient and flexible log framework function.
[0049] Specifically, the monitoring and alarm system uses the logstash tool to process the log information to obtain multiple log monitoring indicators corresponding to each business system. Then the data storage module stores the multiple log monitoring indicators corresponding to each business system in the database, and provides a friendly interface for log analysis through Kibana to summarize, query and analyze the multiple log monitoring indicators corresponding to each business system included in the stored log information.
[0050] Among them, the logstash tool is an open source data collection engine with real-time management functions. It is used to uniformly process data from different sources and send the processed data to the specified location after processing. Logstash supports multiple types of input data, including log files, system message queues, databases, etc. It can perform various conversions and processes on the data and then send the data to various targets, such as Elasticsearch, Kafka, email notifications, etc. Kibana is an open source analysis and visualization platform for Elasticsearch, which is used to search and view data interactively stored in the Elasticsearch index. Using Kibana, you can perform advanced data analysis and display through various charts.
[0051] The following is based on an example, see Figure 4 When the monitoring alarm system 100 provided by the embodiment of the present invention communicates with multiple business systems, the above S1 specifically includes the following steps:
[0052] S11. Each business system in the multiple business systems outputs the generated log information in a preset format to the message middleware corresponding to each business system and saves it.
[0053] The preset format is a format that meets the requirements of the log collection format set by the logback configuration file to meet the needs of different business systems or components.
[0054] It should be understood that the preset format may also be any other file format predetermined by the user, and each of the multiple business systems outputs log information according to the format preset by the user, which is not particularly limited in the embodiment of the present invention.
[0055] S12. The monitoring and alarm system configures the relevant information and log filtering and parsing rules of the message middleware through the logstash tool, obtains and processes the log information of each business system from the message middleware, and obtains multiple log monitoring indicators corresponding to each business system.
[0056] In the case where the message middleware is Kafka middleware, the relevant information of the message middleware includes topic, cluster address, client ID, groupId, etc. The monitoring and alarm system configures the filtering and parsing rules of log information in the filter plug-in, and parses multiple log monitoring indicators from the log information of each business system through the Grok plug-in, which are time, thread name, Logger, service name, and interface time-consuming fields.
[0057] Exemplarily, the working principle of the Grok plug-in is: the log information includes multiple fields, wherein the message field is the field where logstash stores the collected data, and match={"message"=>...} represents the processing of the log information. The Grok plug-in processes the message field of the log information through a regular expression to obtain multiple log monitoring indicators corresponding to each business system.
[0058] In some embodiments, the monitoring alarm system tests whether the parsed string of the log information is correct by using the Grok Debugger tool.
[0059] In this way, the method provided by the embodiment of the present invention can effectively avoid repeatedly verifying the correctness of the parsing rules in a real environment.
[0060] S13. The monitoring and alarm system stores multiple log monitoring indicators corresponding to each business system in a database.
[0061] In one example, the database is an ES database.
[0062] Optionally, after the above S14, the method provided by the embodiment of the present invention further includes: the monitoring alarm system deletes the log monitoring indicators corresponding to the business systems whose storage time is greater than or equal to the preset time stored in the database at a preset frequency.
[0063] In this way, the embodiment of the present invention can realize regular cleaning of data stored in the database, prevent insufficient storage space of the database, and avoid the failure to successfully enter multiple log monitoring indicators included in subsequent log information, resulting in data loss.
[0064] S2. Receive the alarm threshold corresponding to each log monitoring indicator input by the user.
[0065] Specifically, the user can input the alarm threshold corresponding to each log monitoring indicator on the interface displayed by the monitoring alarm system 100 .
[0066] Furthermore, the user can also input the alarm analysis report template and the alarm threshold update algorithm on the interface displayed by the monitoring alarm system 100, wherein the alarm analysis report template includes the statistical type and statistical operation symbol of each log monitoring indicator. It also includes the configuration information of the alarm analysis report, such as the layout, font, color and form. The alarm threshold update algorithm is used by the monitoring alarm system 100 to realize the automatic update of the alarm threshold of each log monitoring indicator. The description of the automatic update of the alarm threshold is detailed in the description of the following embodiment, which will not be repeated here.
[0067] In some embodiments, the method provided by the embodiment of the present invention further includes the following steps:
[0068] The alarm threshold update algorithm updates the alarm threshold corresponding to each log monitoring indicator according to the alarm threshold update algorithm input by the user.
[0069] For further information, see Figure 5 The above-mentioned alarm threshold update algorithm based on the alarm threshold input by the user updates the alarm threshold corresponding to each log monitoring indicator, including:
[0070] S51, obtaining historical log monitoring indicator data, where the historical log monitoring indicator data includes multiple values corresponding to each log monitoring indicator in multiple log monitoring indicators within a preset time period;
[0071] S52, determining a historical average value of a target log monitoring indicator according to multiple values corresponding to the target log monitoring indicator, where the target log monitoring indicator is any one of the multiple log monitoring indicators;
[0072] S53: Determine the sum of the preset first offset and the historical average value of the target log monitoring indicator as the first alarm threshold update value of the target log monitoring indicator;
[0073] S54: Update the alarm threshold corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator.
[0074] Specifically, the following is an example to explain S51-S54 provided in the embodiment of the present invention. First, the monitoring and alarm system 100 obtains historical log monitoring indicator data, which includes multiple values corresponding to each log monitoring indicator in multiple log monitoring indicators within a preset time period and a timestamp corresponding to each value. The monitoring and alarm system 100 determines the historical average value of each log monitoring indicator, and the monitoring and alarm system 100 determines the sum of the first offset and the historical average value of each log monitoring indicator as the first alarm threshold update value of each log monitoring indicator. The alarm threshold of each log monitoring indicator is updated according to the first alarm threshold update value of each log monitoring indicator.
[0075] It should be understood that the monitoring alarm system 100 can update the alarm threshold of each log monitoring indicator at an update frequency input by the user, for example (for example, daily, weekly or monthly), and redetermine the historical average value of each log monitoring indicator before each update, and then obtain the first alarm threshold update value of each log monitoring indicator based on the sum of the redetermined historical average value of each log monitoring indicator and the first offset, thereby realizing automatic update of the alarm threshold of each log monitoring indicator.
[0076] In another possible implementation, the monitoring alarm system 100 determines the historical standard deviation of each log monitoring indicator, and determines the first alarm threshold update value as the sum of the product of the historical standard deviation of each log monitoring indicator and a preset first offset coefficient k and the historical average value.
[0077] Among them, the first offset coefficient k is determined based on business needs and the characteristics of historical data. If the historical data is highly volatile, and the business hopes that the alarm threshold can closely follow the changes in the log monitoring indicators of the business system, then the first offset coefficient k can be increased. Conversely, if the alarm threshold is expected to be more stable to avoid frequent alarm triggering, the first offset coefficient k can be reduced. In the embodiment of the present invention, the first offset coefficient k is set to 1, and the alarm threshold will be located near the center of the average distribution of the historical log monitoring indicator data, and will be more sensitive to small fluctuations in the data.
[0078] It should be understood that the first alarm threshold update value may also be determined by other formulas, and it may also be understood that the user may input any alarm threshold update algorithm for determining the first alarm threshold update value, and the embodiment of the present invention does not impose any limitation on this.
[0079] In a possible implementation, the above S54 specifically includes the following steps:
[0080] Obtain the alarm threshold corresponding to the target log monitoring indicator; based on the alarm threshold corresponding to the target log monitoring indicator, determine the first alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the first alarm number being the number of values in the multiple values corresponding to the target log monitoring indicator that are located in the first alarm threshold interval; when the alarm threshold is the first alarm threshold update value, determine the second alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the second alarm number being the number of values in the multiple values corresponding to the target log monitoring indicator that are located in the second alarm threshold interval corresponding to the target log monitoring indicator, the second alarm threshold interval being determined according to the first alarm threshold update value; when the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is less than a preset value, update the alarm number corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator. alarm threshold; when the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is greater than or equal to the preset value, determine the second offset, wherein the second offset is less than the first offset; determine the sum of the second offset and the historical average value of the target log monitoring indicator as the second alarm threshold update value of the target log monitoring indicator; when the alarm threshold is the second alarm threshold update value, determine the third alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the third alarm number is the number of values in the multiple values corresponding to the target log monitoring indicator that are located in the third alarm threshold interval corresponding to the target log monitoring indicator, and the third alarm threshold interval is determined according to the second alarm threshold update value; when the difference between the first alarm number and the third alarm number is less than the preset value, update the alarm threshold corresponding to the target log monitoring indicator according to the second alarm threshold update value of the target log monitoring indicator.
[0081] Specifically, the above embodiment is specifically used to verify the first alarm threshold update value to ensure the validity and accuracy of the first alarm threshold update value. When the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is less than the preset value, it means that the accuracy of the first alarm threshold update value corresponding to the target log monitoring indicator is high, and a large number of false alarms or missed reports will not be generated. When the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is greater than or equal to the preset value, it means that the accuracy of the first alarm threshold update value is low, and a large number of false alarms or missed reports will be generated. Therefore, the second alarm threshold update value corresponding to the target log monitoring indicator is determined according to the second offset, and then the second alarm threshold update value corresponding to the target log monitoring indicator is verified. After the completion, that is, when the accuracy of the second alarm threshold update value corresponding to the target log monitoring indicator meets the conditions, the alarm threshold corresponding to the target log monitoring indicator is updated according to the second alarm threshold update value.
[0082] It should be understood that in a possible implementation, for each log monitoring indicator, an importance level can be configured for each log monitoring indicator. For example, the log monitoring indicator is divided into two importance levels according to the importance, namely general indicators and core indicators.
[0083] Exemplarily, key indicators of business operation and error type logs in log levels are set as core indicators, and other monitored indicators and warn and info level logs in log levels are set as general indicators.
[0084] In an implementable manner of the first aspect, each log monitoring indicator is also configured with a different alarm level, each alarm level corresponds to a different alarm threshold interval, and the alarm levels include a first level, a second level, and a third level. The above method also includes: determining the alarm level corresponding to the abnormal log monitoring indicator according to the value corresponding to the abnormal log monitoring indicator; determining the alarm mode corresponding to the abnormal log monitoring indicator according to the alarm level and importance level of the abnormal log monitoring indicator; and issuing an alarm based on the alarm mode corresponding to the abnormal log monitoring indicator.
[0085] In one example, when the abnormal log monitoring indicator is a general indicator and the alarm level is the first level, the alarm mode is determined to be the first alarm mode. The first alarm mode includes notifying the user in the form of a text message for processing. The text message is sent to the terminal device corresponding to the operation and maintenance personnel once every 6 hours.
[0086] In another example, when the abnormal log monitoring indicator is a general indicator and the alarm level is the second level, the alarm mode is determined to be the second alarm mode. The second alarm mode includes sending an alarm message in the form of a text message to the terminal device corresponding to the operation and maintenance personnel. The text message is sent every 2 hours. If the alarm of the same log monitoring indicator at the second level is triggered more than 5 times within 24 hours and is not processed, an alarm message in the form of a mobile phone text message is sent to the terminal device corresponding to the operation and maintenance personnel.
[0087] In another example, when the abnormal log monitoring indicator is a general indicator and the alarm level is the third level, the alarm method is determined to be the third alarm method. The third alarm method includes notifying the operation and maintenance personnel by phone, mobile phone text message, and text message. When the alarm strategy is triggered, the alarm information will send a text message to the terminal device corresponding to the operation and maintenance personnel every 3 minutes, and notify the operation and maintenance personnel by mobile phone text message. The operation and maintenance personnel can choose to click the control that the information has been received on the interface displayed on the terminal device. Within 3 hours after the operation and maintenance personnel click the control, the text message notification and text message notification will be temporarily suspended. Otherwise, the operation and maintenance personnel will be notified every 30 minutes by mobile phone text message. If the processing time exceeds 3 hours, the operation and maintenance personnel need to click the control that the information has been received again. If the abnormality is not resolved after 3 consecutive mobile phone text message notifications, the operation and maintenance personnel will be notified by phone.
[0088] In another example, when the abnormal log monitoring indicator is a core indicator and the alarm level is the third level, the alarm mode is determined to be the fourth alarm mode. The fourth alarm mode includes immediately notifying the operation and maintenance personnel by phone, SMS and text message. The operation and maintenance personnel are required to immediately click the control that the information has been received on the interface displayed on the terminal device, otherwise the operation and maintenance personnel will continue to be notified by phone and text every 3 minutes. Within 1 hour after the operation and maintenance personnel click the control, the phone and text message notifications will be temporarily suspended. If the processing time exceeds 1 hour, the maintenance personnel will need to click the control that the information has been received again.
[0089] S3. Obtain monitoring information corresponding to each business system in the multiple business systems. The monitoring information includes multiple service operation indicators corresponding to each of the multiple associated business systems that have a service call relationship with each business system.
[0090] Specifically, the service operation indicator is used to characterize the operation status of the associated business system.
[0091] It can also be understood as: service operation indicators are indicators presented by the call relationship between services deployed by each business system, usually involving the call performance, response time, throughput, etc. of the services deployed by the business system. Service operation indicators are mainly used to measure the performance of services deployed by the business system during the call process, including the number of transactions per second (TPS), request response time, transaction response time, number of concurrent users, throughput, throughput rate, and click rate, etc. Service operation indicators are used to determine the processing capacity, response speed, and overall system load of the services deployed by each business system. Service operation indicators are also used to determine the operating status of multiple associated business systems that have a service call relationship with the business system based on the processing capacity, response speed, and overall system load of the services deployed by the business system.
[0092] Specifically, the monitoring and alarm system obtains the monitoring information corresponding to each business system in multiple business systems in real time through the SkyWalking tool, so as to obtain multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have service call relationships with each business system.
[0093] It should be understood that the SkyWalking tool is an open source distributed system tracing and performance monitoring tool that is used to help developers and operation and maintenance personnel monitor and analyze the performance bottlenecks and failures of distributed systems in real time.
[0094] In one example, the collection end of the SkyWalking tool obtains monitoring information corresponding to each business system in multiple business systems, and the monitoring information includes multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have a service call relationship with each business system. Among them, the collection end of the SkyWalking tool can collect the monitoring information of the business system by loading probes and other methods, and push the monitoring information to the server end of the SkyWalking tool through grpc. After receiving the monitoring information, the server end of the SkyWalking tool analyzes and aggregates the data through preset plug-ins to obtain multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have a service call relationship with each business system, and then stores the multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have a service call relationship with each business system in the database.
[0095] Exemplarily, the preset plug-in includes a JVM related plug-in and a database plug-in. The JVM related plug-in is used to process the JVM information in the monitoring information, and the database plug-in is used to analyze the information of accessing the database and then store the data in the database.
[0096] In a possible implementation, the method provided in the embodiment of the present invention further includes the following steps:
[0097] The visualization interface displays multiple log monitoring indicators corresponding to each business system in multiple business systems and multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have service call relationships with each business system.
[0098] It can also be understood as: the monitoring and alarm system displays multiple log monitoring indicators corresponding to each business system in multiple business systems and multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have service call relationships with each business system in real time in the form of a visual page, so that users can accurately and quickly understand the current operation status, historical trends and statistical analysis results of each business system.
[0099] Specifically, it can be seen from the above embodiments that the embodiments of the present invention store multiple log monitoring indicators corresponding to each business system in multiple business systems and multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have a service call relationship with each business system in a database, and the monitoring and alarm system obtains index data of the database through Kibana, and displays the multiple log monitoring indicators corresponding to each business system in multiple business systems and multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have a service call relationship with each business system.
[0100] Optionally, as the amount of data increases, in order to ensure query and write performance and prevent complex business systems from reaching the index limit, the monitoring alarm system provided in the embodiment of the present invention periodically deletes index data based on the log volume of the business. The index deletion period can be configured by the user, and the embodiment of the present invention does not impose any special restrictions on this.
[0101] In one example, Kibana can obtain the index data of the database and integrate the data stored in the database, and support querying and displaying multiple log monitoring indicators corresponding to each business system in multiple business systems and multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have service call relationships with each business system through the front-end interface. Support displaying multiple log monitoring indicators corresponding to each business system in multiple business systems and multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have service call relationships with each business system through various statistical charts. Among them, the display methods include line charts, bar charts, and histograms.
[0102] It should be noted that the above display method is only an exemplary description and the embodiments of the present invention do not impose any particular limitation on this.
[0103] In a possible implementation, the visualization interface can be customized according to user needs, including the layout, color, chart type, etc. of the visualization interface. The user can interact with the visualization interface by clicking, dragging, etc., and edit multiple log monitoring indicators corresponding to each business system in multiple business systems and multiple service operation indicators corresponding to each associated business system in multiple associated business systems that have service call relationships with each business system.
[0104] S4. When there are abnormal log monitoring indicators in the log monitoring indicators, an alarm analysis report is determined according to the monitoring information of the target business system corresponding to the log monitoring indicators.
[0105] Among them, the value corresponding to the abnormal log monitoring indicator is within the first alarm threshold interval, the first alarm threshold interval of each log monitoring indicator is determined according to the alarm threshold corresponding to each log monitoring indicator, and the alarm analysis report includes alarm information for prompting the abnormality of the target business system and the abnormal cause of the target business system.
[0106] Exemplarily, the value of log monitoring indicator A at moment a is 100, and the value corresponding to moment b is 150. When the alarm threshold of log monitoring indicator A is 120, and the first alarm threshold interval of log monitoring indicator A determined according to the alarm threshold of log monitoring indicator A is greater than or equal to 120, the value corresponding to log monitoring indicator A at moment b is within the first alarm threshold interval. At this time, log monitoring indicator A is an abnormal log monitoring indicator.
[0107] It should be understood that the monitoring and alarm system 100 pre-stores an alarm threshold interval determination algorithm corresponding to each log monitoring indicator, and the alarm threshold interval determination algorithm is used to determine the first alarm threshold interval of each log monitoring indicator according to the type and alarm threshold of each log monitoring indicator. For example, the alarm threshold of log monitoring indicator C is 500, and the alarm threshold of log monitoring indicator D is 500. The type of log monitoring indicator C is c, and the monitoring and alarm system 100 determines that the first alarm threshold interval of log monitoring indicator C is less than 500 based on the type c of log monitoring indicator C and the alarm threshold 500. The type of log monitoring indicator D is d, and the monitoring and alarm system 100 determines that the first alarm threshold interval of log monitoring indicator D is greater than or equal to 500 based on the type d of log monitoring indicator D and the alarm threshold 500.
[0108] It should be noted that the user may also input the first alarm threshold interval of each log monitoring indicator according to his / her own usage requirements, and the embodiment of the present invention does not impose any particular limitation on this.
[0109] In a possible implementation, the above-mentioned abnormal cause includes abnormality of the business system or the business system associated with the target business system; determining the alarm analysis report according to the monitoring information of the target business system corresponding to the log monitoring indicator includes:
[0110] In the case where there is an abnormal service operation indicator among the multiple service operation indicators of the target business system, an alarm analysis report is determined, wherein the abnormal cause of the target business system included in the alarm analysis report is that a related business system of the target business system is abnormal;
[0111] Each of the multiple service operation indicators is respectively configured with a corresponding alarm threshold interval. When the value of the service operation indicator is within the corresponding alarm threshold interval, the service operation indicator is determined to be an abnormal service operation indicator.
[0112] In another example, each service operation indicator is respectively configured with status information, and the status information includes normal or abnormal. When the status information of the service operation indicator is abnormal, the service operation indicator is determined to be an abnormal service operation indicator.
[0113] When there is no abnormal service operation indicator among the multiple service operation indicators of the target business system, an alarm analysis report is determined, and the abnormal cause of the target business system included in the alarm analysis report is that the target business system is abnormal.
[0114] In one example, when there are abnormal log monitoring indicators in the log monitoring indicators, the monitoring alarm system determines whether there are abnormal service operation indicators in the service operation indicators of the target business system based on the monitoring information obtained through the Skywalking tool, and checks the link call status of the complete request of the target business system to determine the source of the abnormal service operation indicator, that is, to determine the associated business system of the target business system corresponding to the abnormal service operation indicator, and then obtains the cause of the abnormality of the target business system. The cause of the abnormality is that the associated business system of the target business system corresponding to the abnormal service operation indicator has an abnormality.
[0115] In one embodiment, the monitoring and alarm system obtains a global identifier (traceId) corresponding to the abnormal log monitoring indicator. The monitoring and alarm system obtains the data flow status on the request link according to the traceId. If there are a large number of complete requests on the business link that have not been sent to the server corresponding to the target business system where the abnormal log monitoring indicator appears, it is determined that the abnormal log monitoring indicator is caused by the abnormality of the associated business system of the target business system. The abnormality of the associated business system of the target business system will also be described in the abnormality cause in the alarm analysis report, so that the user can promptly repair the associated business system of the target business system. If the associated business system of the target business system is normal, the user is required to check the target business system corresponding to the abnormal log monitoring indicator to repair the abnormality of the target business system.
[0116] As can be seen from the above, the method provided by the embodiment of the present invention can build a unified, fully functional and reliable monitoring and alarm system for the operation of aerospace engineering business, targeting the problems of complex aerospace system business, numerous business systems, and the requirement for extremely high stability of online business, and the difficulty in controlling costs of operating and maintaining each business separately. In addition, the present invention adopts a method based on statistical analysis to achieve automatic and efficient monitoring of business systems. And the accuracy and reliability of alarm monitoring are improved by adopting technical means such as alarm configuration update algorithm and multi-level alarm level, which can meet the complex monitoring and alarm requirements of the operation and maintenance of aerospace engineering business systems, thereby achieving effective management of log information generated by the business systems of aerospace engineering, and then quickly determining abnormal problems and abnormal causes of the business system based on the log monitoring indicators included in the log information and the service operation indicators included in the monitoring information, thereby achieving effective monitoring of the business systems of aerospace engineering, thereby reducing the operation and maintenance costs and difficulty, and improving the operation and maintenance efficiency.
[0117] The above mainly introduces the scheme of the embodiment of the present invention from the perspective of the method. It can be understood that in order to realize the above functions, the monitoring alarm system 100 includes at least one of the hardware structure and software modules corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed in this article, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application.
[0118] The embodiment of the present invention further provides a computer-readable storage medium, in which at least one computer instruction is stored, and the at least one computer instruction is loaded and executed by a processor to implement the methods of the above embodiments. For the explanation of the relevant contents and the description of the beneficial effects in any of the above-mentioned computer-readable storage media, reference can be made to the above-mentioned corresponding embodiments, which will not be repeated here.
[0119] The embodiment of the present invention further provides a chip. The chip integrates a control circuit and one or more ports for implementing the functions of the monitoring alarm system 100. Optionally, the functions supported by the chip can be referred to above and will not be described in detail here.
[0120] Those skilled in the art will appreciate that all or part of the steps of the above embodiments can be implemented by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, a specific circuit structure (application specific integrated circuit, ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
[0121] The embodiment of the present invention also provides a computer program product including instructions, when the instructions are run on a computer, the computer executes any one of the methods in the above embodiments. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable system. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by the computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., an SSD), etc.
[0122] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present invention, such as but not limited to the above-mentioned memory, computer-readable storage medium and communication chip, etc., all have non-transitory. Those skilled in the art should be aware that in one or more of the above-mentioned examples, the functions described in the embodiments of the present invention can be implemented with hardware, software, firmware or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0123] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for managing and monitoring the operation log of an aerospace engineering business, characterized in that: The method comprises: Obtain log information corresponding to each business system in multiple business systems, process the log information, and obtain multiple log monitoring indicators corresponding to each business system, where the log monitoring indicators are used to characterize the operating status of the business system; Receive the alarm threshold corresponding to each log monitoring indicator input by the user; Acquire monitoring information corresponding to each of the multiple business systems, the monitoring information including multiple service operation indicators corresponding to each of the multiple associated business systems having a service call relationship with each of the business systems, the service operation indicators being used to characterize the operation status of the associated business systems; In the case where there is an abnormal log monitoring indicator in the log monitoring indicators, an alarm analysis report is determined according to the monitoring information of the target business system corresponding to the log monitoring indicator, wherein the value corresponding to the abnormal log monitoring indicator is within the first alarm threshold interval, the first alarm threshold interval of each of the log monitoring indicators is determined according to the alarm threshold corresponding to each of the log monitoring indicators, and the alarm analysis report includes alarm information for prompting the abnormality of the target business system and the abnormal cause of the target business system; The method further comprises: Acquire historical log monitoring indicator data, wherein the historical log monitoring indicator data includes multiple values corresponding to each log monitoring indicator in multiple log monitoring indicators within a preset time period; Determine a historical average value of the target log monitoring indicator according to multiple values corresponding to the target log monitoring indicator, where the target log monitoring indicator is any one of the multiple log monitoring indicators; Determine the sum of a preset first offset and a historical average value of the target log monitoring indicator as a first alarm threshold update value of the target log monitoring indicator; Update the alarm threshold corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator; The updating of the alarm threshold corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator includes: Obtain the alarm threshold corresponding to the target log monitoring indicator; Based on the alarm threshold corresponding to the target log monitoring indicator, determine the first alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, where the first alarm number is the number of values in the first alarm threshold interval among the multiple values corresponding to the target log monitoring indicator; In the case where the alarm threshold is the first alarm threshold update value, determining a second alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the second alarm number being the number of values in a plurality of values corresponding to the target log monitoring indicator that are located in a second alarm threshold interval corresponding to the target log monitoring indicator, the second alarm threshold interval being determined according to the first alarm threshold update value; When the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is less than a preset value, updating the alarm threshold corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator; When the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is greater than or equal to a preset value, determining a second offset, wherein the second offset is less than the first offset; Determine the sum of the second offset and the historical average value of the target log monitoring indicator as the second alarm threshold update value of the target log monitoring indicator; In the case where the alarm threshold is the second alarm threshold update value, determining a third alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the third alarm number being the number of values in a third alarm threshold interval corresponding to the target log monitoring indicator among a plurality of values corresponding to the target log monitoring indicator, the third alarm threshold interval being determined according to the second alarm threshold update value; When the difference between the first alarm number and the third alarm number is less than a preset value, the alarm threshold corresponding to the target log monitoring indicator is updated according to the second alarm threshold update value of the target log monitoring indicator.
2. The method according to claim 1, characterized in that The abnormal reason includes abnormality of the business system or the associated business system of the target business system; The step of determining an alarm analysis report based on monitoring information of a target business system corresponding to the log monitoring indicator includes: In the case where there is an abnormal service operation indicator among the multiple service operation indicators of the target business system, determining an alarm analysis report, wherein the abnormal cause of the target business system included in the alarm analysis report is that a business system associated with the target business system is abnormal; In the case that there is no abnormal service operation indicator among the multiple service operation indicators of the target business system, an alarm analysis report is determined, and the abnormal cause of the target business system included in the alarm analysis report is that the target business system is abnormal.
3. The method according to claim 2, characterized in that Each of the business systems is respectively configured with a corresponding message middleware, and the message middleware is used to store log information; the step of obtaining the log information corresponding to each of the multiple business systems includes: Obtain log information in a preset format corresponding to each business system from the message middleware corresponding to each business system in multiple business systems.
4. The method according to claim 3, characterized in that: The method further comprises: Displaying on a visual interface a plurality of log monitoring indicators corresponding to each of the plurality of business systems and a plurality of service operation indicators corresponding to each of the plurality of associated business systems having a service call relationship with each business system; The multiple log monitoring indicators corresponding to each business system in the multiple business systems and the multiple service operation indicators corresponding to each associated business system in the multiple associated business systems having a service call relationship with each business system are stored in a database.
5. The method according to claim 4, characterized in that Each of the log monitoring indicators is respectively configured with a different importance level, the importance level includes general indicators and core indicators, each of the log monitoring indicators is also respectively configured with a different alarm level, each of the alarm levels corresponds to a different alarm threshold interval, the alarm level includes a first level, a second level and a third level, and the importance level and alarm level of each of the log monitoring indicators correspond to different alarm modes; The method further comprises: Determine the alarm level corresponding to the abnormal log monitoring indicator according to the value corresponding to the abnormal log monitoring indicator; Determine the alarm mode corresponding to the abnormal log monitoring indicator according to the alarm level and importance level of the abnormal log monitoring indicator; An alarm is issued based on the alarm method corresponding to the abnormal log monitoring indicator.
6. An aerospace engineering business operation log management and monitoring alarm system, characterized in that: The system comprises: A log acquisition module is used to acquire log information corresponding to each business system in multiple business systems, process the log information, and obtain multiple log monitoring indicators corresponding to each business system, wherein the log monitoring indicators are used to characterize the operating status of the business system; An alarm configuration module is used to receive the alarm threshold corresponding to each of the log monitoring indicators input by the user; A link monitoring module, used to obtain monitoring information corresponding to each of the multiple business systems, wherein the monitoring information includes multiple service operation indicators corresponding to each of the multiple associated business systems having a service call relationship with each of the business systems, and the service operation indicators are used to characterize the operation status of the associated business systems; An alarm sending module is used to determine an alarm analysis report according to the monitoring information of the target business system corresponding to the log monitoring indicator when there is an abnormal log monitoring indicator in the log monitoring indicator, wherein the value corresponding to the abnormal log monitoring indicator is within a first alarm threshold interval, the first alarm threshold interval of each log monitoring indicator is determined according to the alarm threshold corresponding to each log monitoring indicator, and the alarm analysis report includes alarm information for prompting the abnormality of the target business system and the abnormal cause of the target business system; An alarm display module is used to display, on a visual interface, a plurality of log monitoring indicators corresponding to each of the plurality of business systems and a plurality of service operation indicators corresponding to each of the plurality of associated business systems having a service call relationship with each business system; A data storage module, used for storing a plurality of log monitoring indicators corresponding to each business system in the plurality of business systems and a plurality of service operation indicators corresponding to each associated business system in the plurality of associated business systems having a service call relationship with each business system in a database; The alarm sending module is further used for: Acquire historical log monitoring indicator data, wherein the historical log monitoring indicator data includes multiple values corresponding to each log monitoring indicator in multiple log monitoring indicators within a preset time period; Determine a historical average value of the target log monitoring indicator according to multiple values corresponding to the target log monitoring indicator, where the target log monitoring indicator is any one of the multiple log monitoring indicators; Determine the sum of a preset first offset and a historical average value of the target log monitoring indicator as a first alarm threshold update value of the target log monitoring indicator; Update the alarm threshold corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator; The updating of the alarm threshold corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator includes: Obtain the alarm threshold corresponding to the target log monitoring indicator; Based on the alarm threshold corresponding to the target log monitoring indicator, determine the first alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, where the first alarm number is the number of values in the first alarm threshold interval among the multiple values corresponding to the target log monitoring indicator; In the case where the alarm threshold is the first alarm threshold update value, determining a second alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the second alarm number being the number of values in a plurality of values corresponding to the target log monitoring indicator that are located in a second alarm threshold interval corresponding to the target log monitoring indicator, the second alarm threshold interval being determined according to the first alarm threshold update value; When the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is less than a preset value, updating the alarm threshold corresponding to the target log monitoring indicator according to the first alarm threshold update value of the target log monitoring indicator; When the difference between the first alarm number and the second alarm number corresponding to the target log monitoring indicator is greater than or equal to a preset value, determining a second offset, wherein the second offset is less than the first offset; Determine the sum of the second offset and the historical average value of the target log monitoring indicator as the second alarm threshold update value of the target log monitoring indicator; In the case where the alarm threshold is the second alarm threshold update value, determining a third alarm number corresponding to the target log monitoring indicator in the historical log monitoring indicator data, the third alarm number being the number of values in a third alarm threshold interval corresponding to the target log monitoring indicator among a plurality of values corresponding to the target log monitoring indicator, the third alarm threshold interval being determined according to the second alarm threshold update value; When the difference between the first alarm number and the third alarm number is less than a preset value, the alarm threshold corresponding to the target log monitoring indicator is updated according to the second alarm threshold update value of the target log monitoring indicator.
7. An electronic device, characterized in that: The invention comprises a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 5.
