Log analysis support apparatus, log analysis support method, log analysis support program, and log analysis support system
The log analysis support device addresses inconsistent timestamp issues in multi-device systems by correcting and displaying logs with user-defined rules, reducing analysis workload and improving efficiency.
Patent Information
- Application Number
- JP2023071861
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2024-11-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing systems face challenges in analyzing logs from multiple devices with inconsistent time synchronization, requiring costly and time-consuming modifications to introduce timestamp correction functions, and lack efficient methods to verify correction results, increasing workload as system scale increases.
A log analysis support device that acquires logs from multiple devices, corrects timestamps using predetermined correction amounts based on user-selected evaluation rules, and displays corrected logs side by side with evaluation rule compliance, allowing flexible editing and verification.
Reduces workload in analyzing logs with inconsistent time synchronization by efficiently correcting timestamps and visually verifying compliance with user-defined rules, enhancing analysis efficiency.
Smart Images

Figure 2024157468000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a log analysis support device, a log analysis support method, a log analysis support program, and a log analysis support system that support the analysis of multiple logs generated by multiple devices. [Background technology]
[0002] In a monitoring and control system composed of multiple devices, each device generally generates and stores a log file in which information on processes executed during operation is written. The log file stored by each device is analyzed by a maintenance person or the like to identify the cause of a malfunction, such as a breakdown or abnormal operation of the device. In addition, malfunctions may occur not only in a single device but also in multiple devices, or a malfunction in one device may adversely affect the operation of other devices, causing malfunctions in the affected devices. In this case, analysis work such as comparing and checking multiple log files generated by multiple related devices is required. Each device that generates a log file has a time synchronization function that obtains information on the reference time from a time synchronization server or the like and adjusts its internal time (also called local time). However, there may be cases where the internal time of each device differs due to reasons such as the time synchronization server to which the devices are connected being different, or the timing of adjusting the internal time being different between the devices. If there is a difference in the internal time of each device, there will also be a difference in the timestamp recorded in the log file generated by the device, and work that takes the difference into account will be required, increasing the workload. There is also a risk of an increased probability of errors occurring in the analysis work.
[0003] In response to such problems, Patent Document 1 discloses a technology in which each of multiple computers that make up a computer system generates logs based on the processing and operations of applications, OS (Operating System), etc., and a time correction log, which is a log of the correction history of the internal time, and transmits these to a log analysis device. The log analysis device then updates a timestamp correction history table using the time correction log, and corrects timestamps for logs other than the time correction log using the timestamp correction history table, thereby eliminating inconsistencies in timestamps that occur due to discrepancies in the internal time of the computers. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2008-269084 A Summary of the Invention [Problem to be solved by the invention]
[0005] The technology described in Patent Document 1 requires that the device that generates the log also be equipped with a new function, specifically, a function for generating a time correction log, and is difficult to introduce into an existing system. That is, since the existing system is composed of devices that do not generate time correction logs, it is necessary to modify the device that does not have the time correction log generation function to add the time correction log generation function, or to replace it with a device that has the time correction log generation function, and introduction requires time, work, and cost. In addition, although it is possible to correct the timestamp using a pre-set method, it is difficult to confirm whether the correction result is the intended one, as it is time-consuming to display the log on another device, and it is difficult to confirm whether the correction result is the intended one, and no consideration is given to reducing the load of the analysis work of the corrected log. As the system becomes larger, the number of devices that make up the system also increases, and the number of logs to be analyzed also increases, so it is also desirable to reduce the load of the work of analyzing multiple logs.
[0006] The present disclosure has been made in consideration of the above, and aims to provide a log analysis support device that can reduce the workload when analyzing multiple log files created by multiple devices with insufficient time synchronization. [Means for solving the problem]
[0007] In order to solve the above-mentioned problems and achieve the objective, the log analysis support device disclosed herein comprises a log acquisition unit that acquires, from each of a plurality of devices that operate in cooperation with other devices, a log file in which a series of logs indicating the operation history of the device is written, a correction unit that corrects the timestamp of the log written in the log file acquired by the log acquisition unit by a predetermined correction amount, a display processing unit that causes the logs after the timestamp has been corrected by the correction unit to be displayed side by side on a display unit, and a rule selection unit that accepts a selection of an evaluation rule to be used in evaluating the result of the timestamp correction by the correction unit, and is characterized in that the correction unit determines the correction amount to be used in the correction based on the evaluation rule selected and accepted by the rule selection unit. Effect of the Invention
[0008] The log analysis support device according to the present disclosure has an effect of reducing the workload when analyzing a plurality of log files created by a plurality of devices with insufficient time synchronization. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an application example of a log analysis support device according to a first embodiment. [Diagram 2] FIG. 1 is a diagram showing a configuration example of a log analysis support system according to a first embodiment. [Diagram 3] FIG. 1 is a diagram showing an example of a screen displayed by a display unit of the log analysis support device according to the first embodiment; [Figure 4] 1 is a flowchart showing an example of an operation of the log analysis support device according to the first embodiment; [Figure 5A] FIG. 1 is a first diagram showing an example of an operation of the log analysis support device according to the first embodiment for generating correction pattern candidates; [Figure 5B]FIG. 2 is a second diagram showing an example of an operation of the log analysis support device according to the first embodiment for generating correction pattern candidates; [Figure 5C] FIG. 3 is a third diagram showing an example of an operation of the log analysis support device according to the first embodiment for generating correction pattern candidates; [Figure 6] FIG. 1 is a diagram showing an example of a correction pattern candidate created by the log analysis support device according to the first embodiment; [Figure 7] FIG. 13 is a diagram showing an example of an operation of the log analysis support device according to the first embodiment for calculating an evaluation value of a correction pattern candidate; [Figure 8] FIG. 1 is a diagram showing a method in which the log analysis support device according to the first embodiment adopts a correction pattern candidate. [Figure 9] FIG. 12 is a diagram showing a first example of a log confirmation screen displayed by the log analysis support device according to the first embodiment; [Figure 10] FIG. 11 is a diagram showing a second example of a log confirmation screen displayed by the log analysis support device according to the first embodiment; [Figure 11] FIG. 11 is a third example of a log confirmation screen displayed by the log analysis support device according to the first embodiment; [Figure 12] FIG. 1 is a diagram showing a configuration example of a log analysis support system according to a second embodiment. [Figure 13] 11 is a flowchart showing an example of an operation of the log analysis support device according to the second embodiment. [Figure 14] The first figure shows an example of editing the log display on the log confirmation screen. [Figure 15] The second figure shows an example of editing the log display on the log confirmation screen. [Figure 16] FIG. 11 is a diagram showing an example of an operation of updating a display on a log confirmation screen by the log analysis support device according to the second embodiment; [Figure 17] FIG. 13 is a diagram showing a configuration example of a log analysis support system according to a third embodiment. [Figure 18] 11 is a flowchart showing an example of an operation of the log analysis support device according to the third embodiment. [Figure 19] FIG. 13 is a diagram showing an example of editing evaluation rules in the log analysis support device according to the third embodiment. [Figure 20]FIG. 20 is a diagram showing an example of a log confirmation screen displayed by the log analysis support device when the editing shown in FIG. 19 is performed; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A log analysis support device, a log analysis support method, a log analysis support program, and a log analysis support system according to embodiments of the present disclosure will be described below in detail with reference to the accompanying drawings.
[0011] Embodiment 1 Fig. 1 is a diagram showing an application example of a log analysis support device 100 according to a first embodiment. In the application example shown in Fig. 1, the log analysis support device 100 acquires log files from each of a plurality of devices constituting a monitoring and control system 200 that monitors and controls a water treatment plant or the like. The devices constituting the monitoring and control system 200 operate in cooperation with each other, for example, by transmitting and receiving data as necessary to realize functions provided by the monitoring and control system 200, and generate a log file indicating an operation history. One or more logs are written in the log file, and a series of logs written in the log file indicates the operation history of the device.
[0012] Furthermore, the log analysis support device 100 corrects the time stamp of the log included in each acquired log file, and displays the logs included in each corrected log file side by side. In this embodiment, the log analysis support device 100 is described as directly acquiring the log file from each device that generates the log file, but is not limited to this configuration. For example, when the monitoring control system 200 includes a management device that collects and stores log files at a predetermined timing from each device that generates the log, the log analysis support device 100 may acquire the log file from the management device. The management device that stores the log file may exist on a cloud. In addition, the log analysis support device 100 is described as acquiring the log file via a communication network, but a portable storage device may be connected to a local device to store the log file in the storage device, and the storage device may be connected to the log analysis support device 100 to import the log file.
[0013] Furthermore, the target from which the log analysis support device 100 acquires log files is not limited to the monitoring and control system 200. The monitoring and control system 200 is an example of a system that provides a function realized by a plurality of devices operating in cooperation with each other.
[0014] 2 is a diagram illustrating a configuration example of a log analysis support system 300 according to the first embodiment. The log analysis support system 300 includes a log analysis support device 100 and a monitoring control system 200. The log analysis support device 100 and the monitoring control system 200 are connected to a communication network (not shown) and are capable of transmitting and receiving various data.
[0015] Each device (device A, device B, ...) that constitutes the monitoring and control system 200 is equipped with a log output unit 211 that transmits a log file 220 to the log analysis support device 100, and a log recording unit 212 that generates a log file 220 in which information such as the state of the device, the contents and results of the executed processing, and the results of communication with other devices are recorded as a log together with a timestamp.
[0016] The log analysis support device 100 includes an information processing device 1 that corrects the timestamp of a log included in each log file 220 acquired from a monitoring control system 200, and a display unit 40 that displays the log after the timestamp has been corrected.
[0017] The following describes an example of a screen displayed by the display unit 40. Fig. 3 is a diagram showing an example of a screen 50 displayed by the display unit 40 of the log analysis support device 100 according to the first embodiment.
[0018] 3 includes a log display section 51, a rule display section 52, and an operation interface display section 53. The log display section 51 displays logs contained in the log file 220 in a manner according to a user request. The rule display section 52 displays a list of evaluation rules, which will be described later. The operation interface display section 53 displays buttons, text boxes, and the like for receiving a specific operation from the user.
[0019] Returning to the explanation of Figure 2, the information processing device 1 includes an operation unit 10 that accepts various operations performed by a user on the log analysis support device 100, a processing unit 20 that corrects the timestamp of the log and creates screen data to be displayed by the display unit 40, and a memory unit 30.
[0020] The operation unit 10 includes a rule selection unit 11 that accepts an operation for selecting an evaluation rule. The processing unit 20 includes a log acquisition unit 21 that acquires a log file 220, a correction unit 22 that performs correction of the timestamp of the log recorded in the log file 220, and a display processing unit 23 that performs creation of screen data to be displayed by the display unit 40. The data stored in the storage unit 30 includes evaluation rule data 31 and log data 32. The evaluation rule data 31 is a collection of evaluation rules. The evaluation rules are rules for evaluating the validity (correctness) of the correction result of the timestamp of the log recorded in the log file 220, and indicate the conditions required for the log after the timestamp correction. The evaluation rule data 31 includes one or more evaluation rules. The log data 32 is a collection of the log files 220, and includes one or more log files 220. The evaluation rules are, for example, "The correct order is process #11 → process #12 → process #13," "The correct order is XX send → XX receive," "The time difference between when device A executes process AA and when device B executes process BB is less than or equal to XX," etc.
[0021] Next, an operation of the log analysis support device 100 will be described. Fig. 4 is a flowchart showing an example of the operation of the log analysis support device 100 according to the first embodiment. Specifically, the flowchart in Fig. 4 shows an example of the operation of the log analysis support device 100 correcting the timestamp of the log included in the log file 220 generated by each device of the monitoring control system 200 and displaying it on the display unit 40.
[0022] The log analysis support device 100 first acquires the log file 220, the timestamp of which is to be corrected, from the monitoring control system 200 (step S11). Specifically, the log acquisition unit 21 acquires the log file 220 from each device of the monitoring control system 200. For example, the log acquisition unit 21 acquires the log file 220 when the operation unit 10 receives an operation from a user instructing acquisition of the log file 220. The acquired log file 220 is stored in the storage unit 30 as log data 32. Note that the log acquisition unit 21 may acquire the log file 220 from all devices constituting the monitoring control system 200, or may acquire the log file 220 from some devices designated by the user. In addition, when the log file 220 already acquired from the monitoring control system 200 is stored in the storage unit 30 as the log data 32, the log acquisition unit 21 may acquire the log data 32 stored in the storage unit 30, or may acquire the latest log file 220 from each device of the monitoring control system 200.
[0023] Next, the log analysis support device 100 accepts a selection of an evaluation rule from the user (step S12). Specifically, the rule selection unit 11 accepts an operation to select one or more evaluation rules from among the evaluation rules included in the evaluation rule data 31. The user uses an input device such as a mouse to select one or more evaluation rules from among the evaluation rules displayed in the rule display unit 52 shown in Fig. 3. When multiple evaluation rules are selected, priorities may be set for the selected evaluation rules.
[0024] The log analysis support device 100 then generates multiple correction pattern candidates for the timestamp of the log file 220 acquired in step S11 (meaning "timestamp of the log included in the log file 220," the same below) (step S13). The correction pattern candidates are generated by the correction unit 22.
[0025] A specific example of the operation of the correction unit 22 generating a plurality of correction pattern candidates will be described with reference to Figs. 5A to 5C. Fig. 5A is a first diagram showing an example of the operation of the log analysis support device 100 according to the first embodiment generating a correction pattern candidate, Fig. 5B is a second diagram showing an example of the operation of the log analysis support device 100 according to the first embodiment generating a correction pattern candidate, and Fig. 5C is a third diagram showing an example of the operation of the log analysis support device 100 according to the first embodiment generating a correction pattern candidate. Here, three log files 220 are set as correction targets, which are log files 1 to 3. An example of generating correction pattern candidates for correcting the timestamps of log files 2 and 3 based on the timestamp of log file 1 will be described.
[0026] As shown in FIG. 5A, the correction unit 22 first creates a plurality of correction candidates for the log file 2 by shifting the timestamp (time) of the log file 2 little by little using each of a plurality of correction amounts based on the log file 1. In the example shown in FIG. 5A, the correction unit 22 creates three correction candidates. Specifically, the correction unit 22 advances the timestamp of the log file 2 by Δt1 to create a correction candidate #2-1, delays the timestamp of the log file 2 by Δt2 to create a correction candidate #2-2, and delays the timestamp of the log file 2 by Δt3 to create a correction candidate #2-3. The correction amounts are assumed to be determined in advance, but may be changed by the user. In this example, the number of correction amounts is set to 3, but may be set to 2 or 4 or more.
[0027] Next, as shown in Fig. 5B, the correction unit 22 creates a plurality of correction candidates for the log file 3 by shifting the timestamp of the log file 3 little by little using each of a plurality of correction amounts, using one of the correction candidates for the log file 2 that has already been created as a reference. In the example shown in Fig. 5B, the correction unit 22 creates three correction candidates for the log file 3 based on the correction candidate #2-1 of the log file 2 as a reference. Specifically, the correction unit 22 advances the timestamp of the log file 3 by Δt11 to create the correction candidate #3-11, delays the timestamp of the log file 3 by Δt12 to create the correction candidate #3-12, and delays the timestamp of the log file 3 by Δt13 to create the correction candidate #3-13.
[0028] 5C, the correction unit 22 uses the correction candidate #2-2 of the log file 2 as a reference and creates three correction candidates of the log file 3 for this reference. Specifically, the correction unit 22 advances the timestamp of the log file 3 by Δt11 to create a correction candidate #3-21, delays the timestamp of the log file 3 by Δt12 to create a correction candidate #3-22, and delays the timestamp of the log file 3 by Δt13 to create a correction candidate #3-23. Furthermore, the correction unit 22 creates three correction candidates (correction candidate #3-31, correction candidate #3-32, and correction candidate #3-33) of the log file 3 when the correction candidate #2-3 of the log file 2 is used as a reference in a similar manner.
[0029] As a result, a correction pattern candidate 110 as shown in Fig. 6 is obtained. Fig. 6 is a diagram showing an example of a correction pattern candidate created by the log analysis support device 100 according to the first embodiment. In Fig. 6, the correction pattern candidate is expressed by a combination of the correction amount (including a sign indicating the adjustment direction) of the timestamp of each log file. The correction amount of log file 1, which is the overall reference, is fixed to zero (0). Although an example in which there are three log files to be corrected has been described, the method of creating a correction pattern candidate is similar when there are four or more log files to be corrected.
[0030] That is, as explained using Figures 5A to 5C, the correction pattern candidates are combinations of correction amounts (correction amounts that can be used for correction) prepared in advance for correcting the timestamps of each of the multiple log files 220, and the processing of step S13 in Figure 4 corresponds to generating all combinations of correction amounts that can be used for correcting the timestamps of log files 220 other than the reference log file 220 among the log files 220 to be corrected.
[0031] After executing step S13 to generate a plurality of correction pattern candidates, the log analysis support device 100 calculates an evaluation value for each correction pattern candidate (step S14). The calculation of the evaluation value of the correction pattern candidate is performed by the correction unit 22. The correction unit 22 calculates the evaluation value based on the evaluation rule selected by the user in the above step S12. Since the evaluation value is calculated based on the evaluation rule selected by the user, it can also be said to be the result of the user's evaluation of the correction pattern candidate.
[0032] A specific example of the operation of the correction unit 22 calculating evaluation values of multiple correction pattern candidates will be described with reference to Fig. 7. Fig. 7 is a diagram showing an example of the operation of the log analysis support device 100 according to the first embodiment calculating evaluation values of correction pattern candidates. Fig. 7 shows an example of the operation of calculating evaluation values when three evaluation rules (rule 1, rule 2, rule 3) are selected by the user, and the order of priority is rule 2, rule 1, and rule 3.
[0033] In the example shown in FIG. 7, the correction unit 22 extracts logs that are subject to the evaluation rules from each log file 220 to be corrected for each of the three evaluation rules, then determines whether each of the extracted logs conforms to the evaluation rule, and further calculates the conformance rate. For example, for rule 1 “Start → End” shown in FIG. 7, the correction unit 22 searches for a pair of a log indicating the start of a certain process and a log indicating the end of this process, and extracts 12 pairs (12 cases). Then, the timestamp of each of the 12 pairs is checked, and if the time (timestamp) of the log indicating the start of the process is earlier than the time of the log indicating the end of the process, it is determined that the evaluation rule is conformed. In the example shown in FIG. 7, 10 out of the 12 cases conform. In this case, the conformance rate of rule 1 is 10 / 12.
[0034] After calculating the conformance rate of each of the three evaluation rules, the correction unit 22 calculates an evaluation value E based on the conformance rate of each evaluation rule and the priority of each evaluation rule. In the example shown in FIG. 7, the correction unit 22 multiplies each evaluation value by a weighting factor according to the priority of each evaluation rule and then adds them to obtain the evaluation value E. Specifically, the correction unit 22 multiplies the conformance rate "8 / 13" of the rule 2 with the highest priority by a weighting factor "10", multiplies the conformance rate "10 / 12" of the rule 1 with the second highest priority by a weighting factor "5", and multiplies the conformance rate "1 / 3" of the rule 3 with the lowest priority by a weighting factor "1", and adds them together to obtain the evaluation value E. Note that the calculation method of the evaluation value E is merely an example, and is not limited to this calculation method.
[0035] When the log analysis support device 100 completes the calculation of the evaluation value of each correction pattern candidate in step S14, the log analysis support device 100 performs correction by adopting the correction pattern candidate with the highest evaluation value E (step S15). An example of the operation of adopting a correction pattern candidate will be described with reference to FIG. 8. FIG. 8 is a diagram showing a method in which the log analysis support device 100 according to the first embodiment adopts a correction pattern candidate. FIG. 8 shows an example in which there are three correction pattern candidates. In the example shown in FIG. 8, the evaluation values of the three pattern candidates are E=34, E=42, and E=51, respectively, so in step S15, the correction unit 22 adopts the correction pattern candidate with E=51 as a correction pattern for correction. Thereafter, the correction unit 22 corrects the timestamp of the log file 220 according to the correction pattern for correction.
[0036] When the log analysis support device 100 completes the correction of the timestamp of the log file 220, it generates a log confirmation screen for the user to confirm the log file 220 after the timestamp correction, and displays it on the display unit 40 (step S16). The generation of the screen and the display on the display unit 40 are performed by the display processing unit 23. The display processing unit 23 generates, for example, a screen having a configuration shown in FIG. 9, and displays it on the display unit 40.
[0037] FIG. 9 is a diagram showing a first example of a log confirmation screen displayed by the log analysis support device 100 according to the first embodiment. In the screen 50 shown in FIG. 9, the logs included in each log file 220 after time stamp correction are displayed in the log display section 51 together with the time stamp. The logs included in each log file 220 are displayed in a line so that the correspondence with the time stamp and the correspondence with the logs included in other log files can be seen. FIG. 9 shows an example in which the logs included in the log files 220 generated by each of the device A, device B, and device C are displayed in the log display section 51. The time stamp displayed in the log display section 51 is, for example, the time stamp of the log included in the reference log file 220. In addition, the rule display section 52 of the screen 50 displays the evaluation rules selected by the user in the above step S12 in a format that the user can visually recognize, such as by color coding. At this time, the above-mentioned conformance rate (see FIG. 7) of each evaluation rule selected by the user is displayed in a format that the user can visually recognize. In the example shown in FIG. 9, the conformance rate of each evaluation rule selected by the user is represented by the coloring rate of the text block. For example, if the matching rate is 80%, the coloring rate will also be 80%. By displaying the matching rate together with the log after timestamp correction, the user can easily understand to what extent the correction result satisfies the conditions indicated by the evaluation rules.
[0038] In step S16, the display processing unit 23 may generate a log confirmation screen having a configuration shown in Fig. 10. Fig. 10 is a diagram showing a second example of the log confirmation screen displayed by the log analysis support device 100 according to the first embodiment. In the log confirmation screen shown in Fig. 10, the logs and the evaluation rules are displayed in a format in which the user can visually recognize the correspondence between each evaluation rule selected by the user and the target logs to which each evaluation rule is applied, for example by color-coding the logs in the same manner as the evaluation rules.
[0039] The display processing unit 23 may generate a screen having a configuration shown in Fig. 11 as a log confirmation screen. Fig. 11 is a diagram showing a third example of a log confirmation screen displayed by the log analysis support device 100 according to the first embodiment. In the log confirmation screen shown in Fig. 11, in addition to the display in the same format as the second example shown in Fig. 10, the conformance rate of each evaluation rule is displayed as a numerical value, thereby improving the visibility for the user. Also, the coloring pattern is changed depending on whether the log conforms to the corresponding evaluation rule, so that the user can easily understand whether the log conforms to the evaluation rule.
[0040] Returning to the description of FIG. 4, the log analysis support device 100 displays the log confirmation screen on the display unit 40, and then checks whether or not a save button for saving each corrected log file 220 has been pressed (step S17). If the save button has been pressed (step S17: Yes), the log analysis support device 100 saves the correction result of the log file 220 to be corrected in the storage unit 30 (step S18). At this time, the log analysis support device 100 may save each log file 220 after timestamp correction by replacing (overwriting) the log file 220 before timestamp correction included in the log data 32, or may save by adding the log file 220 after timestamp correction to the log data 32 while leaving the log file 220 before timestamp correction. A configuration may be adopted in which the user can specify a saving method.
[0041] The log analysis support device 100 ends the operation when the save button is not pressed (step S17: No), for example, when the save button is not pressed for a specified time period after the log confirmation screen is displayed on the display unit 40. The log analysis support device 100 may end the operation when an operation to end the operation is received from the user, instead of when a timeout occurs.
[0042] In the flowchart of FIG. 4, the log file 220 after timestamp correction is displayed in step S16. However, after the log file is acquired in step S11, the log file 220 before timestamp correction may be displayed.
[0043] Here, a description will be given of a hardware configuration of the log analysis support device 100. The log analysis support device 100 is realized, for example, by a computer and a program for operating as the log analysis support device 100. That is, the log analysis support device 100 can be realized, for example, by a computer in which a program for operating as the log analysis support device 100 is installed, executing the installed program.
[0044] The log analysis support device 100 may also be realized by a plurality of devices operating in cooperation with each other. For example, the operation unit 10 and the display unit 40 of the log analysis support device 100 may be realized by electronic devices such as a tablet terminal or a smartphone, and the processing unit 20 and the storage unit 30 may be realized by a computer such as a server. One or both of the processing unit 20 and the storage unit 30 may be provided on a cloud.
[0045] As described above, the log analysis support device 100 according to the present embodiment acquires log files generated by each of the multiple devices constituting the monitoring control system 200, generates correction pattern candidates that are combinations of correction amounts that can be used to correct the timestamp of each log file, evaluates the generated correction pattern candidates based on an evaluation rule selected by the user, and calculates an evaluation value as an evaluation result. In addition, the log analysis support device 100 corrects the timestamp using a correction pattern with a high evaluation value, and displays the logs included in each of the multiple log files 220 after the timestamp correction, together with the timestamp. This makes it possible to reduce the workload when analyzing multiple log files created by multiple devices with insufficient time synchronization. In addition, the timestamp can be corrected according to the user's intention.
[0046] In addition, the log confirmation screen that displays the logs contained in each of the multiple log files 220 after timestamp correction shows the correspondence between the evaluation rules and the logs by using different display colors, thereby improving user visibility, enabling efficient analysis work and reducing the workload.
[0047] Embodiment 2 Fig. 12 is a diagram showing a configuration example of a log analysis support system 300a according to the second embodiment. In Fig. 12, the same devices and components as those in the log analysis support system 300 (see Fig. 2) described in the first embodiment are denoted by the same reference numerals. In this embodiment, the description of the same devices and components as those in the log analysis support system 300 described in the first embodiment will be omitted.
[0048] The log analysis support system 300 a according to this embodiment includes a log analysis support device 100 a and a monitoring control system 200 .
[0049] The log analysis support device 100a has a configuration in which the information processing device 1 of the log analysis support device 100 according to the first embodiment is replaced with an information processing device 1a. The information processing device 1a includes an operation unit 10a, a processing unit 20a, and a storage unit 30.
[0050] The operation unit 10a includes a rule selection unit 11 and a display modification unit 12. The display modification unit 12 accepts an editing operation of the log display on the log confirmation screen (see FIGS. 9 to 11) described in the first embodiment.
[0051] The processing unit 20a includes a log acquisition unit 21, a correction unit 22, and a display processing unit 23a. In addition to the operations described in the first embodiment, the display processing unit 23a executes an operation of updating the display content of the log confirmation screen in accordance with the content of the operation accepted by the display correction unit 12 of the operation unit 10a.
[0052] Next, the operation of the log analysis support device 100a will be described. Fig. 13 is a flowchart showing an example of the operation of the log analysis support device 100a according to the second embodiment. The flowchart in Fig. 13 shows an example of the operation of correcting the timestamp of the log included in the log file 220 and displaying it on the display unit 40, and then accepting an editing operation of the log display from the user. Steps S11 to S16 in the flowchart shown in Fig. 13 are common processes to steps S11 to S16 in the flowchart shown in Fig. 4 described in the first embodiment. Explanation of these steps S11 to S16 will be omitted.
[0053] After executing steps S11 to S16 and displaying a log confirmation screen on the display unit 40, the log analysis support device 100a checks whether the display correction unit 12 has accepted an editing operation for the log display (step S21). If an editing operation for the log display has been accepted (step S21: Yes), the log analysis support device 100a checks whether an edit corresponding to the accepted editing operation affects the relevance rate (step S22). The relevance rate is the relevance rate of the evaluation rule described in the first embodiment. "When the relevance rate is affected" refers to a case where the relevance rate changes when an edit corresponding to the accepted editing operation is made. For example, an editing operation that changes a timestamp corresponds to this case. When an edit affects the relevance rate (step S22: Yes), the log analysis support device 100a recalculates the relevance rate (step S23), generates a log confirmation screen, and displays it on the display unit 40 (step S24). The recalculation of the relevance rate in step S23 is performed in the same manner as the relevance rate calculation method (the relevance rate calculation method included in the operation of obtaining the evaluation value) described in embodiment 1. Step S24 is the same process as step S16. If the editing does not affect the relevance rate (step S22: No), the log analysis support device 100a executes step S24 without recalculating the relevance rate, and updates the log confirmation screen displayed by the display unit 40.
[0054] An example of editing the log display on the log confirmation screen will be described with reference to Fig. 14 and Fig. 15. Fig. 14 is a first diagram showing an example of editing the log display on the log confirmation screen, and Fig. 15 is a second diagram showing an example of editing the log display on the log confirmation screen.
[0055] Fig. 14 shows an example of changing the display order of logs. The user changes the display order of logs by dragging and dropping using a mouse, for example. In the example shown in Fig. 14, the display order of the logs of device B and device A is swapped. By making the display order changeable, for example, when a series of related processes are executed consecutively between multiple devices, it becomes possible to rearrange the display order to match the execution order of the series of processes and then check the logs, making it easier to analyze the logs.
[0056] FIG. 15 shows an example of changing the display scale of the timestamp and an example of changing the timestamp. The display scale here means the time interval of the timestamp to be displayed. In the example shown in FIG. 15, the display scale of the timestamp is changed from 5-second intervals in the example shown in FIG. 14 to 1-second intervals. The timestamp is changed by changing the display position of the log in the vertical direction. In the example shown in FIG. 15, the display position of the log of process 9 is moved downward to change the timestamp from "2022 / 9 / 6 8:15:08" to "2022 / 9 / 6 8:15:11". Changing the timestamp corresponds to editing that affects the relevance rate. In addition, when changing the display scale of the timestamp, the user directly specifies (inputs) the scale value using, for example, a keyboard. When changing the timestamp, the user changes the display position of the log by dragging and dropping using, for example, a mouse.
[0057] Returning to the explanation of FIG. 13, when the log display editing operation is not accepted (step S21: No) and when step S24 is executed to update the log confirmation screen, the log analysis support device 100a checks whether or not there is a request for log recorrection (step S25). The log analysis support device 100a determines that log recorrection is requested when the "Execute" button on the log confirmation screen (see FIG. 9, etc.) is pressed. When there is a request for log recorrection, that is, when the "Execute" button on the log confirmation screen is pressed (step S25: Yes), the log analysis support device 100a returns to step S12 and executes the processes of steps S12 to S24 again.
[0058] For example, when the "Execute" button is pressed as shown in FIG. 16 after a change in the timestamp shown in FIG. 15 (corresponding to "editing that affects the relevance rate") is accepted, the log analysis support device 100a recalculates the relevance rate and updates the display on the log confirmation screen based on the recalculation result. Note that it is assumed that the display scale described above has not been changed. FIG. 16 is a diagram showing an example of an operation of the log analysis support device 100a according to the second embodiment to update the display on the log confirmation screen. In the example shown in FIG. 16, the display of the relevance rate of the evaluation rule in the upper right of the screen and the display format of the log (coloring pattern, etc.) are updated.
[0059] If there is no request for log recorrection, for example, if an operation to end the display of the log confirmation screen is performed (step S25: No), the log analysis support device 100a ends the operation.
[0060] As described above, the log analysis support device 100a according to the present embodiment includes the display correction unit 12 that accepts an operation to edit the log display on the log confirmation screen, and when an operation to edit the log display is accepted, the display on the log confirmation screen is updated by executing a process corresponding to the accepted operation. The log analysis support device 100a can flexibly change the display contents of the log confirmation screen in response to a request from a user.
[0061] Embodiment 3 Fig. 17 is a diagram showing a configuration example of a log analysis support system 300b according to the third embodiment. In Fig. 17, the same devices and components as those in the log analysis support system 300 (see Fig. 2) described in the first embodiment are denoted by the same reference numerals. In this embodiment, the description of the same devices and components as those in the log analysis support system 300 described in the first embodiment will be omitted.
[0062] The log analysis support system 300b according to this embodiment includes a log analysis support device 100b and a monitoring control system 200.
[0063] The log analysis support device 100b has a configuration in which the information processing device 1 of the log analysis support device 100 according to the first embodiment is replaced with an information processing device 1b. The information processing device 1b includes an operation unit 10b, a processing unit 20b, and a storage unit 30.
[0064] The operation unit 10b includes a rule selection unit 11 and a rule editing unit 13. The rule editing unit 13 accepts the editing operation of the evaluation rules described in the first embodiment. In this embodiment, it is possible to edit the evaluation rules displayed in the rule display unit 52 (see FIG. 3, etc.) of the log confirmation screen, and the rule editing unit 13 accepts the editing operation of the evaluation rules when the log confirmation screen is displayed. Editing of the evaluation rules includes adding (creating new) an evaluation rule, deleting an existing evaluation rule (the evaluation rule constituting the evaluation rule data 31 held by the storage unit 30), changing the contents of an existing evaluation rule, and changing the priority of an evaluation rule.
[0065] The processing unit 20b includes a log acquisition unit 21, a correction unit 22, a display processing unit 23b, and a rule update unit 24. In addition to the operations described in the first embodiment, the display processing unit 23b executes an operation of updating the display contents of the log confirmation screen according to the contents of the operation accepted by the rule editing unit 13 of the operation unit 10b. The rule update unit 24 changes the evaluation rules included in the evaluation rule data 31 held by the storage unit 30 according to the contents of the operation accepted by the rule editing unit 13 of the operation unit 10b.
[0066] Next, the operation of the log analysis support device 100b will be described. Fig. 18 is a flowchart showing an example of the operation of the log analysis support device 100b according to the third embodiment. The flowchart in Fig. 18 shows an example of the operation of correcting the timestamp of a log included in the log file 220 and displaying it on the display unit 40, and then accepting an editing operation of the evaluation rule from a user. Steps S11 to S16 in the flowchart shown in Fig. 18 are common processes to steps S11 to S16 in the flowchart shown in Fig. 4 described in the first embodiment. Explanation of these steps S11 to S16 will be omitted.
[0067] After executing steps S11 to S16 and displaying the log confirmation screen on the display unit 40, the log analysis support device 100b checks whether or not there is an editing operation of the evaluation rules, that is, whether or not the rule editing unit 13 has accepted an editing operation of the evaluation rules (step S31). If there is no editing operation of the evaluation rules, for example, if an operation to end the display of the log confirmation screen has been performed (step S31: No), the log analysis support device 100b ends the operation.
[0068] When an editing operation of an evaluation rule is received (step S31: Yes), the log analysis support device 100b checks whether or not the selected evaluation rule is affected (step S32). The selected evaluation rule is the evaluation rule selected by the user in step S12. When an editing operation of the selected evaluation rule is received, this corresponds to "affected." When the selected evaluation rule is affected, that is, when an editing operation of the selected evaluation rule is received (step S32: Yes), the log analysis support device 100b executes steps S13 to S16 again using the edited evaluation rule, recorrects the time stamp of the log, and updates the display of the log confirmation screen. When the selected evaluation rule is not affected, that is, when an editing operation of an evaluation rule that is not selected is received (step S32: No), the log analysis support device 100b generates a log confirmation screen according to the content of the received editing operation and displays it on the display unit 40 (step S33). This step S33 is the same process as step S16, and is a process for updating the log confirmation screen displayed on the display unit 40 in step S16.
[0069] An example of editing the evaluation rules will be described with reference to Fig. 19 and Fig. 20. Fig. 19 is a diagram showing an example of editing the evaluation rules in the log analysis support device 100b according to the third embodiment, and Fig. 20 is a diagram showing an example of a log confirmation screen displayed by the log analysis support device 100b when the editing shown in Fig. 19 is performed.
[0070] FIG. 19 shows an example of an operation for changing the priority of an evaluation rule. In the example shown in FIG. 19, the order of the evaluation rules indicates the priority, and the higher they are displayed, the higher the priority. In this case, the priority is changed by changing the order of the evaluation rules. In the example shown in FIG. 19, the evaluation rule displayed second is changed to the first one by drag and drop. Since the evaluation rules whose priority (order) has been changed are all the evaluation rules selected by the user in step S12, they fall under the above-mentioned case of "influence on the selected evaluation rule". Therefore, the log analysis support device 100b executes the above-mentioned steps S13 to S16 again to reflect the edited contents (change of priority). As a result, the log confirmation screen is also updated to the display contents shown in FIG. 20.
[0071] As described above, the log analysis support device 100b according to this embodiment includes a rule editing unit 13 that accepts an operation to edit the evaluation rules, and when an operation to edit the evaluation rules is accepted, the evaluation rules are changed according to the accepted operation, and when the edited content affects the correction of the timestamp, the timestamp is re-corrected using the changed evaluation rules, and the display on the log confirmation screen is updated. The log analysis support device 100b can flexibly change the evaluation rules in accordance with a request from the user, and it becomes possible to correct the timestamp under the conditions desired by the user.
[0072] In this embodiment, the log analysis support device 100b is realized by adding a rule editing unit 13 to the operation unit 10 of the log analysis support device 100 according to the first embodiment, but the operation unit 10b of the log analysis support device 100b may further include the display correction unit 12 described in the second embodiment, and the display processing unit 23b may further perform an operation similar to that of the display processing unit 23a described in the second embodiment (an operation of updating the display content of the log confirmation screen in accordance with the content of the operation received by the display correction unit 12).
[0073] The configurations shown in the above embodiments are merely examples, and may be combined with other known technologies, or the embodiments may be combined with each other. Also, parts of the configurations may be omitted or modified without departing from the spirit of the invention.
[0074] Various aspects of the present disclosure are summarized below as appendices.
[0075] (Appendix 1) a log acquisition unit that acquires, from each of a plurality of devices that operate in cooperation with other devices, a log file in which a series of logs indicating the operation history of the device is written; a correction unit that corrects a timestamp of the log written in the log file acquired by the log acquisition unit by a predetermined correction amount; a display processing unit that displays the logs, the timestamps of which have been corrected by the correction unit, side by side on a display unit; a rule selection unit that accepts a selection of an evaluation rule to be used for evaluating a result of the time stamp correction by the correction unit; Equipped with the correction unit determines the correction amount to be used in the correction based on the evaluation rule selected by the rule selection unit. A log analysis support device comprising: (Appendix 2) the evaluation rule indicates a condition required for the corrected log, the correction unit evaluates all combinations of the correction amounts that can be set for each of the log files using the evaluation rule selected and accepted by the rule selection unit, and determines that a correction amount of a combination with a high evaluation is to be used for the correction. 2. A log analysis support device according to claim 1. (Appendix 3) the correction unit calculates a conformance rate of the log with respect to the condition indicated by each of the evaluation rules selected by the rule selection unit, and sets a weighted sum of the calculated conformance rates based on priorities set in the evaluation rules as an evaluation of the combination. 3. A log analysis support device according to claim 2. (Appendix 4) The display processing unit causes the conformity rate calculated by the correction unit to be displayed on the display unit together with the log. 4. A log analysis support device according to claim 3. (Appendix 5) the display processing unit causes the display unit to display the log in a format that enables visual confirmation of whether the log conforms to the condition indicated by the evaluation rule selected by the rule selection unit. 5. A log analysis support device according to claim 2, (Appendix 6) the display processing unit causes the display unit to display the log in a format that enables visual confirmation that the log is a log to which the evaluation rule selected by the rule selection unit has been applied. 6. A log analysis support device according to any one of claims 1 to 5. (Appendix 7) a display modification unit that accepts an editing operation of the confirmation screen of the log that is displayed on the display unit by the display processing unit; Equipped with the display processing unit updates the confirmation screen to be displayed on the display unit in accordance with the content of the operation accepted by the display correction unit. 7. A log analysis support device according to any one of claims 1 to 6. (Appendix 8) a rule editing unit that accepts an editing operation of the evaluation rules; a rule update unit that changes the evaluation rules in accordance with the content of the operation received by the rule editing unit; 8. A log analysis support device according to claim 1, comprising: (Appendix 9) A log analysis support method executed by a log analysis support device, comprising: a log acquisition step of acquiring, from each of a plurality of devices that operate in cooperation with other devices, a log file in which a series of logs indicating an operation history of the device is written; a correction step of correcting a timestamp of the log written in the log file acquired in the log acquisition step by a predetermined correction amount; a display step of displaying the logs after the time stamps have been corrected in the correction step side by side on a display unit; a rule selection step of accepting a selection of an evaluation rule to be used for evaluating a result of the time stamp correction in the correction step; Including, In the correction step, the correction amount used in the correction is determined based on the evaluation rule selected in the rule selection step. A log analysis support method comprising: (Appendix 10) the evaluation rule indicates a condition required for the corrected log, In the correction step, all combinations of the correction amounts that can be set for each of the log files are evaluated using the evaluation rule selected in the rule selection step, and a correction amount of a combination with a high evaluation is determined to be used for the correction. 10. The log analysis support method according to claim 9, (Appendix 11) In the correction step, a conformance rate of the log with respect to the condition indicated by each of the evaluation rules selected in the rule selection step is calculated, and the calculated conformance rates are weighted and added based on the priority set in the evaluation rules to obtain an evaluation of the combination. 11. The log analysis support method according to claim 10, (Appendix 12) In the display step, the conformance rate calculated in the correction step is displayed on the display unit together with the log. 12. The log analysis support method according to claim 11, (Appendix 13) In the display step, the display unit displays the log in a format that enables visual confirmation of whether the log conforms to the condition indicated by the evaluation rule selected in the rule selection step. 13. The log analysis support method according to any one of claims 10 to 12. (Appendix 14) In the display step, the display unit displays the log in a format that allows the user to visually recognize that the log is a log to which the evaluation rule selected in the rule selection step is applied. 14. A log analysis support method according to any one of claims 9 to 13. (Appendix 15) a display modification step of accepting an editing operation of the confirmation screen of the log displayed on the display unit in the display step; Including, In the display step, the confirmation screen displayed on the display unit is updated in accordance with the content of the operation accepted in the display correction step. 15. A log analysis support method according to any one of claims 9 to 14. (Appendix 16) a rule editing step of accepting an editing operation of the evaluation rules; a rule updating step of changing the evaluation rules in accordance with the content of the operation accepted in the rule editing step; 16. A log analysis support method according to any one of claims 9 to 15, comprising: (Appendix 17) a log acquisition step of acquiring, from each of a plurality of devices that operate in cooperation with other devices, a log file in which a series of logs indicating an operation history of the device is written; a correction step of correcting a timestamp of the log written in the log file acquired in the log acquisition step by a predetermined correction amount; a display step of displaying the logs after the time stamps have been corrected in the correction step side by side on a display unit; a rule selection step of accepting a selection of an evaluation rule to be used for evaluating a result of the time stamp correction in the correction step; The above is executed by a computer. In the correction step, the correction amount used in the correction is determined based on the evaluation rule selected in the rule selection step. A log analysis support program comprising: (Appendix 18) A monitoring and control system including a plurality of devices, each of which generates a log file in which a series of logs indicating the operation history of the device are written; A log analysis support device according to any one of appendix 1 to 8, Including, The log acquisition unit of the log analysis support device acquires the log file from the device included in the monitoring and control system. A log analysis support system comprising: [Explanation of symbols]
[0076] 1, 1a, 1b information processing device, 10, 10a, 10b operation unit, 11 rule selection unit, 12 display correction unit, 13 rule editing unit, 20, 20a, 20b processing unit, 21 log acquisition unit, 22 correction unit, 23, 23a, 23b display processing unit, 24 rule update unit, 30 memory unit, 31 evaluation rule data, 32 log data, 40 display unit, 50 screen, 51 log display unit, 52 rule display unit, 53 operation interface display unit, 100, 100a, 100b log analysis support device, 110 correction pattern candidate, 200 monitoring control system, 211 log output unit, 212 log recording unit, 220 log file, 300, 300a, 300b log analysis support system.
Claims
1. a log acquisition unit that acquires, from each of a plurality of devices that operate in cooperation with other devices, a log file in which a series of logs indicating the operation history of the device is written; a correction unit that corrects a timestamp of the log written in the log file acquired by the log acquisition unit by a predetermined correction amount; a display processing unit that displays the logs, the timestamps of which have been corrected by the correction unit, side by side on a display unit; a rule selection unit that accepts a selection of an evaluation rule to be used for evaluating a result of the time stamp correction by the correction unit; Equipped with the correction unit determines the correction amount to be used in the correction based on the evaluation rule selected by the rule selection unit. A log analysis support device comprising:
2. the evaluation rule indicates a condition required for the corrected log, the correction unit evaluates all combinations of the correction amounts that can be set for each of the log files using the evaluation rule selected and accepted by the rule selection unit, and determines that a correction amount of a combination with a high evaluation is to be used for the correction.
2. The log analysis support device according to claim 1.
3. the correction unit calculates a conformance rate of the log with respect to the condition indicated by each of the evaluation rules selected by the rule selection unit, and sets a weighted sum of the calculated conformance rates based on priorities set in the evaluation rules as an evaluation of the combination.
3. The log analysis support device according to claim 2.
4. The display processing unit causes the conformity rate calculated by the correction unit to be displayed on the display unit together with the log.
4. The log analysis support device according to claim 3.
5. the display processing unit causes the display unit to display the log in a format that enables visual confirmation of whether the log conforms to the condition indicated by the evaluation rule selected by the rule selection unit.
3. The log analysis support device according to claim 2.
6. the display processing unit causes the display unit to display the log in a format that enables visual confirmation that the log is a log to which the evaluation rule selected by the rule selection unit has been applied.
6. The log analysis support device according to claim 1,
7. a display modification unit that accepts an editing operation of the confirmation screen of the log that is displayed on the display unit by the display processing unit; Equipped with the display processing unit updates the confirmation screen to be displayed on the display unit in accordance with the content of the operation accepted by the display correction unit.
6. The log analysis support device according to claim 1,
8. a rule editing unit that accepts an editing operation of the evaluation rules; a rule update unit that changes the evaluation rules in accordance with the content of the operation received by the rule editing unit; 6. The log analysis support device according to claim 1, further comprising:
9. A log analysis support method executed by a log analysis support device, comprising: a log acquisition step of acquiring, from each of a plurality of devices that operate in cooperation with other devices, a log file in which a series of logs indicating an operation history of the device is written; a correction step of correcting a timestamp of the log written in the log file acquired in the log acquisition step by a predetermined correction amount; a display step of displaying the logs after the time stamps have been corrected in the correction step side by side on a display unit; a rule selection step of accepting a selection of an evaluation rule to be used for evaluating a result of the time stamp correction in the correction step; Including, In the correction step, the correction amount used in the correction is determined based on the evaluation rule selected in the rule selection step. A log analysis support method comprising:
10. the evaluation rule indicates a condition required for the corrected log, In the correction step, all combinations of the correction amounts that can be set for each of the log files are evaluated using the evaluation rule selected in the rule selection step, and a correction amount of a combination with a high evaluation is determined to be used for the correction.
10. The log analysis support method according to claim 9.
11. In the correction step, a conformance rate of the log with respect to the condition indicated by each of the evaluation rules selected in the rule selection step is calculated, and the calculated conformance rates are weighted and added based on the priority set in the evaluation rules to obtain an evaluation of the combination. The log analysis support method according to claim 10 .
12. In the display step, the conformance rate calculated in the correction step is displayed on the display unit together with the log.
12. The log analysis support method according to claim 11.
13. In the display step, the display unit displays the log in a format that enables visual confirmation of whether the log conforms to the condition indicated by the evaluation rule selected in the rule selection step. The log analysis support method according to claim 10 .
14. In the display step, the display unit displays the log in a format that allows the user to visually recognize that the log is a log to which the evaluation rule selected in the rule selection step is applied.
14. The log analysis support method according to claim 9,
15. a display modification step of accepting an editing operation of the confirmation screen of the log displayed on the display unit in the display step; Including, In the display step, the confirmation screen displayed on the display unit is updated in accordance with the content of the operation accepted in the display correction step.
14. The log analysis support method according to claim 9,
16. a rule editing step of accepting an editing operation of the evaluation rules; a rule updating step of changing the evaluation rules in accordance with the content of the operation accepted in the rule editing step; 14. The log analysis support method according to claim 9, further comprising:
17. a log acquisition step of acquiring, from each of a plurality of devices that operate in cooperation with other devices, a log file in which a series of logs indicating an operation history of the device is written; a correction step of correcting a timestamp of the log written in the log file acquired in the log acquisition step by a predetermined correction amount; a display step of displaying the logs after the time stamps have been corrected in the correction step side by side on a display unit; a rule selection step of accepting a selection of an evaluation rule to be used for evaluating a result of the time stamp correction in the correction step; The above is executed by a computer. In the correction step, the correction amount used in the correction is determined based on the evaluation rule selected in the rule selection step. A log analysis support program comprising:
18. A monitoring and control system including a plurality of devices, each of which generates a log file in which a series of logs indicating the operation history of the device are written; A log analysis support device according to any one of claims 1 to 8, Including, The log acquisition unit of the log analysis support device acquires the log file from the device included in the monitoring and control system. A log analysis support system comprising:
Citation Information
Patent Citations
Log analysis method and device
JP2008269084A
