Log file processing method and device, storage medium and electronic equipment

Through attribute analysis and correlation display of log files of different firmware or modules, the problem of information omission or misunderstanding in log file processing is solved, and the efficiency and accuracy of system fault diagnosis and resolution are improved.

CN118656349AActive Publication Date: 2024-09-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410773444.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-16
Publication Date
2024-09-17
Estimated Expiration
2044-06-16

AI Technical Summary

Technical Problem

Due to information omission or misunderstanding in the log file processing method in the prior art, the efficiency of analyzing and solving system failures or performance problems is reduced, and cross-domain collaboration is complicated, which affects the accuracy and speed of problem solving.

Method used

By parsing the attribute information of log attributes for log entries of different firmware or modules, the log parsing results are obtained, and correlation parsing is performed based on the specified attribute information, and the associated log data is integrated and displayed on the same view.

Benefits of technology

It improves the efficiency and accuracy of diagnosing system problems, shortens the repair time, improves the stability and reliability of the system, and solves the problem of problem solving accuracy and speed caused by information omission or misunderstanding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656349A
    Figure CN118656349A
Patent Text Reader

Abstract

The embodiment of the invention provides a log file processing method and device, a storage medium and electronic equipment, and the method comprises the steps: executing a first analysis operation on a group of log files of specified firmware, and obtaining an analysis result corresponding to the group of log files of specified firmware; a second analysis operation is executed on the analysis results corresponding to the log files of the set of specified firmware to obtain a set of associated analysis results, and the second analysis operation is an operation for searching the analysis results corresponding to the log files of the set of specified firmware, and the attribute information of the first specified attribute is the analysis result of the specified attribute information; and according to attribute information of a second specified attribute in the group of log attributes, integrating the group of associated analysis results, and displaying the integrated group of associated analysis results on the same view. The problem that the accuracy and speed of problem solving are affected due to information omission or misunderstanding in a log file processing method in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and specifically, to a log file processing method and device, a storage medium, and an electronic device. Background Art

[0002] In a computer system, there may be multiple types of firmware, such as BMC (Baseboard Management Controller), BIOS (Basic Input / Output System), CPLD (Complex Programmable Logic Device), etc. Different firmware may generate log files with different formats and contents. For example, BMC may record information related to system management and monitoring, BIOS may record data during system startup and hardware initialization, and CPLD may focus on recording hardware configuration and status changes. This fragmentation of log data makes the log file bulky and the data analysis complex. When a system failure or performance problem occurs, it is usually necessary for R&D personnel from multiple fields to work together to analyze the log files generated by different firmware or different modules to locate and solve the problem.

[0003] However, this cross-domain collaboration often leads to lower efficiency in problem analysis and resolution. In addition, due to the fragmentation of log data, team members often need to spend a lot of time manually integrating and analyzing log data, and the accuracy and speed of problem resolution may be affected due to omissions or misunderstandings of information.

[0004] It can be seen that the log file processing method in the related art has the problem that the accuracy and speed of problem solving are affected due to omission or misunderstanding of information. Summary of the invention

[0005] The embodiments of the present application provide a method and device for processing a log file, a storage medium, and an electronic device, so as to at least solve the problem that the accuracy and speed of problem solving are affected by omissions or misunderstandings of information in the log file processing method in the related art.

[0006] According to an embodiment of the present application, a method for processing a log file is provided, comprising: performing a first parsing operation on a group of log files of a specified firmware to obtain a parsing result corresponding to the group of log files of the specified firmware, wherein the first parsing operation is an operation of parsing a group of attribute information of log attributes from the group of log files of the specified firmware, the group of log attributes includes a first specified attribute, and the first specified attribute is parsed according to the attribute information respectively set for the specified firmware in the group of specified firmware; performing a second parsing operation on the parsing result corresponding to the log files of the specified firmware to obtain a group of associated parsing results, wherein the second parsing operation is an operation of searching for the parsing result corresponding to the log files of the specified firmware, in which the attribute information of the first specified attribute is the parsing result of the specified attribute information, and the specified attribute information is used to indicate at least one of the following: the association relationship between different specified firmware, and the association relationship between different modules in the same specified firmware; integrating the group of associated parsing results according to the attribute information of the second specified attribute in the group of log attributes, and displaying the integrated group of associated parsing results on the same view.

[0007] According to another embodiment of the present application, a log file processing device is provided, comprising: a first parsing unit, configured to perform a first parsing operation on a set of log files of a specified firmware, and obtain a parsing result corresponding to the log files of the specified firmware, wherein the first parsing operation is an operation of parsing a set of attribute information of log attributes from the log files of the specified firmware, the set of log attributes includes a first specified attribute, and the first specified attribute is parsed according to the attribute information respectively set for the specified firmware in the set of specified firmware; a second parsing unit, configured to perform a second parsing operation on the parsing result corresponding to the log files of the specified firmware, and obtain a set of associated parsing results, wherein the second parsing operation is an operation of searching for a parsing result in which the attribute information of the first specified attribute is the specified attribute information in the parsing result corresponding to the log files of the specified firmware, and the specified attribute information is used to indicate at least one of the following: an association relationship between different specified firmware, and an association relationship between different modules in the same specified firmware; an execution unit, configured to integrate the set of associated parsing results according to the attribute information of the second specified attribute in the set of log attributes, and display the integrated set of associated parsing results on the same view.

[0008] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0009] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0010] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0011] Through the present application, by parsing the log entries of different firmware or modules according to the attribute information of the log attributes, a log parsing result is obtained, the log parsing result is correlated and parsed based on the specified attribute information to obtain a correlated parsing result, and the correlated log data is centrally displayed on the same view, the efficiency and accuracy of diagnosing system problems can be improved, the repair time can be shortened, and the stability and reliability of the system can be improved, thereby solving the problem that the accuracy and speed of problem solving are affected by the omission or misunderstanding of information in the log file processing method in the related art, thereby achieving the effect of improving the accuracy and efficiency of problem solving. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is a hardware structure block diagram of a server device of a log file processing method according to an embodiment of the present application;

[0013] Figure 2 It is a flowchart of a method for processing a log file according to an embodiment of the present application;

[0014] Figure 3 is a schematic diagram of a log file processing method according to an embodiment of the present application;

[0015] Figure 4 is a schematic diagram of another log file processing method according to an embodiment of the present application;

