Log data management method, device, electronic device and readable storage medium
By obtaining and utilizing data correspondences based on historical log data to manage current log data, it solves the problem of lack of pertinence in log data management in existing technologies, and enables accurate analysis of log data in government departments and identification of attack behaviors. Effective prevention.
Patent Information
- Application Number
- CN202311347841.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-10-17
AI Technical Summary
Existing data governance methods lack pertinence when processing log data from government departments and cannot effectively respond to multiple attack methods, resulting in insufficiently accurate preventive measures.
By collecting the current log data of security devices and obtaining the data correspondence based on historical log data, the relationship prediction model is used to manage the current log data and determine its correspondence with security events, thereby achieving highly targeted data governance.
It improves the pertinence of data governance, can more accurately identify and respond to attack behaviors, and enhances the prevention capabilities of security equipment.
Smart Images

Figure CN117473225B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a log data management method, device, electronic device and readable storage medium. Background Art
[0002] With the development of network technology, data security has received more and more attention. In particular, government offices, as the main carrier of critical infrastructure, often face a variety of attack methods and their combinations, such as large-scale denial of service attacks, advanced sustained attacks, vulnerability exploits, phishing attacks, and supply chain attacks. If these attacks are successful, they will pose a fatal blow to critical information infrastructure.
[0003] Security equipment can effectively resist the above attacks. At present, by conducting relevant analysis on the log data of security equipment, the above attacks can be better prevented. However, due to the large amount of data in the government office, data governance of the log data is required before the relevant analysis is conducted to facilitate the completion of the analysis. However, the current data governance is generally achieved through fixed data lineage, which is a common data governance basis in the industry and is not targeted.
[0004] Therefore, a targeted solution is needed for data governance in practical applications. Summary of the invention
[0005] In view of this, the present application provides a log data management method, device, electronic device and readable storage medium, aiming to solve the technical problem of how to improve the targetedness of data management.
[0006] To achieve the above objectives, the present application provides a log data management method, which includes the following steps:
[0007] Collecting current log data of the security device and obtaining data correspondence; the data correspondence is determined based on historical log data before the current log data;
[0008] The current log data is managed based on the data correspondence.
[0009] Exemplarily, the acquiring data correspondence relationship includes:
[0010] The current log data is input into the relationship prediction model to obtain the data correspondence relationship; the relationship prediction model is obtained by iteratively training the training model based on the log training data set; the log training data set includes multiple historical log data.
[0011] Exemplarily, before inputting the current log data into the relationship prediction model to obtain the data corresponding relationship, the process includes:
[0012] Get the log training data set and the model to be trained;
[0013] Iteratively training the model to be trained based on the log training data set to obtain an updated model to be trained, and determining whether the updated model to be trained meets a preset iteration end condition;
[0014] If the updated model to be trained meets the preset iteration end condition, the updated model to be trained is used as the relationship prediction model;
[0015] If the updated model to be trained does not meet the iteration end condition, the step of iteratively training the model to be trained based on the log training data set is returned until the updated model to be trained meets the iteration end condition.
[0016] Exemplarily, the inputting the current log data into the relationship prediction model to obtain the data corresponding relationship includes:
[0017] Continue to obtain updated log data after the current log data;
[0018] When the update log data meets a preset condition, the relationship prediction model is updated based on the update log data.
[0019] Exemplarily, the acquiring data correspondence relationship includes:
[0020] Obtaining historical log data of the security device;
[0021] Extracting abnormal log data from the historical log data;
[0022] Perform correlation analysis on the abnormal log data to obtain data correspondence.
[0023] Exemplarily, the abnormal log data is in multiple copies, and the correlation analysis of the abnormal log data to obtain the data correspondence includes:
[0024] Determine the security device corresponding to each of the abnormal log data;
[0025] Taking security events as a dimension, counting the number of occurrences of the security device corresponding to each security event;
[0026] Based on the number of occurrences, determining a data correspondence relationship between each of the abnormal log data;
[0027] In the process of determining the data correspondence relationship of each of the abnormal log data, the operation of determining the data correspondence relationship of any of the abnormal log data is as follows:
[0028] Determine that the security event corresponding to the maximum number of occurrences is the target security event corresponding to any abnormal log data;
[0029] The target security event is associated with any of the abnormal log data to obtain a data correspondence relationship.
[0030] Exemplarily, one copy of the abnormal log data corresponds to one or more security events, and the correlation analysis of the abnormal log data to obtain the data correspondence includes:
[0031] Obtain the government department factor corresponding to each of the abnormal log data;
[0032] Match each of the government department factors to obtain one or more corresponding target security events;
[0033] Each of the target security events is associated with the corresponding abnormal log data to obtain a data correspondence relationship.
[0034] Exemplarily, to achieve the above purpose, the present application also provides a log data management device, the log data management device comprising:
[0035] A collection module, used to collect current log data of the security device and obtain data correspondence; the data correspondence is determined based on historical log data before the current log data;
[0036] A management module is used to manage the current log data based on the data correspondence.
[0037] Exemplarily, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and a log data management program stored in the memory and executable on the processor, wherein the log data management program is configured to implement the steps of the log data management method as described above.
[0038] Exemplarily, to achieve the above purpose, the present application also provides a computer-readable storage medium, on which a log data management program is stored, and when the log data management program is executed by a processor, the steps of the log data management method described above are implemented.
[0039] In the embodiment of the present application, the current log data is managed through the data correspondence, and the data correspondence is determined by the historical log data before the current log data, rather than a fixed data lineage. Since the historical log data reflects some characteristics of the security device corresponding to the current log data, the data correspondence is corresponding to the security device, rather than the general data management basis in the industry, that is, the embodiment of the present application improves the pertinence of data management. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a flow chart of the first embodiment of the log data management method of this application;
[0041] Figure 2 This is a flow chart of the second embodiment of the log data management method of this application;
[0042] Figure 3 This is a flow chart of the third embodiment of the log data management method of this application;
[0043] Figure 4 This is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present application.
[0044] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0045] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] This application provides a log data management method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the log data management method of the present application.
[0047] The embodiments of the present application provide embodiments of the log data governance method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here. The log data governance method is applied to electronic devices, including but not limited to terminal devices and servers. A government big data platform runs on the electronic device, which collects videos from government departments, social organizations, the Internet, etc., as well as information resources such as sensing devices, social media, and positioning information, and processes the collected multi-source heterogeneous data, thereby providing a big data application environment for cross-departmental, cross-system, and cross-business linkage at the city level, and providing technical support for the integration and innovation of government and social information resources, and government-civilian interaction, promoting the upgrade of e-government to "smart government", and forming a new government operation model characterized by thorough perception, rapid response, fine management, scientific decision-making, business linkage, and proactive service. The embodiments of the present application focus on the governance of collected multi-source heterogeneous data. The log data governance method includes:
[0048] Step S110 , collecting current log data of the security device and obtaining data correspondence; the data correspondence is determined based on historical log data before the current log data.
[0049] It should be noted that the security equipment corresponds to government departments, that is, different government departments have their own security equipment. Government departments generally include government affairs, transportation, land, education, medical care, tourism, culture, environmental ecology, e-commerce, communications, etc. Accordingly, through the business data of these government departments, it can provide support for the city operation indicator system, public credit evaluation, population flow analysis, regulatory risk warning, market price analysis, government public opinion monitoring, traffic flow forecasting, business environment optimization, urban layout adjustment, public safety behavior analysis, etc.
[0050] Among them, security equipment can effectively prevent the theft of government information, interference with government operations, and even the destruction of infrastructure. The security equipment includes but is not limited to hardware firewalls, software firewalls, cloud firewalls, intrusion detection, database firewalls, intrusion prevention, and log auditing.
[0051] The current log data is the log data of the security device collected in real time, and the historical log data is the log data of the security device collected before the current log data is collected.
[0052] The log data is information generated by the security device to record network communication activities, including but not limited to: 1. Source IP address and destination IP address, wherein the log data will provide the source IP address and destination IP address related to the network communication, which can be used to determine the source and destination of the communication; 2. Timestamp, wherein each log data should contain a timestamp to determine the specific time when the abnormal event occurred; 3. Communication protocol, wherein the log data can indicate the communication protocol used, which includes but is not limited to TCP (Transmission Control Protocol), UDP (User Datagram Protocol) or ICMP (Internet Control Message Protocol). MessageProtocol, Network Control Message Protocol); 4. Port number, where the log data can record the source port and destination port, which is very important for determining the specific service or application used when the network communication is in progress; 5. Action, where the log data can indicate the action performed on the network communication, which action includes but is not limited to allow, deny or discard; 6. Rules or policies, where the log data can provide information about which firewall rules or policies match specific network communications; 7. Packet size, where the log data may contain information about the size of the transmitted packets, which may be useful for detecting abnormal traffic or network attacks; 8. Abnormal events, where if the firewall detects abnormal activity, which includes but is not limited to intrusion attempts or rejected malicious traffic, the log data may record these abnormal events.
[0053] Among them, the data correspondence is the correspondence between the current log data and the security event, which is caused by the above-mentioned attack. For example, if the medical system in a government department is attacked and the medical-related data is successfully stolen, it may trigger a medical fraud security incident. Correspondingly, the security equipment of the medical department may record the log data before the security incident occurs, so there may be a data correspondence between the current log data of the security equipment and the security incident of medical fraud. However, since medical-related data may also be used by attackers for other security incidents, it cannot be directly determined that the security incident of medical fraud must correspond to the current log data of the security equipment of the medical department.
[0054] Step S120: managing the current log data based on the data correspondence.
[0055] The function of data governance is to provide guidance for managing data as an asset. Its core is the allocation of decision-making power and division of responsibilities for data asset management. In general, data governance is to improve data quality and maximize the value of data assets while reducing risks. Data governance usually includes: building a flexible, standardized, and modular multi-source heterogeneous data resource access system; building a standardized, process-based, and intelligent data processing system; creating a refined data governance system and an organizational data resource integration and classification system; and building a unified scheduling, precise service, and safe and available information sharing service system.
[0056] It should be noted that the embodiments of the present application are aimed at creating a refined data governance system and an organizational data resource fusion classification system. That is, governing the current log data based on the data correspondence is essentially classifying the current log data in the dimension of security events, that is, determining the attribution of the current log data in security events.
[0057] It should be noted that the governed data can be used for security evaluation, that is, scoring security equipment to determine the security level of the security equipment; or for tracking the source of the attack.
[0058] It can be understood that in the embodiment of the present application, the current log data is managed through the data correspondence, and the data correspondence is determined by the historical log data before the current log data, rather than a fixed data lineage. Since the historical log data reflects some characteristics of the security device corresponding to the current log data, the data correspondence is corresponding to the security device, rather than the general data management basis in the industry, that is, the embodiment of the present application improves the pertinence of data management.
[0059] In order to clarify the data correspondence relationship, so that the current log data with the determined data correspondence relationship can be better utilized in the subsequent process, the present application embodiment proposes three ways to clarify the data correspondence relationship.
[0060] Method 1: Based on the above first embodiment, a second embodiment of the log data management method of this application is proposed, referring to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the log data management method of this application. In the second embodiment, the acquisition of data correspondence includes:
[0061] Step S220, input the current log data into the relationship prediction model to obtain the data correspondence; the relationship prediction model is obtained by iteratively training the training model based on the log training data set; the log training data set includes multiple historical log data.
[0062] In this embodiment, the model to be trained can be constructed by algorithms such as random forest, artificial neural network or support vector machine. Taking random forest as an example, random forest is a forest established in a random manner. The forest consists of multiple decision trees. There is no correlation between the decision trees. After the current log data is input into the random forest, each decision tree independently classifies the current log data, and then determines the expected security event according to the probability corresponding to each security event. For example, the security events include security event 1, security event 2 and security event 3. After the corresponding medical path characteristics to be classified are input into the random forest, the probability of security event 1 is 80%, the probability of security event 2 is 14%, and the probability of security event 3 is 6%. It can be determined that the probability of security event 1 is the largest, that is, the expected security event is security event 1. Correspondingly, the data correspondence is that there is a corresponding relationship between the current log data and security event 1.
[0063] It should be noted that the model prediction process is an automated process, and its prediction results have a higher accuracy rate compared to manually determining the data correspondence.
[0064] Furthermore, before obtaining the relationship prediction model, it includes: obtaining a log training data set and obtaining a model to be trained; iteratively training the model to be trained based on the training data set to obtain an updated model to be trained, and determining whether the updated model to be trained meets a preset iteration end condition; iteratively training the model to be trained based on the log training data set to obtain an updated model to be trained, and determining whether the updated model to be trained meets a preset iteration end condition; if the updated model to be trained meets the preset iteration end condition, the updated model to be trained is used as the relationship prediction model; if the updated model to be trained does not meet the iteration end condition, returning to the step of iteratively training the model to be trained based on the log training data set until the updated model to be trained meets the iteration end condition.
[0065] In this embodiment, the model to be trained is iteratively trained based on the log training data set to obtain an updated model to be trained, and it is determined whether the updated model to be trained meets the preset iteration end condition; if the updated model to be trained meets the preset iteration end condition, the updated model to be trained is used as the relationship prediction model; if the updated model to be trained does not meet the iteration end condition, the updated model to be trained continues to be iteratively trained and updated until the updated model to be trained meets the iteration end condition.
[0066] Specifically, the model to be trained is iteratively trained using the log training data set to obtain an updated model to be trained. Each time after obtaining the updated model to be trained, it is determined whether the updated model to be trained meets the preset iteration end condition. If the updated model to be trained meets the preset iteration end condition, the iteration ends, and the last updated model to be trained is used as the relationship prediction model; if the updated model to be trained does not meet the iteration end condition, it means that the updated model to be trained does not meet the use condition, and the updated model to be trained continues to be iteratively trained and updated until the updated model to be trained meets the iteration end condition.
[0067] It should be noted that iterative training is a process of training the model to be trained multiple times using historical log data in the log training data set. Generally, obtaining the relationship prediction model from the model to be trained requires multiple rounds of training and updating. It should be noted that the preset iteration end condition is that the iteration ends when the prediction accuracy of the input model to be trained or the updated model to be trained reaches the preset accuracy threshold.
[0068] It should be noted that in addition to the log training data set, the log test data set is also needed in the model training process, where the data volume between the log training data set and the log test data set is in a certain ratio, such as 9:1, 7:3, etc.
[0069] It should be noted that, for the iterative training process, in order to improve the sensitivity of the relationship prediction model, the model to be trained can be trained multiple times. Specifically, the iterative training process consists of multiple trainings and multiple tests, for example, training 10 times and then testing once, and the training and testing process is repeated until the iteration ends.
[0070] Furthermore, in order to ensure the accuracy of the prediction results of the relationship prediction model, the current log data is input into the relationship prediction model, and after obtaining the data correspondence, it includes: continuously obtaining the updated log data after the current log data; when the updated log data meets the preset conditions, updating the relationship prediction model based on the updated log data.
[0071] It can be understood that the update log data is the log data of the security device collected after the current log data is collected. The process of updating the relationship prediction model through the update log data is basically the same as the process of training the relationship prediction model through the historical log data, which will not be repeated here.
[0072] It is understandable that security incidents may be updated over time, that is, the business data of a government department may be used by attackers for other purposes, resulting in other security incidents. Therefore, by continuously obtaining updated log data after the current log data, it is helpful to ensure the accuracy of the prediction results of the relationship prediction model.
[0073] For Method 2 and Method 3:
[0074] Based on the above first embodiment, a third embodiment of the log data management method of the present application is proposed, referring to Figure 3 , Figure 3 This is a flow chart of the third embodiment of the log data management method of this application. In the third embodiment, the acquisition of data correspondence includes:
[0075] Step S310, obtaining historical log data of the security device;
[0076] Step S320, extracting abnormal log data from the historical log data;
[0077] Step S330, performing correlation analysis on the abnormal log data to obtain data correspondence.
[0078] It should be noted that the historical log data includes normal log data and abnormal log data, wherein the normal log data does not record abnormal events, while the abnormal log data does record abnormal events. It is understandable that if the abnormal event is not discovered by the security device, it means that the attacker's attack is successful. Therefore, there is a corresponding relationship between abnormal log data and security events, while there is no corresponding relationship between normal log data and security events, that is, there is no need to perform correlation analysis through normal log data, that is, only performing correlation analysis through abnormal log data can improve the analysis efficiency of correlation analysis.
[0079] In one embodiment, the association analysis of the abnormal log data to obtain the data correspondence relationship includes: determining the security device corresponding to each of the abnormal log data; taking the security event as the dimension, counting the number of occurrences of the security device corresponding to each of the security events; determining the data correspondence relationship of each of the abnormal log data based on the number of occurrences; in the process of determining the data correspondence relationship of each of the abnormal log data, the operation of determining the data correspondence relationship of any of the abnormal log data is as follows: determining the security event corresponding to the largest number of occurrences as the target security event corresponding to any of the abnormal log data; associating the target security event with any of the abnormal log data to obtain a data correspondence relationship.
[0080] In the embodiment of the present application, the security event corresponding to the abnormal log data is determined by the number of occurrences, and then the data correspondence is obtained. Among them, the business data that may cause the security event is known, and accordingly, there is a definite correspondence between the security device corresponding to the business data and the security event, that is, there is a definite correspondence between the abnormal log data of the security device and the security event.
[0081] It should be noted that there may be a corresponding relationship between abnormal log data and multiple security events. In order to facilitate subsequent analysis, the security event with the largest number of occurrences can be determined from the multiple security events as the target security event. It can be understood that the greater the number of occurrences, the stronger the correlation between the abnormal log data and the target security event, and accordingly, the higher the analysis value.
[0082] In another embodiment, a copy of the abnormal log data corresponds to one or more security incidents, and the correlation analysis of the abnormal log data to obtain the data correspondence includes: obtaining the government department factor corresponding to each of the abnormal log data; matching each of the government department factors to obtain the corresponding one or more target security incidents; and associating each of the target security incidents with the corresponding abnormal log data to obtain the data correspondence.
[0083] The government office factor is a unique identifier of the government office. In the embodiment of the present application, as long as the abnormal log data is associated with the security event, the abnormal log data is associated with the corresponding security event, which is conducive to a comprehensive analysis of the security event.
[0084] In addition, it should be noted that when an attacker attacks a government office, he may attack multiple government offices at the same time in order to achieve the corresponding purpose. For the security incidents corresponding to this situation, after obtaining the data correspondence and determining the corresponding security incidents, when conducting data governance, you can also directly and quickly obtain the current log data of the security equipment of other government offices through the determined security incidents and the association between other government offices. Therefore, during data governance, the current log data of the other government offices and the current log data of the current government office are bound. Therefore, in the subsequent data application process, joint analysis can be performed to accurately determine the purpose of the attack and better determine the source of the attack.
[0085] In addition, the present application also provides a log data management device, which includes:
[0086] A collection module, used to collect current log data of the security device and obtain data correspondence; the data correspondence is determined based on historical log data before the current log data;
[0087] A management module is used to manage the current log data based on the data correspondence.
[0088] Exemplarily, the acquisition module is specifically used for:
[0089] The current log data is input into the relationship prediction model to obtain the data correspondence relationship; the relationship prediction model is obtained by iteratively training the training model based on the log training data set; the log training data set includes multiple historical log data.
[0090] Exemplarily, the log data management device also includes:
[0091] The first acquisition module is used to acquire a log training data set and a model to be trained;
[0092] A training module is used to iteratively train the model to be trained based on the log training data set to obtain an updated model to be trained, and determine whether the updated model to be trained meets a preset iteration end condition; if the updated model to be trained meets the preset iteration end condition, the updated model to be trained is used as the relationship prediction model; if the updated model to be trained does not meet the iteration end condition, return to the iterative training step of the model to be trained based on the log training data set until the updated model to be trained meets the iteration end condition.
[0093] Exemplarily, the log data management device also includes:
[0094] The second acquisition module is used to continuously acquire update log data after the current log data;
[0095] An updating module is used to update the relationship prediction model based on the update log data when the update log data meets a preset condition.
[0096] Exemplarily, the acquisition module is specifically used for:
[0097] Obtaining historical log data of the security device;
[0098] Extracting abnormal log data from the historical log data;
[0099] Perform correlation analysis on the abnormal log data to obtain data correspondence.
[0100] Exemplarily, the abnormal log data is in multiple copies, and the collection module is specifically used for:
[0101] Determine the security device corresponding to each of the abnormal log data;
[0102] Taking security events as a dimension, counting the number of occurrences of the security device corresponding to each security event;
[0103] Based on the number of occurrences, determining a data correspondence relationship between each of the abnormal log data;
[0104] In the process of determining the data correspondence relationship of each of the abnormal log data, the operation of determining the data correspondence relationship of any of the abnormal log data is as follows:
[0105] Determine that the security event corresponding to the maximum number of occurrences is the target security event corresponding to any abnormal log data;
[0106] The target security event is associated with any of the abnormal log data to obtain a data correspondence relationship.
[0107] Exemplarily, one piece of abnormal log data corresponds to one or more security events, and the collection module is specifically used to:
[0108] Obtain the government department factor corresponding to each of the abnormal log data;
[0109] Match each of the government department factors to obtain one or more corresponding target security events;
[0110] Each of the target security events is associated with the corresponding abnormal log data to obtain a data correspondence relationship.
[0111] The specific implementation of the log data management device of the present application is basically the same as the various embodiments of the log data management method described above, and will not be repeated here.
[0112] In addition, the present application also provides an electronic device. Figure 4 As shown, Figure 4 It is a structural diagram of the hardware operating environment involved in the embodiment of the present application.
[0113] like Figure 4 As shown, the electronic device may include a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 communicate with each other via the communication bus 404, the memory 403 is used to store computer programs; the processor 401 is used to implement the steps of the log data management method when executing the program stored in the memory 403.
[0114] The communication bus 404 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 404 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0115] The communication interface 402 is used for communication between the electronic device and other devices.
[0116] The memory 403 may include a random access memory (RMD) or a non-volatile memory (NM), such as at least one disk memory. Optionally, the memory 403 may also be at least one storage device located away from the processor 401.
[0117] The above-mentioned processor 401 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0118] The specific implementation method of the electronic device of the present application is basically the same as the above-mentioned embodiments of the log data management method, and will not be repeated here.
[0119] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a log data management program is stored. When the log data management program is executed by a processor, the steps of the log data management method described above are implemented.
[0120] The specific implementation method of the computer-readable storage medium of the present application is basically the same as the various embodiments of the above-mentioned log data management method, and will not be repeated here.
[0121] It should be noted that, in this article, the terms "comprises", "includes" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element. The terms "first" and "second" are only used for distinction and do not represent other meanings. For example, the first characteristic information and the second characteristic information are both characteristic information.
[0122] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0124] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A log data management method, characterized in that: The log data management method comprises the following steps: Collecting current log data of the security device and obtaining data correspondence; the data correspondence is determined based on historical log data before the current log data; The obtaining of data correspondence relationship includes: Obtaining historical log data of the security device; Extracting abnormal log data from the historical log data; Performing correlation analysis on the abnormal log data to obtain data correspondence; The abnormal log data is multiple copies, and the association analysis is performed on the abnormal log data to obtain the data correspondence, including: Determine the security device corresponding to each of the abnormal log data; Taking security events as a dimension, counting the number of occurrences of the security device corresponding to each security event; Based on the number of occurrences, determining a data correspondence relationship between each of the abnormal log data; In the process of determining the data correspondence relationship of each of the abnormal log data, the operation of determining the data correspondence relationship of any of the abnormal log data is as follows: Determine that the security event corresponding to the largest number of occurrences is the target security event corresponding to any one of the abnormal log data, wherein the security event corresponding to the largest number of occurrences indicates that the abnormal log data has the strongest correlation with the target security event; Associating the target security event with any abnormal log data to obtain a data correspondence relationship; The current log data is managed based on the data correspondence.
2. The log data management method according to claim 1, characterized in that: The obtaining of data correspondence relationship includes: The current log data is input into the relationship prediction model to obtain the data correspondence relationship; the relationship prediction model is obtained by iteratively training the training model based on the log training data set; the log training data set includes multiple historical log data.
3. The log data management method according to claim 2, characterized in that: Before inputting the current log data into the relationship prediction model to obtain the data corresponding relationship, the method includes: Get the log training data set and the model to be trained; Iteratively training the model to be trained based on the log training data set to obtain an updated model to be trained, and determining whether the updated model to be trained meets a preset iteration end condition; If the updated model to be trained meets the preset iteration end condition, the updated model to be trained is used as the relationship prediction model; If the updated model to be trained does not meet the iteration end condition, the step of iteratively training the model to be trained based on the log training data set is returned until the updated model to be trained meets the iteration end condition.
4. The log data management method according to claim 2, characterized in that: After inputting the current log data into the relationship prediction model and obtaining the data corresponding relationship, the method includes: Continue to obtain updated log data after the current log data; When the update log data meets a preset condition, the relationship prediction model is updated based on the update log data.
5. The log data management method according to claim 1, characterized in that: One copy of the abnormal log data corresponds to one or more security events, and the correlation analysis of the abnormal log data to obtain the data correspondence relationship includes: Obtain the government department factor corresponding to each of the abnormal log data; Match each of the government department factors to obtain one or more corresponding target security events; Each of the target security events is associated with the corresponding abnormal log data to obtain a data correspondence relationship.
6. A log data management device, characterized in that: The log data management device comprises: Collection module, used to collect current log data of security devices A data acquisition module, used to acquire historical log data of the security device; An extraction module, used for extracting abnormal log data from the historical log data; A determination module, used to determine the security device corresponding to each of the abnormal log data; A statistics module, used to count the number of occurrences of the security device corresponding to each security event based on the security event as a dimension; A security event determination module, used to determine that the security event corresponding to the largest number of occurrences is a target security event corresponding to any abnormal log data, wherein the security event corresponding to the largest number of occurrences indicates that the abnormal log data has the strongest correlation with the target security event; An association module, used to associate the target security event with any abnormal log data to obtain a data correspondence relationship; A management module is used to manage the current log data based on the data correspondence.
7. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a log data management program stored in the memory and executable on the processor, wherein the log data management program is configured to implement the steps of the log data management method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a log data management program, and when the log data management program is executed by a processor, the steps of the log data management method according to any one of claims 1 to 5 are implemented.
