Report file processing method, device, storage medium and processor
By obtaining and comparing the encoding information of historical and target report files, the problem of inability to automatically compare intranet security risk reports is solved, automatic periodic comparison is achieved, and the analysis efficiency of the report is improved.
Patent Information
- Application Number
- CN202111583682.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-22
AI Technical Summary
Existing technology cannot realize automatic cycle comparison of intranet security risk reports. Users need to manually open and view the report files of two cycles for comparison.
By obtaining the encoding information of the historical report file in the historical task, the historical report data is obtained and compared with the target data, and the comparison results are displayed to achieve automatic cycle comparison.
Automatic cycle comparison of intranet security risk reports is realized, reducing manual operations and improving efficiency.
Smart Images

Figure CN114301654B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data analysis, and in particular to a method, device, storage medium and processor for processing a report file. Background Art
[0002] On the intranet security device, a method for generating an intranet security risk report by using a report template is as follows:
[0003] 1. Pre-set multiple default report templates and display them to users;
[0004] 2. Support user-defined configuration report templates;
[0005] 3. The user customizes the report generation task and determines the report template to be used and the report generation time, whether it is immediate or scheduled (weekly / monthly / quarterly, etc.);
[0006] 4. The system generates reports corresponding to the templates and parameters immediately or periodically according to the templates and related parameters of the report tasks configured by the user;
[0007] 5. Users can also edit, delete, enable or disable their configured report tasks;
[0008] 6. All report files generated by report tasks are stored in the system and users can view or download them online.
[0009] Through the above technology, it is possible to generate intranet security risk reports on a regular and periodic basis, but the automatic periodic report comparison function is not realized; if the user wants to perform a periodic comparison on the periodically generated intranet security risk report files, it is necessary to open and view the report files of the two periods for manual comparison.
[0010] With regard to the problem that the automatic comparison of periodic reports cannot be achieved in the related art, no effective solution has been proposed yet. Summary of the invention
[0011] The main purpose of the present application is to provide a report file processing method, device, storage medium and processor to solve the problem that automatic comparison of periodic reports cannot be achieved in the related art.
[0012] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for processing a report file is provided. The method comprises: obtaining the coding information corresponding to the historical report file in the historical task, wherein the historical task is the previous task of the current task, and the current task generates the target report file according to the preset period, wherein the report file is a file for analyzing the network threat data; obtaining the historical report data according to the coding information; comparing the historical report data with the target data to obtain the comparison result, wherein the target data is one of the data required to execute the current task; and displaying the comparison result in the target report file.
[0013] Furthermore, obtaining historical report data according to the coding information includes: detecting whether there is coding information in the configuration information of the historical task; if there is coding information, determining whether there is a historical report file corresponding to the coding information; if the historical report file corresponding to the coding information exists, obtaining historical report data according to the historical report file.
[0014] Furthermore, before presenting the comparison result in the target report file, the method further includes: determining comparison data according to the comparison result, wherein the comparison data includes at least: differential data between the historical report data and the target data; and generating the target report file according to the comparison data and the target data.
[0015] Furthermore, obtaining the coding information corresponding to the historical report file in the historical task includes: obtaining the configuration information of the historical task, wherein the configuration information at least includes: the parameter information of the historical task, wherein the parameter information at least includes: the historical task name, the coding information corresponding to the historical report file in the historical task; determining the coding information corresponding to the historical report file according to the configuration information.
[0016] Furthermore, after displaying the comparison result in the target report file, the method further includes: obtaining target coding information corresponding to the target report file; and updating the configuration information of the current task according to the target coding information.
[0017] Furthermore, the historical tasks and the current tasks are executed according to a preset cycle, wherein the preset cycle includes at least one of the following: a cycle preset according to a weekly time, a cycle preset according to a monthly time, and a cycle preset according to a quarterly time.
[0018] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a report file processing device is provided. The device includes: a first acquisition unit, used to acquire the coding information corresponding to the historical report file in the historical task, wherein the historical task is the previous task of the current task, and the current task generates the target report file according to the preset period, wherein the report file is a file for analyzing the network threat data; a second acquisition unit, used to acquire the historical report data according to the coding information; a comparison unit, used to compare the historical report data with the target data to obtain a comparison result, wherein the target data is one of the data required to execute the current task; and a display unit, used to display the comparison result in the target report file.
[0019] Furthermore, the second acquisition unit includes: a detection module, used to detect whether there is coding information in the configuration information of the historical task; a judgment module, used to judge whether there is a historical report file corresponding to the coding information if there is coding information; and a first acquisition module, used to obtain historical report data according to the historical report file if the historical report file corresponding to the coding information exists.
[0020] Furthermore, the device also includes: a determination unit, used to determine comparison data based on the comparison results before displaying the comparison results in the target report file, wherein the comparison data at least includes: differential data between the historical report data and the target data; and a generation unit, used to generate a target report file based on the comparison data and the target data.
[0021] Furthermore, the first acquisition unit includes: a second acquisition module, used to obtain configuration information of historical tasks, wherein the configuration information at least includes: parameter information of historical tasks, wherein the parameter information at least includes: the name of the historical task, and the coding information corresponding to the historical report file in the historical task; a determination module, used to determine the coding information corresponding to the historical report file according to the configuration information.
[0022] Furthermore, the device also includes: a third acquisition unit, used to acquire target coding information corresponding to the target report file after displaying the comparison result in the target report file; and an update unit, used to update the configuration information of the current task according to the target coding information.
[0023] Furthermore, the historical tasks and the current tasks are executed according to a preset cycle, wherein the preset cycle includes at least one of the following: a cycle preset according to a weekly time, a cycle preset according to a monthly time, and a cycle preset according to a quarterly time.
[0024] According to another aspect of an embodiment of the present application, a processor is further provided, and the processor is used to run a program, wherein any one of the above methods is executed when the program is run.
[0025] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, any one of the above methods is performed.
[0026] Through this application, the following steps are adopted: obtaining the coding information corresponding to the historical report file in the historical task, wherein the historical task is the previous task of the current task, and the current task generates the target report file according to the preset period, wherein the report file is a file for analyzing network threat data; obtaining the historical report data according to the coding information; comparing the historical report data with the target data to obtain the comparison result, wherein the target data is one of the data required to perform the current task; and displaying the comparison result in the target report file. The problem that the automatic comparison of periodic reports cannot be achieved in the related art is solved. By comparing the historical report data with the target data and displaying the comparison result in the target report file, the effect of realizing the automatic comparison of periodic reports is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0028] Figure 1 is a flowchart of a method for processing a report file provided in an embodiment of the present application;
[0029] Figure 2 It is an overall operation flow chart of the method for processing a report file provided in an embodiment of the present application;
[0030] Figure 3 This is an example of a target report file according to the method for processing a report file provided in an embodiment of the present application. Figure 1 ;
[0031] Figure 4 This is an example of a target report file according to the method for processing a report file provided in an embodiment of the present application. Figure 2 ;
[0032] Figure 5 This is an example of a target report file according to the method for processing a report file provided in an embodiment of the present application. Figure 3 ;
[0033] Figure 6 This is an example of a target report file according to the method for processing a report file provided in an embodiment of the present application. Figure 4 ;
[0034] Figure 7 It is a schematic diagram of a report file processing device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0038] According to an embodiment of the present application, a method for processing a report file is provided.
[0039] Figure 1 1 is a flowchart of a method for processing a report file according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0040] Step S101, obtaining coding information corresponding to a historical report file in a historical task, wherein the historical task is a previous task of a current task, and the current task generates a target report file according to a preset period, wherein the report file is a file for analyzing network threat data.
[0041] For example, obtain the ID number corresponding to the historical report file of the enterprise intranet threat data last week (corresponding to the coding information in this application), where the historical report file is generated by the historical task of last week, that is, if the current task is executed on Monday this week, then the historical task is executed based on the previous cycle of the current task execution (that is, last Monday).
[0042] Optionally, in the report file processing method provided in the embodiment of the present application, historical tasks and current tasks are executed according to a preset cycle, wherein the preset cycle includes at least one of the following: a cycle preset according to a weekly time, a cycle preset according to a monthly time, and a cycle preset according to a quarterly time.
[0043] Specifically, a periodic task is created in a manner of generating a report file every Monday, wherein the periodic task includes at least historical tasks and current tasks. For example, historical tasks and current tasks generate an analysis report on the enterprise intranet threat data according to a preset cycle, wherein the periodic task can also generate report files on a quarterly or monthly basis, further reflecting the periodic diversity of the threat data risk assessment of this application and improving the user experience.
[0044] Step S102, obtaining historical report data according to the coding information.
[0045] For example, when the user configures the report file task to be generated periodically, an ID parameter is added to the configuration item of the background task to mark the ID number of the report file most recently generated by the periodic task.
[0046] Optionally, in the report file processing method provided in the embodiment of the present application, obtaining historical report data based on coding information includes: detecting whether coding information exists in the configuration information of the historical task; if coding information exists, determining whether a historical report file corresponding to the coding information exists; if the historical report file corresponding to the coding information exists, obtaining historical report data based on the historical report file.
[0047] For example, Figure 2 is an overall operation flow chart of the method for processing a report file provided in an embodiment of the present application, such as Figure 2 As shown, the historical task of the previous cycle for generating the enterprise intranet threat data analysis report is obtained, and the ID parameter value (that is, the ID number) of the configuration information in the historical task is checked. If the ID number exists, it is determined whether the historical report file of last week for analyzing the enterprise intranet threat data exists. If it exists, the data of last week's report file is obtained. If the ID number does not exist, or the report file of the ID cannot be queried (the possible reason is that the report file is manually deleted), no period comparison is performed, and the report file of this period is directly generated. For example, by searching the report file ID parameter, the period comparison of the intranet security risk report is automatically realized, which further liberates manpower and allows users to devote more time to dealing with intranet risks.
[0048] Optionally, in the report file processing method provided in the embodiment of the present application, obtaining the coding information corresponding to the historical report file in the historical task includes: obtaining the configuration information of the historical task, wherein the configuration information at least includes: parameter information of the historical task, wherein the parameter information at least includes: the historical task name, the coding information corresponding to the historical report file in the historical task; determining the coding information corresponding to the historical report file according to the configuration information.
[0049] Specifically, by acquiring the configuration information of the historical tasks of the enterprise intranet threat data, the encoding information corresponding to the historical report file is obtained, thereby improving the efficiency of subsequent comparison of the report files in adjacent periods.
[0050] Step S103, comparing the historical report data with the target data to obtain a comparison result, wherein the target data is one of the data required to perform the current task.
[0051] Step S104: display the comparison result in a target report file.
[0052] Specifically, Figure 2 As shown, the data of this cycle (ie, the cycle of the current task) is compared with the data in the report file of the previous cycle, and the report file of this cycle, ie, the target report file, is determined according to the comparison result.
[0053] Optionally, in the report file processing method provided in the embodiment of the present application, before displaying the comparison results in the target report file, the method also includes: determining comparison data based on the comparison results, wherein the comparison data includes at least: differential data between the historical report data and the target data; generating a target report file based on the comparison data and the target data.
[0054] For example, the present application can also obtain the historical report file generated by the previous cycle of the task through the value of the ID parameter of the periodic task (corresponding to the current task in the present application) in the background, and implement the two report files in the background, that is, compare the data of the two cycles, to obtain the compared data.
[0055] For example, Figure 3 This is an example of a target report file according to the method for processing a report file provided in an embodiment of the present application. Figure 1 ,like Figure 3 As shown, the data of threat events, number of vulnerabilities, risk servers, risk terminals and number of work orders in this period in the target report file are displayed, as well as the comparison results with the historical report file of the previous period.
[0056] For example, Figure 4 This is an example of a target report file according to the method for processing a report file provided in an embodiment of the present application. Figure 2 ,like Figure 4 As shown, a vulnerability distribution map of threat data of the current task cycle report file is displayed, wherein the threat distribution map of threat data includes external threats, lateral threats, external threats, etc.
[0057] For example, Figure 5 This is an example of a target report file according to the method for processing a report file provided in an embodiment of the present application. Figure 3 ,like Figure 5 As shown, a vulnerability distribution map of threat data of the current task cycle report file is displayed, wherein the vulnerability distribution map of threat data includes severe threats, high-risk threats, medium-risk threats, low-risk threats, etc.
[0058] For example, Figure 6 This is an example of a target report file according to the method for processing a report file provided in an embodiment of the present application. Figure 4 , among which, Figure 6 As shown, the server security status distribution diagram of the current task cycle report file is displayed. The server security status distribution diagram includes serious threats, high-risk threats, medium-risk threats, low-risk threats, etc.
[0059] Specifically, in the periodic report file generated by the periodic reporting task of this application, not only the number of intranet threat events, risk servers, and risk terminals within this period is displayed, but also the comparison results between this period and the previous period are more intuitively displayed, providing convenience for users to use and analyze periodic reports.
[0060] For example, if the number of threat events and risk assets in the intranet security risk report of this cycle has increased significantly compared to the previous cycle, it means that there is an abnormal situation in the intranet and the user needs to investigate and resolve the risk assets. After the user handles it, if the number of threat events and risk assets in the intranet security risk report of the next cycle has decreased compared to this cycle, it means that the user's previous handling is effective and further improves the defense capability against threat data.
[0061] Optionally, in the report file processing method provided in the embodiment of the present application, after displaying the comparison results in the target report file, the method also includes: obtaining target coding information corresponding to the target report file; and updating the configuration information of the current task according to the target coding information.
[0062] It should be noted that when the report task executed in this cycle generates a report file for the first time, the system will fill in the ID of the generated report file into the ID parameter of the task. Each time the report task executed in this cycle generates a report file again, the system will update the ID parameter value of the task to the ID of the most recently generated report file. For example, by adding an ID parameter to the intranet security risk report file generated in the cycle, the report file content of the previous cycle can be easily and quickly obtained when the cycle report file is generated, thereby realizing the automatic cycle comparison function.
[0063] The method for processing report files provided in the embodiment of the present application obtains the coding information corresponding to the historical report file in the historical task, wherein the historical task is the previous task of the current task, and the current task generates a target report file according to a preset period, wherein the report file is a file for analyzing network threat data; obtains the historical report data according to the coding information; compares the historical report data with the target data to obtain a comparison result, wherein the target data is one of the data required to perform the current task; and displays the comparison result in the target report file. The problem that the automatic comparison of periodic reports cannot be achieved in the related art is solved. By comparing the historical report data with the target data, the comparison result is displayed in the target report file, thereby achieving the effect of automatic comparison of periodic reports.
[0064] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0065] The present application also provides a report file processing device. It should be noted that the report file processing device of the present application can be used to execute the report file processing method provided in the present application. The report file processing device provided in the present application is introduced below.
[0066] Figure 7 Schematic diagram of a report file processing device according to an embodiment of the present application. Figure 7 As shown, the device includes: a first acquisition unit 701, a second acquisition unit 702, a comparison unit 703, and a display unit 704.
[0067] Specifically, the first acquisition unit 701 is used to obtain the encoding information corresponding to the historical report file in the historical task, wherein the historical task is the previous task of the current task, and the current task generates the target report file according to the preset period, wherein the report file is a file for analyzing the network threat data;
[0068] A second acquisition unit 702 is used to acquire historical report data according to the coding information;
[0069] A comparison unit 703 is used to compare the historical report data with the target data to obtain a comparison result, wherein the target data is one of the data required to perform the current task;
[0070] The display unit 704 is used to display the comparison result in a target report file.
[0071] In summary, the report file processing device provided in the embodiment of the present application obtains the coding information corresponding to the historical report file in the historical task through the first acquisition unit 701, wherein the historical task is the previous task of the current task, and the current task generates the target report file according to the preset period, wherein the report file is a file for analyzing network threat data; the second acquisition unit 702 obtains the historical report data according to the coding information; the comparison unit 703 compares the historical report data with the target data to obtain the comparison result, wherein the target data is one of the data required to perform the current task; the display unit 704 displays the comparison result in the target report file, which solves the problem that the automatic comparison of periodic reports cannot be realized in the related art. By comparing the historical report data with the target data and displaying the comparison result in the target report file, the effect of realizing the automatic comparison of periodic reports is achieved.
[0072] Optionally, in the report file processing device provided in the embodiment of the present application, the second acquisition unit 702 includes: a detection module, used to detect whether there is coding information in the configuration information of the historical task; a judgment module, used to judge whether there is a historical report file corresponding to the coding information if the coding information exists; and a first acquisition module, used to obtain historical report data according to the historical report file if the historical report file corresponding to the coding information exists.
[0073] Optionally, in the report file processing device provided in the embodiment of the present application, the device also includes: a determination unit, used to determine comparison data based on the comparison results before displaying the comparison results in the target report file, wherein the comparison data at least includes: differential data between the historical report data and the target data; a generation unit, used to generate a target report file based on the comparison data and the target data.
[0074] Optionally, in the report file processing device provided in the embodiment of the present application, the first acquisition unit 701 includes: a second acquisition module, used to obtain configuration information of historical tasks, wherein the configuration information at least includes: parameter information of historical tasks, wherein the parameter information at least includes: the name of the historical task, and the coding information corresponding to the historical report file in the historical task; a determination module, used to determine the coding information corresponding to the historical report file according to the configuration information.
[0075] Optionally, in the report file processing device provided in the embodiment of the present application, the device also includes: a third acquisition unit, used to obtain target coding information corresponding to the target report file after displaying the comparison result in the target report file; an update unit, used to update the configuration information of the current task according to the target coding information.
[0076] Optionally, in the report file processing device provided in the embodiment of the present application, historical tasks and current tasks are executed according to a preset cycle, wherein the preset cycle includes at least one of the following: a cycle preset according to a weekly time, a cycle preset according to a monthly time, and a cycle preset according to a quarterly time.
[0077] The report file processing device includes a processor and a memory. The first acquisition unit 701, the second acquisition unit 702, the comparison unit 703, the display unit 704, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0078] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the report file is processed by adjusting the kernel parameters.
[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0080] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, a method for processing a report file is implemented.
[0081] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for processing a report file is executed when the program is running.
[0082] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining coding information corresponding to a historical report file in a historical task, wherein the historical task is a previous task of a current task, and the current task generates a target report file according to a preset period, wherein the report file is a file for analyzing network threat data; obtaining historical report data according to the coding information; comparing the historical report data with target data to obtain a comparison result, wherein the target data is one of the data required to execute the current task; and displaying the comparison result in the target report file.
[0083] When the processor executes the program, the following steps are also implemented: detecting whether there is coding information in the configuration information of the historical task; if there is coding information, determining whether there is a historical report file corresponding to the coding information; if the historical report file corresponding to the coding information exists, obtaining historical report data according to the historical report file.
[0084] When the processor executes the program, the following steps are also implemented: before displaying the comparison results in the target report file, determining comparison data based on the comparison results, wherein the comparison data at least includes: differential data between the historical report data and the target data; generating the target report file based on the comparison data and the target data.
[0085] When the processor executes the program, the following steps are also implemented: obtaining configuration information of historical tasks, wherein the configuration information at least includes: parameter information of historical tasks, wherein the parameter information at least includes: the name of the historical task, and the coding information corresponding to the historical report file in the historical task; determining the coding information corresponding to the historical report file based on the configuration information.
[0086] When executing the program, the processor also implements the following steps: after displaying the comparison result in the target report file, obtaining the target coding information corresponding to the target report file; and updating the configuration information of the current task according to the target coding information.
[0087] When the processor executes the program, the following steps are also implemented: historical tasks and current tasks are executed according to a preset cycle, wherein the preset cycle includes at least one of the following: a cycle preset according to a weekly time, a cycle preset according to a monthly time, and a cycle preset according to a quarterly time.
[0088] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0089] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining coding information corresponding to a historical report file in a historical task, wherein the historical task is the previous task of the current task, and the current task generates a target report file according to a preset period, wherein the report file is a file for analyzing network threat data; obtaining historical report data according to the coding information; comparing the historical report data with the target data to obtain a comparison result, wherein the target data is one of the data required to execute the current task; and displaying the comparison result in the target report file.
[0090] When executed on a data processing device, it is also suitable for executing an initialization program with the following method steps: detecting whether there is coding information in the configuration information of the historical task; if there is coding information, determining whether there is a historical report file corresponding to the coding information; if the historical report file corresponding to the coding information exists, obtaining historical report data according to the historical report file.
[0091] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: before displaying the comparison results in a target report file, determining comparison data based on the comparison results, wherein the comparison data at least includes: differential data between historical report data and target data; generating a target report file based on the comparison data and the target data.
[0092] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: obtaining configuration information of historical tasks, wherein the configuration information at least includes: parameter information of historical tasks, wherein the parameter information at least includes: the name of the historical tasks, and the coding information corresponding to the historical report files in the historical tasks; determining the coding information corresponding to the historical report files according to the configuration information.
[0093] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: after displaying the comparison result in the target report file, obtaining the target coding information corresponding to the target report file; and updating the configuration information of the current task according to the target coding information.
[0094] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: historical tasks and current tasks are executed according to a preset cycle, wherein the preset cycle includes at least one of the following: a cycle preset according to a weekly time, a cycle preset according to a monthly time, and a cycle preset according to a quarterly time.
[0095] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0096] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0099] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0100] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0101] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0102] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0104] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for processing a report file, It is characterized in that include: Obtaining encoding information corresponding to a historical report file in a historical task, wherein the historical task is a previous task of a current task, and the current task generates a target report file according to a preset period, wherein the report file is a file for analyzing network threat data; Obtaining historical report data according to the coding information; Comparing the historical report data with target data to obtain a comparison result, wherein the target data is one of the data required to perform the current task; Displaying the comparison result in the target report file; Wherein, when a report task executed periodically generates a report file for the first time, the ID of the report file is filled in the ID parameter of the report task, and when the report task executed periodically generates a report file again, the ID parameter value of the report task is updated to the ID of the most recently generated report file; Acquiring historical report data according to the coding information includes: detecting whether the coding information exists in the configuration information of the historical task; if the coding information exists, determining whether a historical report file corresponding to the coding information exists; if the historical report file corresponding to the coding information exists, acquiring the historical report data according to the historical report file; and generating a report file for this period when the report file of the ID cannot be found or the ID number does not exist.
2. The method according to claim 1, It is characterized in that Before presenting the comparison result in the target report file, the method further includes: Determining comparison data according to the comparison result, wherein the comparison data at least includes: differential data between the historical report data and the target data; The target report file is generated according to the comparison data and the target data.
3. The method according to claim 1, It is characterized in that The encoding information corresponding to the historical report file in the historical task includes: Acquire configuration information of the historical task, wherein the configuration information at least includes: parameter information of the historical task, wherein the parameter information at least includes: a name of the historical task, and coding information corresponding to a historical report file in the historical task; The encoding information corresponding to the history report file is determined according to the configuration information.
4. The method according to claim 1, It is characterized in that After presenting the comparison result in the target report file, the method further includes: Obtaining target coding information corresponding to the target report file; The configuration information of the current task is updated according to the target encoding information.
5. The method according to claim 1, It is characterized in that The historical tasks and the current tasks are executed according to the preset cycle, wherein the preset cycle includes at least one of the following: a cycle preset according to a weekly time, a cycle preset according to a monthly time, and a cycle preset according to a quarterly time.
6. A report file processing device, It is characterized in that include: A first acquisition unit is used to acquire coding information corresponding to a historical report file in a historical task, wherein the historical task is a previous task of a current task, and the current task generates a target report file according to a preset period, wherein the report file is a file for analyzing network threat data; A second acquisition unit, configured to acquire historical report data according to the coding information; A comparison unit, used for comparing the historical report data with target data to obtain a comparison result, wherein the target data is one of the data required to perform the current task; A display unit, used for displaying the comparison result in the target report file; Wherein, when a report task executed periodically generates a report file for the first time, the ID of the report file is filled in the ID parameter of the report task, and when the report task executed periodically generates a report file again, the ID parameter value of the report task is updated to the ID of the most recently generated report file; The second acquisition unit includes: a detection module, used to detect whether the coding information exists in the configuration information of the historical task; a judgment module, used to judge whether the historical report file corresponding to the coding information exists if the coding information exists; a first acquisition module, used to obtain the historical report data according to the historical report file if the historical report file corresponding to the coding information exists; if the report file of the ID cannot be queried or the ID number does not exist, generate a report file for this period.
7. A processor, It is characterized in that The processor is used to run a program, wherein the program executes the report file processing method according to any one of claims 1 to 5 when running.
8. A computer-readable storage medium, It is characterized in that The storage medium stores a program, wherein the program executes the report file processing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Client performance quality report generation method and device, medium and electronic equipment
CN110069411A