[0016] Figure 5 is a flow chart of another method for processing log files according to an embodiment of the present application;

[0017] Figure 6 It is a structural block diagram of an optional log file processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0019] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0021] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a log file processing method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0022] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for processing log files in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0023] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a NIC (Network Interface Controller), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be an RF (Radio Frequency) module, which is used to communicate with the Internet wirelessly.

[0024] In this embodiment, a method for processing a log file is provided. Figure 2 is a flow chart of a method for processing a log file according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0025] Step S202, performing a first parsing operation on a set of log files of a specified firmware to obtain a parsing result corresponding to the set of log files of the specified firmware, wherein the first parsing operation is an operation of parsing attribute information of a set of log attributes from the log files of the specified firmware, the set of log attributes includes a first specified attribute, and the first specified attribute is parsed according to the attribute information set for the specified firmware in the set of specified firmware.

[0026] The log file processing method in this embodiment can be applied to the scenario of processing log files generated by different specified firmware. Different firmware may need to record different types of information during error handling and debugging. For example, some firmware may need to record more error stack information, while other firmware may pay more attention to recording the timestamp and trigger conditions of the event; the firmware may provide different log levels, and the definition and use of these levels may vary from firmware to firmware, thus affecting the content of the log file finally generated; different firmware may use different technology stacks or development tools, and the log processing methods of these tools themselves will also affect the format and content of the log file. Due to the existence of these factors, the log files generated by different firmware may vary greatly in format and content.

[0027] For example, in modern computer systems (e.g., storage systems), firmware such as baseboard management controller (BMC), basic input and output system (BIOS), complex programmable logic device (CPLD), etc. play a vital role. These firmwares are not only responsible for managing and monitoring the basic operating status of the hardware, but also for initializing, configuring, and providing runtime support for the system. In order to ensure the stable operation and fault tracking of the system, these firmwares will record the key operations of the system, hardware data, and any abnormal information in their respective firmware logs.

[0028] Firmware logs are a key tool for diagnosing and resolving problems in computer systems. They provide a detailed record of device operation, including time-stamped system events, error codes, hardware status information, etc., which are all necessary data for analyzing and resolving problems. However, due to the complexity of computer systems, different firmware components may generate log files with different formats and contents. For example, the BMC may record information related to system management and monitoring, while the BIOS may record data during system startup and hardware initialization, and the CPLD may focus on recording hardware configuration and status changes.

[0029] This fragmentation of log data not only makes the log files bulky, but also increases the complexity of data analysis. When a system failure or performance problem occurs, it is usually necessary for R&D personnel from multiple fields to work together to analyze the log files generated by different firmware or different modules to locate and solve the problem. This cross-disciplinary collaboration often leads to reduced efficiency in problem analysis and resolution, because each team member may only be familiar with a specific type of firmware or log data, and may not have a sufficient understanding of other parts.

[0030] In addition, due to the lack of a unified log analysis framework or tool, team members often need to spend a lot of time manually integrating and analyzing log data, which is not only time-consuming, but may also affect the accuracy and speed of problem solving due to omissions or misunderstandings of information. Therefore, there is an urgent need to develop a more efficient technical solution that can integrate and analyze log data from different firmware components, improve the efficiency and accuracy of problem diagnosis, and thus optimize the maintenance and management of computer systems.

[0031] In order to at least partially solve the above problems, in this embodiment, the log entries of different firmware or modules are parsed according to the attribute information of the log attributes to obtain the log parsing result, the log parsing result is correlated and parsed based on the specified attribute information to obtain the correlated parsing result, and the correlated log data is centrally displayed on the same view, that is, through the integration and analysis of log data between different firmwares and between different modules of the same firmware, by defining log parsing rules for specific firmware, automatically parsing the log to extract key data, defining the correlation attributes between firmwares and modules, performing log correlation parsing based on timestamp and event type, and centrally displaying the correlated parsing results on the view, the causal relationship between system behavior and performance impact can be effectively identified, and the maintenance efficiency and reliability of the computer system can be improved.

[0032] In this embodiment, a first parsing operation is performed on a group of log files of a specified firmware. The first parsing operation is an operation of parsing a group of attribute information of log attributes from the log files of a group of specified firmware, that is, the log files of the specified firmware are parsed to obtain a group of attribute information of log attributes. The group of log attributes includes a first specified attribute. The first specified attribute is parsed according to the attribute information set for the specified firmware in the group of specified firmware. That is, different firmwares can be targeted to set different attribute information respectively, and the attribute information of the same log attribute of different firmware can be different.

[0033] For example, a group of log attributes may include key attributes, and attribute information of the key attributes of the BMC firmware may include but is not limited to IOCARD_PRESENT, and attribute information of the key attributes of the BIOS firmware may include but is not limited to PCIE_LINK.

[0034] Taking the first designated attribute as a key attribute as an example, a first parsing operation is performed on the BMC log, and the attribute information of the parsed first designated attribute is IOCARD_PRESENT.

[0035] In this embodiment, the parsing result corresponding to the log file of the specified firmware may be a correspondence between a set of log attributes and attribute information corresponding to each log entry in the log file of the specified firmware.

[0036] Optionally, in this embodiment, the attribute information of the log attribute may be empty, that is, the log entry does not contain attribute information corresponding to a certain log attribute.

[0037] Step S204, performing a second parsing operation on the parsing results corresponding to a set of log files of a specified firmware to obtain a set of associated parsing results, wherein the second parsing operation is an operation for searching for the parsing results corresponding to a set of log files of a specified firmware, in which the attribute information of the first specified attribute is the parsing result of the specified attribute information, and the specified attribute information is used to indicate at least one of the following: the association relationship between different specified firmware, and the association relationship between different modules within the same specified firmware.

[0038] In this embodiment, a second parsing operation is performed on the parsing results corresponding to a set of log files of a specified firmware. The second parsing operation is an operation for searching for parsing results corresponding to a set of log files of a specified firmware in which the attribute information of the first specified attribute is the specified attribute information, that is, the attribute information of the first specified attribute in the parsing results corresponding to a set of log files of a specified firmware is associated with the specified attribute information. The number of specified attribute information can be one or more, which is not limited in this embodiment.

[0039] The specified attribute information is used to indicate at least one of the following: an association relationship between different specified firmwares, and an association relationship between different modules within the same specified firmware.

