System operation log monitoring method and device, electronic device and storage medium

Through the system operation log monitoring method based on the tag tree model, the problem in the existing technology of being unable to monitor and predict user dangerous commands in real time is solved, and intelligent full log template extraction and real-time monitoring are realized, which improves operation and maintenance efficiency and coverage, and reduces Reduce the workload of manual inspection.

CN113760645BActive Publication Date: 2024-09-24JINGDONG TECH HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110262303.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-10
Publication Date
2024-09-24
Estimated Expiration
2041-03-10

AI Technical Summary

Technical Problem

Existing technology cannot effectively monitor and predict users' dangerous command operations in real time, resulting in long time to discover problems, insufficient coverage, inability to proactively discover unmatched logs, and lack of quantitative indicators, which affects operation and maintenance efficiency.

Method used

The system operation log monitoring method based on the tag tree model is used to convert real-time data into log templates. The monitoring model is input through template feature engineering to achieve intelligent baseline monitoring and anomaly detection, proactively discover dangerous command operations, generate log templates with wide coverage, and reduce Manual inspection.

Benefits of technology

Real-time monitoring of dangerous user commands is achieved, problems are discovered in advance, losses are quickly reduced, operation and maintenance efficiency is improved, coverage is wide, timeliness is higher than regular matching, and manual troubleshooting workload is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113760645B
    Figure CN113760645B
Patent Text Reader

Abstract

The embodiment of the present invention provides a system operation log monitoring method and device, electronic device and storage medium, wherein the method includes: based on a label tree model, converting the input real-time data of the system operation log into a log template; quantifying the log template into a template feature engineering; inputting the template feature engineering into the system operation log monitoring model to realize the monitoring of the system operation log; wherein the label tree model is obtained after training based on the system operation log sample data and the predetermined log template label; the system operation log monitoring model is obtained after training based on the template feature engineering sample data and the predetermined system operation log identification result label. The present invention actively discovers dangerous command operations through an online real-time matching method based on a label tree, can intelligently update the log template library, has a wide template coverage, and the real-time matching algorithm based on the label tree is highly effective, reducing the workload of manual investigation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a system operation log monitoring method and device, electronic equipment and storage medium. Background Art

[0002] At present, the method of checking whether there are dangerous user command operations is through rule scripts and manual investigation. This method is that the operation and maintenance engineers write rule scripts based on experience. Faced with massive system operation logs (reaching billions every day), there will be omissions in the experience coverage, and the existing technology does not have a baseline monitoring of real-time hit logs. It can only get the number of corresponding system operation logs matched by regular expressions. Regular matching does not have a predictive function and cannot be compared with the performance of past system operation logs. It can only be that some dangerous operations have brought some impact, or the operation and maintenance engineers actively check the problem, and it takes a long time to find the problem. In addition, faced with billions of logs, the regular matching time is long, which affects the speed of discovering dangerous user commands. For unmatched system logs, new regular expressions cannot be automatically generated and can only be sorted manually.

[0003] Existing technologies cannot proactively detect dangerous user command operations, nor do they have quantitative indicators for dangerous user command operation logs. Operation and maintenance engineers can only perform regular matching based on possible dangerous commands summarized from experience. The coverage of dangerous command types may not be comprehensive enough, and there is no real-time insight into the number of dangerous commands triggered by each user, nor can it be compared with historical dangerous command performance. Operation and maintenance work is relatively passive and cannot detect dangerous problems in advance. Summary of the invention

[0004] The present invention provides a system operation log monitoring method and device, electronic equipment and storage medium, which are used to solve the technical defects existing in the prior art.

[0005] The present invention provides a system operation log monitoring method, comprising:

[0006] Based on the tag tree model, the real-time data of the input system operation log is converted into a log template;

[0007] Quantizing the log template into template feature engineering;

[0008] Inputting the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log;

[0009] The label tree model is obtained after training based on system operation log sample data and predetermined log template labels;

[0010] The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels.

[0011] According to the system operation log monitoring method provided by the present invention, the step of converting the input real-time data of the system operation log into a log template based on a tag tree model includes:

[0012] Perform real-time matching of the input real-time data of the system operation log with the subset of dangerous command templates corresponding to the label tree to which the real-time data of the system operation log belongs;