[0040] The associated parsing result may be a result of associating a plurality of parsing results corresponding to a set of log files of a specified firmware based on the specified attribute information.

[0041] For example, combined with Figure 3 Taking the specified attribute information (also called associated attribute information) as IOCARD_PRESENT and PCIE_LINK as an example, if the first specified attribute is a key attribute, the attribute information of the key attribute of the BMC firmware is IOCARD_PRESENT, the attribute information of the key attribute of the CPLD firmware is IOCARD_PRESENT, and the attribute information of the key attribute of the BIOS firmware is PCIE_LINK, then the associated parsing result includes the above three parsing results, and the above three parsing results can also include, in addition to the correspondence between the key attribute and its attribute information, a correspondence between other log attributes in a group of log attributes and their attribute information.

[0042] Step S206: integrating a group of association analysis results according to the attribute information of the second designated attribute in the group of log attributes, and displaying the integrated group of association analysis results on the same view.

[0043] Here, the second designated attribute may be the same as or different from the aforementioned first designated attribute, which is not limited in this embodiment.

[0044] Integrating a group of associated analysis results according to the attribute information of the second specified attribute in a group of log attributes may be integrating a group of associated analysis results in an arrangement order according to the attribute information of the second specified attribute, so as to display the integrated group of associated analysis results on the same view according to the logical relationship between the attribute information of multiple second specified attributes.

[0045] Through this embodiment, the associated log data is centrally displayed on the same view. This not only allows events and behaviors across firmware or modules to be intuitively compared and analyzed, but also greatly improves the efficiency and accuracy of diagnosing system problems. Through this centralized display method, R&D personnel can identify the root cause of the problem more quickly, thereby shortening the repair time and improving the stability and reliability of the system.

[0046] Through the above steps, a first parsing operation is performed on a group of log files of a specified firmware to obtain parsing results corresponding to the group of log files of the specified firmware, wherein the first parsing operation is an operation of parsing a group of attribute information of log attributes from the group of log files of the specified firmware, the group of log attributes includes a first specified attribute, and the first specified attribute is parsed according to the attribute information respectively set for the specified firmware in the group of specified firmware; a second parsing operation is performed on the parsing results corresponding to the group of log files of the specified firmware to obtain a group of associated parsing results, wherein the second parsing operation is an operation of searching for a parsing result in which the attribute information of the first specified attribute is the specified attribute information in the parsing results corresponding to the group of log files of the specified firmware, and the specified attribute information is used to indicate at least one of the following: the association relationship between different specified firmwares, and the association relationship between different modules in the same specified firmware; a group of associated parsing results are integrated according to the attribute information of the second specified attribute in the group of log attributes, and the integrated group of associated parsing results are displayed on the same view, so as to solve the problem that the accuracy and speed of problem solving are affected by omission or misunderstanding of information in the log file processing method in the related art, thereby improving the accuracy and efficiency of problem solving.

[0047] In an exemplary embodiment, a first parsing operation is performed on a set of log files of a specified firmware to obtain parsing results corresponding to the set of log files of the specified firmware, including:

[0048] S11, performing a first parsing operation in parallel on the log file of each specified firmware in a group of specified firmware to obtain a parsing result corresponding to the log file of each specified firmware, wherein the log file of each specified firmware is obtained from a log file storage location corresponding to each specified firmware, and a group of log attributes also includes at least one of the following: log number, timestamp, error code, module identifier, log level, event type, log content.

[0049] In order to improve the log parsing efficiency, the first parsing operation may be performed in parallel on the log file of each specified firmware in a group of specified firmware to obtain a parsing result corresponding to the log file of each specified firmware.

[0050] Usually, the log file is stored in a specific location of the device or system where the firmware is located, such as in a specific folder or directory. To obtain the log file of each specified firmware, you can obtain it by accessing the log file storage location corresponding to the firmware.

[0051] Similar to the above embodiment, the key attributes of different firmware may be different, which may be defined for different firmware. In addition to the key attributes mentioned in the above embodiment, a set of log attributes also includes at least one of the following: log number, timestamp, error code, module identification, log level, event type, log content.

[0052] 1. Log ID: A unique identifier assigned to each log entry to facilitate finding a specific log record when needed.

[0053] For example: LogID:0012345.

[0054] 2. Timestamp: records the specific time when the log is created, usually including date and time.

[0055] For example: 2023-03-15 14:22:10.

[0056] 3. Error Code: This is the code indicating the error or warning recorded in the log, which is useful for identifying the type of problem.

[0057] For example: ErrorCode:0x0001.

[0058] 4. Module ID: Indicates the firmware module that generates the log, which helps locate the location where the problem occurs.

[0059] For example: ModuleID:NetworkController network controller module.

[0060] 5. Log Level: Indicates the severity of the log, such as INFO (Information), WARN (Warning), ERROR, etc., which is used to quickly determine the severity of the problem. Among them, the INFO level is usually used to record general information, the WARN level is used to prompt possible problems, and the ERROR level is used to record errors or abnormal situations.

[0061] For example: LogLevel:ERROR.

[0062] 6. Event Type: Indicates the type of event recorded in the log, such as system startup, device failure, etc.

[0063] For example: EventType:DeviceFailure: device failure.

[0064] 7. Log Message: describes the specific content and related information of the log entry in detail.

[0065] For example: LogMessage: "Network connection lost. Please check the network cable." The log content indicates that the network connection is lost and the network cable needs to be checked.

[0066] Through this embodiment, the log parsing efficiency can be improved by performing the first parsing on the log files of multiple specified firmware in parallel.

[0067] In an exemplary embodiment, before performing a first parsing operation on a set of log files of a specified firmware to obtain a parsing result corresponding to the set of log files of the specified firmware, the method further includes:

[0068] S21, extracting firmware information of a group of specified firmware and attribute information set for a specified firmware in the group of specified firmware from the preset configuration information, wherein the preset configuration information is used to configure the firmware to be parsed for log files and the attribute information set for the firmware to be parsed for log files;

[0069] S22, extracting a group of log files of the specified firmware from a log file storage location corresponding to each specified firmware in the group of specified firmware according to the firmware information of the group of specified firmware.

[0070] The preset configuration information is used to configure the firmware to be subjected to log file parsing and the attribute information set for the firmware to be subjected to log file parsing, that is, the preset configuration information includes the firmware information of the specified firmware and the indication information of the attribute information.

[0071] For example, in this embodiment, the preset configuration information may include but is not limited to: BMC checks that the sensor temperature exceeds a threshold, BMC controls the fan to increase the speed, CPLDPWM control signals change, and BMC records fan speed changes.

[0072] In order to improve resource utilization, in this embodiment, all log files of all firmware of the computer system may not be fully parsed, that is, firmware information of a group of specified firmware and attribute information set for a specified firmware in a group of specified firmware are extracted from the preset configuration information, and according to the firmware information of a group of specified firmware, a group of log files of the specified firmware are extracted from the log file storage location corresponding to each specified firmware in the group of specified firmware.

[0073] Optionally, in order to further reduce the parsed log data, in this embodiment, the first parsing operation may be performed only on the log entries containing the property information set for the specified firmware in a set of specified firmware extracted from the preset configuration information.

[0074] Through this embodiment, based on preset configuration information, some log files are targetedly selected from the full amount of log files for performing the first parsing operation, which can reduce the log data that the system needs to parse, improve system resource utilization, and improve log parsing efficiency.

[0075] In an exemplary embodiment, a first parsing operation is performed on a set of log files of a specified firmware to obtain parsing results corresponding to the set of log files of the specified firmware, including:

[0076] S31, based on the log parsing rules corresponding to a set of specified firmware, parse the log files of a set of specified firmware one by one according to a set of log attributes to obtain the parsing results corresponding to the log files of a set of specified firmware, wherein the log parsing rules corresponding to the set of specified firmware are used to indicate the method of parsing the attribute information of a set of log attributes from the log files of different specified firmware in a set of specified firmware.

[0077] Considering that log files of different firmware may correspond to different log formats, in this embodiment, based on the log parsing rules corresponding to a group of specified firmware, a group of log files of a specified firmware may be parsed one by one according to a group of log attributes.

[0078] The log parsing rule corresponding to a group of specified firmware is used to indicate a method of parsing attribute information of a group of log attributes from log files of different specified firmware in the group of specified firmware.

[0079] For example, in this embodiment, a set of detailed log parsing rules can be defined, which are customized for the specific log record formats of different firmware (such as BMC, BIOS, CPLD, etc.), and corresponding parsing rules are formulated according to their structural characteristics. These parsing rules include but are not limited to identifying and parsing information such as operation timestamps, event types, error codes, and related module identifiers.

[0080] For BMC / BIOS logs, the log record format is defined as: [timestamp][log level][module][log content]. [Log content] usually includes: key value records, key value changes, error descriptions, etc., and the following parsing rules are defined respectively:

[0081] Key value records: parsed according to the "keyword:value" format;

[0082] Key value changes: Parsed according to the format of "value descriptor: value old → value new";

[0083] Error description: Error description is mainly identified by defining specific error identifiers, such as error, fail, fault, etc.

[0084] For CPLD, due to limited storage space, usually only key hardware signals are recorded. One recording method is to use 1 bit to represent 1 signal value, and a hexadecimal number can record 8 signals. When a hardware signal changes, all signal values ​​and the current time are saved in a hexadecimal log. The CPLD log parsing rules define the bits corresponding to all signals, the modules they belong to, and the bytes corresponding to the timestamps.

[0085] In this embodiment, after defining the log parsing rules, the next step is to implement these rules to automatically parse the log files in the computer system. This process mainly scans the log files one by one through a programmatic method to accurately extract key data from them. This data includes but is not limited to the timestamp of the log, the key variables involved, the specific module to which the log belongs, and any error reports recorded.

[0086] Parsing methods include: using regular expressions and fuzzy matching techniques to match specific formats in log text. For example, regular expressions can be used to identify and extract standard timestamp formats, error codes, or specific keywords; and predefined error identifiers can be used to identify error log records in logs.

[0087] Through this embodiment, the log parsing rules corresponding to different firmware are used to parse the log files generated by the firmware, so that parsing results corresponding to different firmware can be obtained, thereby improving the readability of the log data.

[0088] In an exemplary embodiment, after performing a first parsing operation on a set of log files of a specified firmware and obtaining parsing results corresponding to the set of log files of the specified firmware, the method further includes:

[0089] S41, converting the parsing results corresponding to a set of log files of the specified firmware into log data in a specified data format, to obtain log data corresponding to a set of log files of the specified firmware;

[0090] S42, saving the log data corresponding to a set of log files of the specified firmware into a target database, wherein the second parsing operation is performed on the log data corresponding to a set of log files of the specified firmware in the target database.

[0091] In order to facilitate the execution of the second parsing operation, the parsing results corresponding to a set of log files of a specified firmware can be converted into log data of a specified data format, and the log data corresponding to a set of log files of a specified firmware can be obtained, and the log data corresponding to the set of log files of a specified firmware can be saved in the target database. The use of a unified log format can conveniently manage and store log files of various firmwares, and is easy to find and analyze log data.

[0092] For example, in this embodiment, after the logs are centrally processed, they are converted into a unified data format and saved in a database, so that relevant information can be quickly retrieved during subsequent association analysis and result presentation.

[0093] Optionally, in this embodiment, performing a first parsing operation on a set of log files of a specified firmware to obtain a parsing result corresponding to a set of log files of the specified firmware, converting the parsing result corresponding to a set of log files of the specified firmware into log data of a specified data format to obtain log data corresponding to a set of log files of the specified firmware; and saving the log data corresponding to a set of log files of the specified firmware into a target database may include the following steps:

[0094] Step 1, Identify the log format: Identify the format of the log files generated by each firmware. This may include timestamp, log level (such as error, warning, information, etc.), log content, etc.

[0095] Step 2, parse the log content: According to the format of the log generated by each firmware, write or use existing parsing tools to extract key information from the log.

[0096] Step 3, define a unified format: determine a common data format, which may include the aforementioned log attributes, such as fields such as timestamp, log level, module identification, log content, etc. This format can accommodate the main information of all different firmware logs.

[0097] Step 4, convert log data: convert the raw log data of each firmware into a defined unified format, for example, by mapping data, renaming fields, or converting data types.

[0098] Step 5, data standardization: Ensure that the converted data is consistent in format, such as date and time format, log level naming, etc.