[0013] Determine whether it matches the dangerous command template subset, and if so, convert the input real-time data of the system operation log into a log template.

[0014] The step of inputting the template feature engineering into the system operation log monitoring model to implement monitoring of the system operation log includes:

[0015] The template feature engineering is input into the intelligent baseline monitoring model. Based on the autoregression principle, the true value of the previous moment is input into the intelligent baseline monitoring model as the intelligent baseline feature of the current moment to perform time series prediction. The time series is used for anomaly identification.

[0016] According to the system operation log monitoring method provided by the present invention, the step of inputting the template feature engineering into the system operation log monitoring model to implement monitoring of the system operation log includes:

[0017] The template feature engineering is input into the anomaly detection model, and the template feature engineering corresponding to the system operation log is identified for its own morphological anomaly from the mean change, variance change, detection peaks and valleys, and the decrease in amplitude exceeding a threshold within a preset time period.

[0018] The present invention also provides a system operation log monitoring device, comprising:

[0019] The real-time data conversion module is used to convert the real-time data of the input system operation log into a log template based on the tag tree model;

[0020] A log template quantization module, used for quantizing the log template into template feature engineering;

[0021] An operation log monitoring module, used to input the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log;

[0022] The label tree model is obtained after training based on system operation log sample data and predetermined log template labels;

[0023] The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels.

[0024] According to the system operation log monitoring device provided by the present invention, the real-time data conversion module includes:

[0025] A real-time matching unit, used for matching the input real-time data of the system operation log with the subset of dangerous command templates corresponding to the label tree to which the real-time data of the system operation log belongs in real time;

[0026] The conversion unit is used to determine whether the system operation log data matches the dangerous command template subset, and if so, convert the real-time data of the input system operation log into a log template.

[0027] According to the system operation log monitoring device provided by the present invention, the system operation log monitoring model includes:

[0028] The intelligent baseline monitoring model is used to input the true value of the previous moment as the intelligent baseline feature of the current moment into the intelligent baseline monitoring model based on the autoregression principle to perform time series prediction, and the time series is used for anomaly identification.

[0029] According to the system operation log monitoring device provided by the present invention, the system operation log monitoring model includes:

[0030] The anomaly detection model is used to identify anomalies of its own form based on the template feature engineering corresponding to the system operation log from the mean change, variance change, peak and valley detection, and the decrease in amplitude exceeding a threshold within a preset time period.

[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned system operation log monitoring methods are implemented.

[0032] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the system operation log monitoring methods described above are implemented.

[0033] The present invention converts the system operation log into a log template through an online real-time matching method based on a label tree, and then quantifies it into a template feature engineering, intelligently monitors important user dangerous command operations, realizes intelligent full log template extraction, covers all user dangerous command operations, and quantifies the log template. Through the system operation log monitoring model, real-time monitoring of the system operation log is realized, and dangerous command operations are actively discovered, changing the passive way of troubleshooting dangerous commands, which can discover problems in advance and quickly reduce losses. The present invention can not only perform template training on the full log, generate a log template with wide coverage, and realize intelligent monitoring of the system operation log quantification; it can also perform intelligent template training on the unmatched system operation log, intelligently update the log template library, and the template coverage is wide. The real-time matching algorithm based on the label tree is more timely than the regular one, and the template clustering method can realize the aggregate analysis of massive system operation logs, reducing the workload of manual troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 This is one of the flow charts of the system operation log monitoring method provided by the present invention;

[0036] Figure 2 This is the second flow chart of the system operation log monitoring method provided by the present invention;

[0037] Figure 3 is a schematic diagram of a system operation log monitoring device provided by the present invention;

[0038] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] The embodiment of the present invention discloses a system operation log monitoring method, see Figure 1 ,include:

[0041] S1: Based on the tag tree model, the real-time data of the input system operation log is converted into a log template.

[0042] In this step, the rapid clustering of operating system logs can be achieved. Based on the label tree model, the real-time operating system logs are mapped to the corresponding template categories, and important dangerous command operations such as user authentication, COMMAND, and sftp are discovered in time to avoid risks. Compared with regular matching, this method has a strong timeliness and higher matching accuracy than regular matching.

[0043] Specifically, S1 includes:

[0044] Perform real-time matching of the input real-time data of the system operation log with the subset of dangerous command templates corresponding to the label tree to which the real-time data of the system operation log belongs;

[0045] Specifically, judging whether the real-time data of the input system operation log matches the dangerous command template subset specifically refers to judging whether the real-time data of the system operation log is in the dangerous command template subset. If it is in the dangerous command template subset, the real-time data of the input system operation log is converted into a log template. If it is not in the dangerous command template subset, it does not need to be considered.

[0046] The label tree model is a model that applies label tree logic. It is obtained through training based on system operation log sample data and pre-determined log template labels. The specific training process is:

[0047] Perform real-time matching of the input system operation log sample data with the dangerous command template subset corresponding to the label tree to which the system operation log sample data belongs;

[0048] Determine whether the real-time data of the input system operation log matches the dangerous command template subset. If so, convert the input system operation log sample data into a log template based on the input system operation log sample data and its corresponding predetermined log template label.

[0049] Among them, the label tree represents the type of dangerous operation log in the system operation log, each label tree corresponds to a dangerous command template subset, each dangerous command template subset contains multiple dangerous command templates, and whether it matches the dangerous command template subset specifically refers to judging whether the system operation log sample data is in the dangerous command template subset. If so, the input system operation log sample data is converted into a log template. If it is not in the dangerous command template subset or its corresponding predetermined log template label does not belong to the log template, it does not need to be considered and the system operation log sample data can be directly discarded.

[0050] S2: quantizing the log template into template feature engineering;

[0051] Feature engineering includes text features, time series features, etc. Quantification means matching logs with templates and mapping logs into template counts, which are template feature engineering indicators. Templates are fixed patterns obtained by retaining constants in logs and replacing variables with asterisks. Each type of template is a label tree.

[0052] S3: Input the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log;

[0053] During the training process of the label tree model, the context of the template is learned based on the annotated partial template labels, and labels are extracted for the full template. The system operation log sample data mainly uses user dangerous operation logs. First, the log is segmented, invalid words are filtered, and the word frequency is calculated. Then, the log templates are arranged in positive order, and the abnormal templates are annotated. Finally, BiLSTM-CRF label extraction is used to perform offline log-template matching and discard non-dangerous templates.

[0054] The label tree in this application is preferably that the template obtained through training covers 7 key monitoring categories: wrong login password, successful login (password + key), login from non-allowed IP, password change, invalid user login, COMMAND dangerous operation category and sftp category. COMMAND dangerous operation category and sftp category belong to the large category of templates.

[0055] The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels.

[0056] The step of inputting the template feature engineering into the system operation log monitoring model to implement monitoring of the system operation log includes:

[0057] Based on the autoregression principle, the true value of the previous moment is input into the intelligent baseline monitoring model as the intelligent baseline feature of the current moment to perform time series prediction, and the time series is used for anomaly identification.

[0058] The embodiment of the present invention configures an intelligent baseline monitoring model (DeepAR) after quantifying the key monitored log template into feature engineering, which is used to input the true value of the previous moment as the intelligent baseline feature of the current moment into the intelligent baseline monitoring model based on the autoregression principle to perform time series prediction, and the time series is used for anomaly identification. The effect of the DeepAR algorithm is evaluated by calculating SMAPE, and 5min time series data is used to predict 2min time series data. The evaluation result shows that the DeepAR algorithm is suitable for intelligent baseline prediction after the user's dangerous command operation log is quantified. The intelligent baseline monitoring model is configured for the indicators after the key monitoring template is quantified (that is, the template feature engineering), which realizes real-time monitoring of user dangerous command operations and actively discovers user dangerous command operations through logs.

[0059] The embodiment of the present invention adapts the upper and lower limits to the intelligent baseline after the quantification index of the user's dangerous command operation log. The upper and lower limits are calculated based on the hypothesis test and the predicted value. If the true value exceeds the upper limit or is lower than the lower limit, it is judged as abnormal. According to the problem that the upper and lower limits have opposite trends in change during the use of the model, the calculation method of the upper and lower limits is corrected, thereby reducing the impact of local variance fluctuations, and better identifying abnormalities in the user's dangerous command operation log.

[0060] Furthermore, the step of inputting the template feature engineering into the system operation log monitoring model to implement monitoring of the system operation log includes:

[0061] The template feature engineering is input into the anomaly detection model, and the template feature engineering corresponding to the system operation log is identified for its own morphological anomaly based on the mean change, variance (jitter frequency) change, detection of peaks and valleys (spikes, deep valleys), and the decrease in amplitude exceeding a threshold within a preset time period.

[0062] In the application process of the system operation log monitoring method, the label tree model and the system operation log monitoring model can be continuously optimized through learning.

[0063] To further understand the method of this embodiment, in a specific example, the system operation log monitoring method of this embodiment includes:

[0064] Step 200: Based on the label tree model, the real-time data of the input system operation log is converted into a log template; wherein the label tree model is obtained after training based on the system operation log sample data and the predetermined log template label; the rapid clustering of the operating system log is realized, and the real-time operating system log is mapped to the corresponding template category based on the label tree model, so as to timely discover important dangerous command operations such as user authentication, COMMAND, and sftp, and timely avoid risks. Compared with regular matching, this method has super timeliness and higher matching accuracy than regular matching.

[0065] During the training process of the label tree model, the context of the template is learned based on the annotated partial template labels, and labels are extracted for the full template. The system operation log sample data mainly uses user dangerous operation logs. First, the log is segmented, invalid words are filtered, and the word frequency is calculated. Then, the log templates are arranged in positive order, and the abnormal templates are annotated. Finally, BiLSTM-CRF label extraction is used to perform offline log-template matching and discard non-dangerous templates.

[0066] That is, in step 200, if the real-time data of the input system operation log, the non-dangerous template is matched in real time with the dangerous command template subset corresponding to the label tree to which the real-time data of the system operation log belongs; if the match fails, it means that it is not in the dangerous command template subset, and it does not need to be considered and can be directly discarded. The matching process is actually also the training process of the label tree model, and only the dangerous command template is retained.

[0067] Step 200 specifically includes:

[0068] Step 201: perform real-time matching of the real-time data of the input system operation log with the subset of dangerous command templates corresponding to the label tree to which the real-time data of the system operation log belongs; the label tree in the present application is preferably a template obtained through training that covers 7 key monitored categories: incorrect login password, successful login (password + key), login from non-allowed IP, password change, invalid user login, COMMAND dangerous operation category and sftp category.

[0069] Step 202: Determine whether the real-time data of the input system operation log matches the dangerous command template subset. If so, convert the real-time data of the input system operation log into a log template.

[0070] Step 203: quantizing the log template into template feature engineering;

[0071] Step 204: Input the template feature engineering into the system operation log monitoring model to monitor the system operation log; the system operation log monitoring model is obtained after training based on the template feature engineering sample data and the predetermined system operation log recognition result label.

[0072] Specifically, the step of inputting the template feature engineering into the system operation log monitoring model to implement monitoring of the system operation log includes:

[0073] Based on the autoregression principle, the true value of the previous moment is input into the intelligent baseline monitoring model as the intelligent baseline feature of the current moment to perform time series prediction, and the time series is used for anomaly identification.

[0074] At the same time, the template feature engineering is input into the anomaly detection model, and the template feature engineering corresponding to the system operation log is identified for its own form of anomaly from the mean change, variance change, detection peaks and valleys, and the decrease in amplitude exceeding the threshold within a preset time period. The above input into the intelligent baseline monitoring model and the input into the anomaly detection model are executed simultaneously, and any anomaly identified by any model is judged as an anomaly.

[0075] During the application of the system operation log monitoring method described in the above embodiment, the label tree model and the system operation log monitoring model can be continuously optimized through learning.

[0076] The embodiment of the present invention configures an intelligent baseline monitoring model (DeepAR) after quantifying the key monitored log template into feature engineering, which is used to input the real value of the previous moment as the intelligent baseline feature of the current moment into the intelligent baseline monitoring model based on the autoregressive principle to perform time series prediction, and the time series is used for abnormal identification. The DeepAR algorithm effect is evaluated by calculating SMAPE, and the 2min time series data is predicted with the 5min time series data. The evaluation effect shows that the DeepAR algorithm is suitable for the intelligent baseline prediction after the user's dangerous command operation log quantification index. And the intelligent baseline monitoring model is configured for the quantified index of the key monitoring template (that is, the template feature engineering), which realizes real-time user dangerous command operation monitoring and actively discovers user dangerous command operations through logs. In other words, according to the changes in the number of templates in the past few days, the time series data for a period of time in the future is predicted, and the upper and lower limits of the solution are obtained according to the hypothesis test. By comparing the number of logs corresponding to the real template in real time, it is compared with the upper and lower limits of the baseline. If it exceeds the upper and lower limits, it is abnormal.