[0099] Step 6, storage and use: Store the converted unified format logs in a location that is easy to access and process, such as a database or log management system. This allows for further analysis, monitoring, or report generation.

[0100] Optionally, in this embodiment, the second parsing operation is performed on log data corresponding to a set of log files of a specified firmware in the target database.

[0101] Through this embodiment, by converting the log files generated by different firmware into a unified format for centralized storage, the complexity of data analysis and processing can be simplified, the efficiency can be improved, and the log data of different devices or firmware can be managed in a unified manner.

[0102] In an exemplary embodiment, integrating a set of association parsing results according to attribute information of a second specified attribute in a set of log attributes includes:

[0103] S51, integrating a set of association resolution results according to the association relationship indicated by the designated attribute information and the time sequence indicated by the attribute information of the timestamp, wherein the second designated attribute includes the first designated attribute and the timestamp, and the integrated set of association resolution results is consistent with the association relationship indicated by the designated attribute information;

[0104] The specified attribute information is used to indicate at least one of the following:

[0105] an association relationship between a state signal of a first specified firmware in a set of specified firmware and a firmware operation of a second specified firmware in a set of specified firmware, wherein the specified attribute information includes first attribute information and second attribute information, the first attribute information is used to record the state signal of the first specified firmware, and the second attribute information is used to record the firmware operation of the second specified firmware;

[0106] A state change chain of a specified firmware in a set of specified firmware triggered by a specified event, wherein the specified attribute information includes third attribute information corresponding to each specified firmware in the set of specified firmware, and the third attribute information corresponding to each specified firmware is used to record the state change of each specified firmware;

[0107] an association relationship between a specified operation executed by a fourth specified firmware control target component in a set of specified firmware and an execution result of the specified operation obtained by the fourth specified firmware, wherein the specified attribute information includes fourth attribute information and fifth attribute information, the fourth attribute information is used to record the specified operation executed by the fourth specified firmware control target component, and the fifth attribute information is used to record the execution result of the specified operation obtained by the fourth specified firmware;

[0108] An association relationship between status signals of the same type of each specified firmware in a set of specified firmware, wherein the specified attribute information includes sixth attribute information corresponding to each specified firmware in the set of specified firmware, and the sixth attribute information is used to record the status signals of the same type of each specified firmware.

[0109] In this embodiment, in order to improve the readability of a group of association analysis results displayed on the same view, a group of association analysis results may be integrated according to the association relationship indicated by the specified attribute information and / or the time sequence indicated by the attribute information of the timestamp. That is, a group of association analysis results may be displayed in sequence according to the time sequence, or a group of association analysis results may be displayed in sequence according to the association relationship.

[0110] For example, in this embodiment, the definition of the specified attribute information (also called associated attribute information) includes but is not limited to the following aspects:

[0111] 1. Data association: (1) an association relationship between status signals of the same type of each specified firmware in a set of specified firmware, wherein the specified attribute information includes sixth attribute information corresponding to each specified firmware in the set of specified firmware, and the sixth attribute information is used to record the status signals of the same type of each specified firmware, that is, to associate the same type of attribute information between different firmware or different modules;

[0112] (2) An association relationship between a state signal of a first specified firmware in a set of specified firmware and a firmware operation of a second specified firmware in a set of specified firmware, wherein the specified attribute information includes first attribute information and second attribute information, the first attribute information is used to record the state signal of the first specified firmware, and the second attribute information is used to record the firmware operation of the second specified firmware. That is, the data association between different components refers to the association relationship between the state signal recorded by one component and the data recorded by another component. For example, the temperature signal recorded by a sensor component may be associated with the operation data of another control component.

[0113] 2. Event-triggered state change chain: a state change chain of a specified firmware in a set of specified firmware triggered by a specified event, wherein the specified attribute information includes third attribute information corresponding to each specified firmware in the set of specified firmware, and the third attribute information corresponding to each specified firmware is used to record the state change of each specified firmware. This means that the state change of one component can trigger the state change of other components, forming an event-triggered state change chain. For example, when a sensor detects that the ambient temperature exceeds the preset range, its state change will trigger the control component to start the cooling system, which in turn triggers the state adjustment of other related components.

[0114] 3. Control and feedback mechanism: The relationship between the specified operation performed by the fourth specified firmware control target component in a set of specified firmware and the execution result of the specified operation obtained by the fourth specified firmware, wherein the specified attribute information includes the fourth attribute information and the fifth attribute information, the fourth attribute information is used to record the specified operation performed by the fourth specified firmware control target component, and the fifth attribute information is used to record the execution result of the specified operation obtained by the fourth specified firmware. In the control and feedback mechanism, a component performs a control operation according to the sensor data and records the corresponding changes. For example, a control component can adjust the speed of the fan according to the data of the temperature sensor and record the changes in the fan speed.

[0115] An example of defining associated attribute information is as follows:

[0116] The association relationship between the same type of status signals of each specified firmware in a set of specified firmware: the external card in-place status signal recorded by the CPLD is associated with the external card in-place status data recorded by the BMC, and is also associated with data such as the PCIe link status in the BIOS log.

[0117] A state change chain of a specified firmware in a set of specified firmware triggered by a specified event: PSU (Power supply unit) output voltage / current data abnormality → CPLD power state signal change → CPLD backup power signal change → CPLD up and down power signal change.

[0118] An association relationship between a specified operation executed by a target component controlled by a fourth specified firmware in a set of specified firmware and an execution result of the specified operation acquired by the fourth specified firmware: BMC checks that the sensor temperature exceeds a threshold → BMC controls the fan to increase the speed → CPLD PWM control signal changes → BMC records the change in fan speed.

[0119] Based on the pre-defined event types and associated attributes, the system further matches and associates log entries. Specifically, the system automatically identifies and matches relevant information in log entries based on the definitions of event types and associated attributes, and categorizes the associated log entries. The categorized association results are then saved to the database for future query and analysis.

[0120] Based on the results of correlation analysis, the system integrates the related log data into a unified view for display. This view shows in detail the occurrence time, duration of each event and its relationship with other events.

[0121] The view is presented through a graphical user interface, allowing users to intuitively understand the chronological order and logical relationship of event development. Users can use this interface to view detailed log data for a specific event or observe how multiple events interact with each other.

[0122] Optionally, in this embodiment, combined with Figure 4 , a set of associated analysis results can be stored with log numbers as identifiers.

[0123] Through this embodiment, a group of association analysis results are centrally displayed in the same page view based on the logical order of the association relationship or the time order indicated by the timestamp, which can improve the readability of the displayed log data.

[0124] In an exemplary embodiment, a group of designated firmware is firmware on a same server, and the group of designated firmware includes at least one of the following: a baseboard management controller, a basic input and output system, and a programmable logic device.

[0125] BMC (Baseboard Management Controller) is a firmware used for monitoring and management of server and data center hardware. It is responsible for monitoring hardware status, system health, and remote management. BMC usually communicates with other system components through the IPMI (Intelligent Platform Management Interface) protocol.

[0126] BIOS (Basic Input / Output System) is a firmware that initializes and configures hardware devices when a computer starts so that the operating system can load and run. BIOS is responsible for performing the self-test (POST) process, setting the system clock and other basic system settings.

[0127] Programmable logic device (PLD) is a semiconductor device that can be programmed to implement specific digital logic functions. They are usually used to implement complex digital circuit designs, such as FPGA (Field-Programmable Gate Array) and CPLD (Complex Programmable Logic Device).

[0128] In advanced server and data center environments, firmware BMC, BIOS, and PLD may be used to achieve efficient monitoring and management. BMC is used to monitor and manage the system, BIOS is used to initialize and manage hardware devices, and PLD can be used to implement specific logic functions or hardware interfaces.

[0129] In some custom hardware designs, all three types of firmware may be needed to implement specific functions. For example, a custom embedded system may require a BMC for remote management and monitoring, a BIOS for initializing and configuring hardware devices, and a PLD for implementing specific hardware interfaces or logic functions.

[0130] In some complex industrial control systems, these three types of firmware may be needed to implement highly integrated monitoring, control, and management functions. BMC can be used for remote monitoring and management, BIOS is used to configure and initialize hardware devices, and PLD can be used to implement specific control logic or interfaces.

[0131] In this embodiment, it is taken as an example that the BMC, BIOS and PLD are running in the same server.

[0132] Optionally, in this embodiment, a set of specified firmware may also include but is not limited to:

[0133] Hard drive firmware, whose firmware log is used to record events that affect the operation of the hard drive, such as errors, failures, and performance issues.

[0134] RAID card firmware, whose firmware log is used to record events that affect the operation of the RAID array, including array configuration and status changes.

[0135] Network interface card (NIC) firmware, whose firmware log is used to record events that affect NIC operation, such as connections and disconnections, packet loss, and error rates.

[0136] The Server Management Controller firmware has a firmware log that records hardware status and events, such as temperature, fan speed, and other sensor readings.

[0137] TPM (Trusted Platform Module) firmware, whose firmware log is used to record security events such as firmware or software signature verification or secure boot process.

[0138] Storage controller firmware, whose firmware log is used to record events that affect storage controller operation, including cache battery status or SSD firmware updates.

[0139] Network switch and router firmware, whose firmware logs are used to record events that affect the operation of the network device, such as configuration changes, interface status, and routing table updates.

[0140] As an optional exemplary embodiment of the present application, taking the integration and analysis of log data between different firmware and between different modules of the same firmware in a computer system as an example, the log file processing method of the embodiment of the present application is explained.

[0141] Combination Figure 5 The log file processing method of the embodiment of the present application may include the following steps:

[0142] Log parsing rule definition: First, this embodiment defines log parsing rules, which are customized for specific log record formats, keywords, and modules of different firmware (such as BMC, BIOS, CPLD, etc.). These rules ensure that key information such as operation timestamps, event types, error codes, and related module identifiers are accurately extracted from various log formats.

[0143] Log parsing execution: According to the log parsing rules defined above, the method of this embodiment automatically parses the log files (i.e., source logs) in the computer system one by one, and extracts key data therefrom, including but not limited to timestamps, key variables, attribution modules, and any error reports.

[0144] Association attribute definition: This embodiment further defines association attributes between different firmware components and between different modules in the same firmware. These association definitions indicate how different components interact with each other and how specific events affect the behavior and performance of the entire system.

[0145] Log correlation analysis: After completing the basic log analysis, this embodiment further performs log correlation analysis, which involves matching and correlating log entries of different firmware or modules according to timestamps, event types or defined correlation attributes. Through this correlation analysis, potential causal relationships or patterns can be identified.

[0146] Log association display: Based on the association analysis results of the previous step, this embodiment displays the associated log data in a centralized manner on the same view. This not only allows events and behaviors across firmware or modules to be intuitively compared and analyzed, but also greatly improves the efficiency and accuracy of diagnosing system problems. Through this centralized display method, R&D personnel can identify the root cause of the problem more quickly, thereby shortening the repair time and improving the stability and reliability of the system.

[0147] In general, this embodiment significantly improves the efficiency of diagnosing and resolving firmware problems in a computer system by integrating and optimizing the log analysis process, which is extremely valuable for maintaining a complex computer system environment.

[0148] Through this application, a computer system hardware log correlation analysis system and method are proposed, which aims to improve the integration and analysis of log data between different firmware and modules in the computer system. The method includes defining log parsing rules, correlation attributes, executing log parsing, performing log correlation analysis, and centrally displaying associated log data. Through precise log parsing and correlation analysis, this solution can improve the accuracy of problem diagnosis and ensure the correct identification of the root cause of the problem. The centralized display of associated log data makes the identification and resolution of problems faster and reduces the time to locate the problem. The unified analysis framework promotes effective collaboration among personnel in different professional fields and improves the overall work efficiency of the team. Timely and accurate problem handling helps maintain the stability and reliability of the system, which is particularly important for computer systems that rely on high availability.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0150] According to another aspect of the embodiment of the present application, a log file processing device is also provided, which is used to implement the log file processing method provided in the above embodiment, which has been described and will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0151] Figure 6 is a structural block diagram of an optional log file processing device provided in an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0152] A first parsing unit 602 is configured to perform a first parsing operation on a set of log files of a specified firmware to obtain a parsing result corresponding to the set of log files of the specified firmware, wherein the first parsing operation is an operation of parsing attribute information of a set of log attributes from the log files of the specified firmware, the set of log attributes includes a first specified attribute, and the first specified attribute is parsed according to the attribute information respectively set for the specified firmware in the set of specified firmware;