[0077] The embodiment of the present invention adapts the upper and lower limits to the intelligent baseline after the quantified indicators of the user's dangerous command operation log, and corrects the upper and lower limit calculation method according to the problem that the upper and lower limits have opposite changing trends during the use of the model, thereby reducing the impact of local variance fluctuations and better identifying anomalies in the user's dangerous command operation log.

[0078] The embodiment of the present invention converts the system operation log into a log template through an online real-time matching method based on a label tree, and then quantifies it into a template feature engineering, intelligently monitors important user dangerous command operations, realizes intelligent full log template extraction, covers all user dangerous command operations, and quantifies the log template. Through the system operation log monitoring model, real-time monitoring of the system operation log is realized, and dangerous command operations are actively discovered, changing the passive way of troubleshooting dangerous commands, which can discover problems in advance and quickly reduce losses. The present invention can not only perform template training on the full log, generate a log template with wide coverage, and realize intelligent monitoring of the system operation log quantification; it can also perform intelligent template training on the unmatched system operation log, intelligently update the log template library, and the template coverage is wide. The real-time matching algorithm based on the label tree is more timely than the regular one, and the template clustering method can realize the aggregate analysis of massive system operation logs, reducing the workload of manual troubleshooting.

[0079] The system operation log monitoring device provided by the present invention is described below. The system operation log monitoring device described below and the system operation log monitoring method described above can be referenced to each other.

[0080] The embodiment of the present invention discloses a system operation log monitoring device, see Figure 3 ,include:

[0081] The real-time data conversion module 10 is used to convert the real-time data of the input system operation log into a log template based on a tag tree model;

[0082] The real-time data conversion module 10 realizes the rapid clustering of the operating system logs. Based on the label tree model, the real-time operating system logs are mapped to the corresponding template categories, and important dangerous command operations such as user authentication, COMMAND, and sftp are discovered in time to avoid risks. Compared with regular matching, it has super timeliness and higher matching accuracy than regular matching.

[0083] Specifically, the real-time data conversion module 10 is used for:

[0084] Perform real-time matching of the input real-time data of the system operation log with the subset of dangerous command templates corresponding to the label tree to which the real-time data of the system operation log belongs;

[0085] Determine whether the real-time data of the input system operation log matches the dangerous command template subset. If so, convert the real-time data of the input system operation log into a log template. The label tree indicates the type of dangerous operation log in the system operation log. Each label tree corresponds to a dangerous command template subset. Each dangerous command template subset contains multiple dangerous command templates. Whether the real-time data of the input system operation log matches the dangerous command template subset specifically refers to determining whether the real-time data of the system operation log is in the dangerous command template subset. If so, convert the real-time data of the input system operation log into a log template. If not in the dangerous command template subset, no consideration is required.

[0086] A log template quantization module 20, used for quantizing the log template into template feature engineering;

[0087] Among them, feature engineering includes text features, time series features, etc.

[0088] An operation log monitoring module 30, used to input the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log;

[0089] The label tree model is obtained after training based on system operation log sample data and predetermined log template labels;

[0090] During the training process of the label tree model, the context of the template is learned based on the annotated partial template labels, and labels are extracted for the full template. The system operation log sample data mainly uses user dangerous operation logs. First, the log is segmented, invalid words are filtered, and the word frequency is calculated. Then, the log templates are arranged in positive order, and the abnormal templates are annotated. Finally, BiLSTM-CRF label extraction is used to perform offline log-template matching and discard non-dangerous templates.

[0091] The label tree in this application is preferably a template obtained through training that covers 8 key monitoring categories: wrong login password, successful login (password + key), login from non-permitted IP, password change, invalid user login, COMMAND dangerous operation category and sftp category.

[0092] The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels.