[0153] The second parsing unit 604 is used to perform a second parsing operation on the parsing results corresponding to the log files of a set of specified firmware to obtain a set of associated parsing results, wherein the second parsing operation is an operation of searching for the parsing results corresponding to the log files of the set of specified firmware, in which the attribute information of the first specified attribute is the parsing result of the specified attribute information, and the specified attribute information is used to indicate at least one of the following: the association relationship between different specified firmwares, and the association relationship between different modules in the same specified firmware;

[0154] The execution unit 606 is used to integrate a group of correlation analysis results according to the attribute information of the second designated attribute in the group of log attributes, and display the integrated group of correlation analysis results on the same view.

[0155] It should be noted that the first parsing unit 602 in this embodiment can be used to execute the above step S202, the second parsing unit 604 in this embodiment can be used to execute the above step S204, and the execution unit 606 in this embodiment can be used to execute the above step S206.

[0156] Through the embodiment of the present application, a first parsing operation is performed on a group of log files of a specified firmware to obtain a parsing result corresponding to the group of log files of the specified firmware, wherein the first parsing operation is an operation of parsing a group of attribute information of log attributes from the group of log files of the specified firmware, the group of log attributes includes a first specified attribute, and the first specified attribute is parsed according to the attribute information respectively set for the specified firmware in the group of specified firmware; a second parsing operation is performed on the parsing result corresponding to the group of log files of the specified firmware to obtain a group of associated parsing results, wherein the second parsing operation is an operation of searching for the parsing result of the attribute information of the first specified attribute in the parsing result corresponding to the group of log files of the specified firmware as the parsing result of the specified attribute information, and the specified attribute information is used to indicate at least one of the following: the association relationship between different specified firmwares, and the association relationship between different modules in the same specified firmware; a group of associated parsing results are integrated according to the attribute information of the second specified attribute in the group of log attributes, and the integrated group of associated parsing results are displayed on the same view, thereby solving the problem that the accuracy and speed of problem solving are affected by omission or misunderstanding of information in the log file processing method in the related art.

[0157] In an exemplary embodiment, the first parsing unit includes:

[0158] A first parsing module is used to perform a first parsing operation on the log file of each specified firmware in a group of specified firmware in parallel to obtain a parsing result corresponding to the log file of each specified firmware, wherein the log file of each specified firmware is obtained from the log file storage location corresponding to each specified firmware, and a group of log attributes also includes at least one of the following: log number, timestamp, error code, module identifier, log level, event type, log content.

[0159] In an exemplary embodiment, the above device further comprises:

[0160] A first extraction unit is used to extract firmware information of a group of specified firmware and attribute information set for a specified firmware in the group of specified firmware from preset configuration information before performing a first parsing operation on a group of log files of a specified firmware to obtain a parsing result corresponding to the group of log files of the specified firmware, wherein the preset configuration information is used to configure the firmware to be parsed for the log file and the attribute information set for the firmware to be parsed for the log file;

[0161] The second extracting unit is used to extract a group of log files of the specified firmware from the log file storage location corresponding to each specified firmware in the group of specified firmware according to the firmware information of the group of specified firmware.

[0162] In an exemplary embodiment, the first parsing unit includes:

[0163] The second parsing module is used to parse the log files of a group of specified firmware one by one according to a set of log attributes based on the log parsing rules corresponding to the group of specified firmware, and obtain the parsing results corresponding to the log files of the group of specified firmware, wherein the log parsing rules corresponding to the group of specified firmware are used to indicate the method of parsing the attribute information of a group of log attributes from the log files of different specified firmware in the group of specified firmware.

[0164] In an exemplary embodiment, the above device further comprises:

[0165] A conversion unit, configured to, after performing a first parsing operation on a set of log files of a specified firmware and obtaining a parsing result corresponding to the set of log files of the specified firmware, convert the parsing result corresponding to the set of log files of the specified firmware into log data in a specified data format, and obtain log data corresponding to the set of log files of the specified firmware;

[0166] The saving unit is used to save the log data corresponding to a set of log files of the specified firmware into a target database, wherein the second parsing operation is performed on the log data corresponding to the set of log files of the specified firmware in the target database.

[0167] In an exemplary embodiment, the execution unit includes:

[0168] an integration module, configured to integrate a set of association analysis results according to the association relationship indicated by the specified attribute information and the time sequence indicated by the attribute information of the timestamp, wherein the second specified attribute includes the first specified attribute and the timestamp, and the integrated set of association analysis results is consistent with the association relationship indicated by the specified attribute information;

[0169] The specified attribute information is used to indicate at least one of the following:

[0170] an association relationship between a state signal of a first specified firmware in a set of specified firmware and a firmware operation of a second specified firmware in a set of specified firmware, wherein the specified attribute information includes first attribute information and second attribute information, the first attribute information is used to record the state signal of the first specified firmware, and the second attribute information is used to record the firmware operation of the second specified firmware;

[0171] A state change chain of a specified firmware in a set of specified firmware triggered by a specified event, wherein the specified attribute information includes third attribute information corresponding to each specified firmware in the set of specified firmware, and the third attribute information corresponding to each specified firmware is used to record the state change of each specified firmware;

[0172] an association relationship between a specified operation executed by a fourth specified firmware control target component in a set of specified firmware and an execution result of the specified operation obtained by the fourth specified firmware, wherein the specified attribute information includes fourth attribute information and fifth attribute information, the fourth attribute information is used to record the specified operation executed by the fourth specified firmware control target component, and the fifth attribute information is used to record the execution result of the specified operation obtained by the fourth specified firmware;

[0173] An association relationship between status signals of the same type of each specified firmware in a set of specified firmware, wherein the specified attribute information includes sixth attribute information corresponding to each specified firmware in the set of specified firmware, and the sixth attribute information is used to record the status signals of the same type of each specified firmware.

[0174] In an exemplary embodiment, a group of designated firmware is firmware on a same server, and the group of designated firmware includes at least one of the following: a baseboard management controller, a basic input and output system, and a programmable logic device.

[0175] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0176] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0177] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a ROM (Read-Only Memory), a RAM (Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk.

[0178] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0179] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0180] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0181] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0182] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0183] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.