[0093] The embodiment of the present invention configures an intelligent baseline monitoring model (DeepAR) after quantifying the key monitored log template into feature engineering, which is used to input the true value of the previous moment as the intelligent baseline feature of the current moment into the intelligent baseline monitoring model based on the autoregression principle to perform time series prediction, and the time series is used for anomaly identification. The effect of the DeepAR algorithm is evaluated by calculating SMAPE, and the 2-minute time series data is predicted with the 5-minute time series data. The evaluation result shows that the DeepAR algorithm is suitable for the intelligent baseline prediction after the user's dangerous command operation log is quantified. The intelligent baseline monitoring model is configured for the indicators after the key monitoring template is quantified (that is, the template feature engineering), which realizes real-time monitoring of user dangerous command operations and actively discovers user dangerous command operations through logs.

[0094] Furthermore, the real-time data conversion module includes:

[0095] A real-time matching unit, used for matching the input real-time data of the system operation log with the subset of dangerous command templates corresponding to the label tree to which the real-time data of the system operation log belongs in real time;

[0096] The conversion unit is used to determine whether the system operation log data matches the dangerous command template subset, and if so, convert the real-time data of the input system operation log into a log template.

[0097] According to the system operation log monitoring device provided by the present invention, the system operation log monitoring model includes:

[0098] The intelligent baseline monitoring model is used to input the true value of the previous moment as the intelligent baseline feature of the current moment into the intelligent baseline monitoring model based on the autoregression principle to perform time series prediction, and the time series is used for anomaly identification.

[0099] According to the system operation log monitoring device provided by the present invention, the system operation log monitoring model includes:

[0100] The anomaly detection model is used to identify anomalies of its own form through the template feature engineering corresponding to the system operation log from the perspective of mean change, variance change, peak and valley detection, and a decrease in amplitude exceeding a threshold within a preset time period.

[0101] The embodiment of the present invention adapts the upper and lower limits to the intelligent baseline after the quantified indicators of the user's dangerous command operation log, and corrects the upper and lower limit calculation method according to the problem that the upper and lower limits have opposite changing trends during the use of the model, thereby reducing the impact of local variance fluctuations and better identifying anomalies in the user's dangerous command operation log.

[0102] The system operation log monitoring model includes:

[0103] The anomaly detection model is used to identify the anomaly of its own form for the template feature engineering corresponding to the system operation log from the mean change, variance (jitter frequency) change, detection of peaks and valleys (spikes, deep valleys) and the decline in the preset time period exceeding the threshold. The anomaly detection model includes a multi-layer unsupervised anomaly detection model, a multi-layer supervised anomaly detection model, etc., which are existing models. The anomaly detection model can be divided into an unsupervised model, a semi-supervised model and a supervised model according to the distribution of its data samples. When the amount of labeled data is sufficient, supervised learning is preferred, and the effect is generally good; when there are only a few black samples, for example, second-tier Internet manufacturers with mature security teams should have some accumulation, and semi-supervised learning can be considered; when encountering a new security scenario, there is no sample data or the previously accumulated samples are invalid, only unsupervised learning can be used to solve the anomaly detection problem. When the anomaly is captured and the accumulated samples are manually reviewed to a certain amount, it can be converted to semi-supervised learning, and then supervised learning.

[0104] In the application process of the system operation log monitoring method, the label tree model and the system operation log monitoring model can be continuously optimized through learning.

[0105] The present invention converts the system operation log into a log template through an online real-time matching method based on a label tree, and then quantifies it into a template feature engineering, intelligently monitors important user dangerous command operations, realizes intelligent full log template extraction, covers all user dangerous command operations, and quantifies the log template. Through the system operation log monitoring model, real-time monitoring of the system operation log is realized, and dangerous command operations are actively discovered, changing the passive way of troubleshooting dangerous commands, which can discover problems in advance and quickly reduce losses. The present invention can not only perform template training on the full log, generate a log template with wide coverage, and realize intelligent monitoring of the system operation log quantification; it can also perform intelligent template training on the unmatched system operation log, intelligently update the log template library, and the template coverage is wide. The real-time matching algorithm based on the label tree is more timely than the regular one, and the template clustering method can realize the aggregate analysis of massive system operation logs, reducing the workload of manual troubleshooting.

[0106] Figure 4 An example of a physical structure diagram of an electronic device is provided, and the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430, and the method includes:

[0107] S1: Based on the tag tree model, the real-time data of the input system operation log is converted into a log template;

[0108] S2: quantizing the log template into template feature engineering;

[0109] S3: Input the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log;

[0110] The label tree model is obtained after training based on system operation log sample data and predetermined log template labels;

[0111] The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels.

[0112] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0113] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can execute a system operation log monitoring method, the method comprising:

[0114] S1: Based on the tag tree model, the real-time data of the input system operation log is converted into a log template;

[0115] S2: quantizing the log template into template feature engineering;

[0116] S3: Input the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log;

[0117] The label tree model is obtained after training based on system operation log sample data and predetermined log template labels;

[0118] The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels.

[0119] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, a system operation log monitoring method is implemented, the method comprising:

[0120] S1: Based on the tag tree model, the real-time data of the input system operation log is converted into a log template;

[0121] S2: quantizing the log template into template feature engineering;

[0122] S3: Input the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log;

[0123] The label tree model is obtained after training based on system operation log sample data and predetermined log template labels;

[0124] The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels.

[0125] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A system operation log monitoring method, characterized in that: include: Based on the tag tree model, the real-time data of the input system operation log is converted into a log template; Quantizing the log template into template feature engineering; Inputting the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log; The label tree model is obtained after training based on system operation log sample data and predetermined log template labels; The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels; The method of converting the input real-time data of the system operation log into a log template based on the tag tree model includes: Perform real-time matching of the input real-time data of the system operation log with the subset of dangerous command templates corresponding to the label tree to which the real-time data of the system operation log belongs; Determine whether it matches the dangerous command template subset. If so, convert the real-time data of the input system operation log into a log template; determining whether it matches the dangerous command template subset means determining whether the real-time data of the system operation log is in the dangerous command template subset.

2. The system operation log monitoring method according to claim 1, characterized in that: The step of inputting the template feature engineering into the system operation log monitoring model to implement monitoring of the system operation log includes: The template feature engineering is input into the intelligent baseline monitoring model. Based on the autoregression principle, the true value of the previous moment is input into the intelligent baseline monitoring model as the intelligent baseline feature of the current moment to perform time series prediction. The time series is used for anomaly identification.

3. The system operation log monitoring method according to claim 2, characterized in that: The step of inputting the template feature engineering into the system operation log monitoring model to implement monitoring of the system operation log includes: The template feature engineering is input into the anomaly detection model, and the template feature engineering corresponding to the system operation log is identified for its own morphological anomaly from the mean change, variance change, detection peaks and valleys, and the decrease in amplitude exceeding a threshold within a preset time period.

4. A system operation log monitoring device, characterized in that: include: The real-time data conversion module is used to convert the real-time data of the input system operation log into a log template based on the tag tree model; A log template quantization module, used for quantizing the log template into template feature engineering; An operation log monitoring module, used to input the template feature engineering into the system operation log monitoring model to realize monitoring of the system operation log; The label tree model is obtained after training based on system operation log sample data and predetermined log template labels; The system operation log monitoring model is obtained after training based on template feature engineering sample data and predetermined system operation log recognition result labels; The real-time data conversion module includes: A real-time matching unit, used for matching the input real-time data of the system operation log with the subset of dangerous command templates corresponding to the label tree to which the real-time data of the system operation log belongs in real time; The conversion unit is used to determine whether it matches the dangerous command template subset. If so, the real-time data of the input system operation log is converted into a log template; the determination of whether it matches the dangerous command template subset refers to determining whether the real-time data of the system operation log is in the dangerous command template subset.

5. The system operation log monitoring device according to claim 4, characterized in that: The system operation log monitoring model includes: The intelligent baseline monitoring model is used to input the real value of the previous moment as the intelligent baseline feature of the current moment into the intelligent baseline monitoring model based on the autoregression principle to perform time series prediction, and the time series is used for anomaly identification.

6. The system operation log monitoring device according to claim 5, characterized in that: The system operation log monitoring model includes: The anomaly detection model is used to identify anomalies of its own form from the template feature engineering corresponding to the system operation log of mean change, variance change, detection peak and valley, and the decline exceeding the threshold within a preset time period.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the system operation log monitoring method according to any one of claims 1 to 3 are implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the system operation log monitoring method as described in any one of claims 1 to 3 are implemented.