[0184] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0185] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for processing a log file, characterized in that: include: Performing a first parsing operation on a set of log files of a specified firmware to obtain a parsing result corresponding to the set of log files of the specified firmware, wherein the first parsing operation is an operation of parsing attribute information of a set of log attributes from the log files of the specified firmware, the set of log attributes includes a first specified attribute, and the first specified attribute is parsed according to the attribute information respectively set for the specified firmware in the set of specified firmware; A second parsing operation is performed on the parsing results corresponding to the log files of the set of specified firmware to obtain a set of associated parsing results, wherein the second parsing operation is an operation for searching for the parsing results corresponding to the log files of the set of specified firmware, in which the attribute information of the first specified attribute is the parsing result of the specified attribute information, and the specified attribute information is used to indicate at least one of the following: the association relationship between different specified firmware, and the association relationship between different modules within the same specified firmware; the set of associated parsing results are integrated according to the attribute information of the second specified attribute in the set of log attributes, and the integrated set of associated parsing results are displayed on the same view.

2. The method according to claim 1, characterized in that The performing a first parsing operation on a set of log files of a specified firmware to obtain parsing results corresponding to the set of log files of the specified firmware includes: The first parsing operation is performed in parallel on the log file of each specified firmware in the group of specified firmware to obtain a parsing result corresponding to the log file of each specified firmware, wherein the log file of each specified firmware is obtained from the log file storage location corresponding to each specified firmware, and the group of log attributes also includes at least one of the following: log number, timestamp, error code, module identifier, log level, event type, log content.

3. The method according to claim 1, characterized in that Before performing the first parsing operation on a set of log files of the specified firmware to obtain parsing results corresponding to the set of log files of the specified firmware, the method further includes: Extracting firmware information of the group of specified firmware and attribute information set for the specified firmware in the group of specified firmware from the preset configuration information, wherein the preset configuration information is used to configure the firmware to be parsed for log files and the attribute information set for the firmware to be parsed for log files; According to the firmware information of the set of specified firmware, the log files of the set of specified firmware are extracted from the log file storage location corresponding to each specified firmware in the set of specified firmware.

4. The method according to claim 1, characterized in that: The performing a first parsing operation on a set of log files of a specified firmware to obtain parsing results corresponding to the set of log files of the specified firmware includes: Based on the log parsing rules corresponding to the set of specified firmware, the log files of the set of specified firmware are parsed one by one according to the set of log attributes to obtain the parsing results corresponding to the log files of the set of specified firmware, wherein the log parsing rules corresponding to the set of specified firmware are used to indicate the method of parsing the attribute information of the set of log attributes from the log files of different specified firmware in the set of specified firmware.

5. The method according to claim 1, characterized in that After performing the first parsing operation on a set of log files of the specified firmware to obtain parsing results corresponding to the set of log files of the specified firmware, the method further includes: Converting the parsing results corresponding to the log files of the set of specified firmware into log data in a specified data format to obtain the log data corresponding to the log files of the set of specified firmware; The log data corresponding to the log files of the set of specified firmware are saved in a target database, wherein the second parsing operation is performed on the log data corresponding to the log files of the set of specified firmware in the target database.

6. The method according to claim 1, characterized in that The integrating the set of association analysis results according to the attribute information of the second specified attribute in the set of log attributes includes: Integrating the set of association resolution results according to the association relationship indicated by the designated attribute information and the time sequence indicated by the attribute information of the timestamp, wherein the second designated attribute includes the first designated attribute and the timestamp, and the integrated set of association resolution results is consistent with the association relationship indicated by the designated attribute information; The specified attribute information is used to indicate at least one of the following: an association relationship between a state signal of a first specified firmware in the set of specified firmware and a firmware operation of a second specified firmware in the set of specified firmware, wherein the specified attribute information includes first attribute information and second attribute information, the first attribute information is used to record the state signal of the first specified firmware, and the second attribute information is used to record the firmware operation of the second specified firmware; A state change chain of a specified firmware in the set of specified firmware triggered by a specified event, wherein the specified attribute information includes third attribute information corresponding to each specified firmware in the set of specified firmware, and the third attribute information corresponding to each specified firmware is used to record the state change of each specified firmware; an association relationship between a designated operation executed by a fourth designated firmware in the group of designated firmware and an execution result of the designated operation acquired by the fourth designated firmware, wherein the designated attribute information includes fourth attribute information and fifth attribute information, the fourth attribute information is used to record the designated operation executed by the fourth designated firmware controlling the target component, and the fifth attribute information is used to record the execution result of the designated operation acquired by the fourth designated firmware; The association relationship between the same type of status signals of each specified firmware in the group of specified firmware, wherein the specified attribute information includes sixth attribute information corresponding to each specified firmware in the group of specified firmware, and the sixth attribute information is used to record the same type of status signals of each specified firmware.

7. The method according to any one of claims 1 to 6, characterized in that The set of specified firmware is firmware on the same server, and the set of specified firmware includes at least one of the following: a baseboard management controller, a basic input and output system, and a programmable logic device.

8. A log file processing device, characterized in that: include: A first parsing unit, configured to perform a first parsing operation on a set of log files of a specified firmware to obtain a parsing result corresponding to the log files of the specified firmware, wherein the first parsing operation is an operation of parsing attribute information of a set of log attributes from the log files of the specified firmware, the set of log attributes includes a first specified attribute, and the first specified attribute is parsed according to the attribute information respectively set for the specified firmware in the specified firmware; A second parsing unit is used to perform a second parsing operation on the parsing results corresponding to the log files of the set of specified firmware to obtain a set of associated parsing results, wherein the second parsing operation is an operation of searching for the parsing results corresponding to the log files of the set of specified firmware, wherein the attribute information of the first specified attribute is a parsing result of the specified attribute information, and the specified attribute information is used to indicate at least one of the following: an association relationship between different specified firmwares, and an association relationship between different modules in the same specified firmware; The execution unit is used to integrate the group of association analysis results according to the attribute information of the second designated attribute in the group of log attributes, and display the integrated group of association analysis results on the same view.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Massive multi-source isomerism log correlation analyzing method

    CN103546312A

  • Log correlation analysis method based on time axis events

    CN108964995A

  • Log analysis processing method, device and equipment and readable storage medium

    CN110069464A

  • System and method to diagnose applications by accessing log files associated with different subsystems of a data center via a common interface

    US10372595B1

  • Correlating logs from multiple sources based on log content

    US20200371897A1