Log data processing method, device and equipment and readable storage medium

By adding extended fields to server logs to fill in detailed information and stripping them when parsed by the IPMI tool, IPMI specification limitations and compatibility issues are solved, fault analysis and repair efficiency is improved, and the log management process is simplified.

CN118820009APending Publication Date: 2024-10-22XINHUASAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410825564.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In existing server log management systems, the IPMI specification limits the amount of information in event logs, making fault analysis and repair complex. The custom log format is incompatible with the IPMI standard, increasing the complexity of maintenance work and the possibility of errors.

Method used

When standard log data is generated, extended fields are added to fill in information such as serial number, manufacturer, and model, and compatibility is maintained during storage and retrieval. Extended fields are stripped when parsed by the ipmitool tool to ensure that the log data complies with IPMI specifications.

Benefits of technology

It significantly improves the efficiency of fault analysis and maintenance, ensures the compatibility and consistency of log information, simplifies the maintenance process, and reduces service costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820009A_ABST
    Figure CN118820009A_ABST
Patent Text Reader

Abstract

The invention provides a log data processing method, device and equipment and a readable storage medium, and the method comprises the steps: responding to an event generated by standard log data, adding a specified field at a specified position of the standard log data, and filling the specified field with target data to obtain to-be-stored log data; searching corresponding log data in the specified storage area according to a log acquisition request; and stripping the specified field of the found log data to obtain recovered standard log data. According to the technical scheme, the expansion field is added to the standard log, detailed information of the fault device is integrated, the practical value of the log is enhanced, operation and maintenance personnel can conveniently and rapidly position and replace the fault component, and meanwhile compatibility with an existing management tool is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a log data processing method, device, equipment and readable storage medium. Background Art

[0002] In the field of modern information technology, servers are the core components of enterprise IT infrastructure, and their stability and maintainability are of vital importance. The daily operation and maintenance of servers and the efficiency of fault response directly affect business continuity and operating costs. As an embedded monitoring system, the baseboard management controller (BMC) has the important responsibility of monitoring the hardware status of the server and recording event logs. These event logs, namely the system event log (SEL), are the key basis for diagnosing and solving problems, and play an irreplaceable role in quickly locating the cause of the fault and taking timely countermeasures.

[0003] For a long time, the SEL event log generated according to the Intelligent Platform Management Interface (IPMI) specification has had the problem of limited information. In particular, the traditional IPMI specification limits the size of the SEL log to only 16 bytes, which is not enough in practical applications. For example, when a server memory module fails, the BMC can only record simple fault information, and cannot include detailed information such as serial number (SN), manufacturer, model, etc. in the log. In this case, although the BMC can detect the fault, the subsequent maintenance operations become cumbersome and complicated. After receiving the fault report, the service provider's technical support team often needs to further collect specific information about the hardware from the customer in order to accurately match the appropriate spare parts for replacement. This process undoubtedly prolongs the maintenance cycle and increases service costs.

[0004] Faced with this challenge, some server manufacturers have tried to bypass the limitations of the IPMI specification and designed and implemented their own logging formats in order to display richer log content in the Web management interface. This type of customized log format can indeed provide more details, including device serial number, manufacturer, and model, thereby significantly improving the efficiency of fault analysis and processing. However, this approach also brings new problems: because the customized log format is incompatible with the IPMI standard, common management tools such as ipmitool cannot correctly parse these logs. As a command-line tool widely used for remote server management, ipmitool's inability to recognize customized formats means that users and operation and maintenance personnel cannot view and manage event logs of all servers through a unified tool chain, which increases the complexity of maintenance work and the possibility of errors. Summary of the invention

[0005] In view of this, the present specification provides a log data processing method, device, electronic device, and readable storage medium to improve the above-mentioned problem of complex and error-prone log management.

[0006] The specific technical solutions are as follows:

[0007] The present specification provides a log data processing method, which is applied to a BMC device. The method includes: in response to an event generated by standard log data, adding a specified field at a specified position of the standard log data, filling the specified field with target data to obtain log data to be stored, and storing the log data to be stored in a specified storage area, wherein the target data is used to enrich the standard log data according to a preset rule; receiving a log acquisition request from a specified channel, searching for corresponding log data in the specified storage area according to the log acquisition request; stripping the specified field of the found log data to obtain restored standard log data, and returning the restored standard log data to respond to the log acquisition request.

[0008] As a technical solution, the standard log data is a standard SEL log, and the log acquisition request of the designated channel is a log acquisition request sent by the peer device through ipmitool.

[0009] As a technical solution, the target data includes serial number information and / or manufacturer information and / or model information of a device associated with a standard SEL log, and the preset rules include enriching hardware information in the standard SEL log according to the target data, and the hardware information includes serial number information and / or manufacturer information and / or model information.

[0010] As a technical solution, in response to an event generated by standard log data, a specified field is added at a specified position of the standard log data, target data is filled in the specified field to obtain the log data to be stored, and the log data to be stored is stored in a specified storage area, including: adding a character array field of a standard SEL structure at the end of a standard SEL log, and filling the target data in the character array field.

[0011] The present specification also provides a log data processing device, which is applied to a BMC device, and the device includes: a first module, which is used to respond to an event generated by standard log data, add a specified field at a specified position of the standard log data, fill the specified field with target data to obtain log data to be stored, and store the log data to be stored in a specified storage area, wherein the target data is used to enrich the standard log data according to preset rules; a second module, which is used to receive a log acquisition request from a specified channel, and search for corresponding log data in the specified storage area according to the log acquisition request; and a third module, which is used to strip the specified field of the found log data to obtain restored standard log data, and return the restored standard log data to respond to the log acquisition request.

[0012] As a technical solution, the standard log data is a standard SEL log, and the log acquisition request of the designated channel is a log acquisition request sent by the peer device through ipmitool.

[0013] As a technical solution, the target data includes serial number information and / or manufacturer information and / or model information of a device associated with a standard SEL log, and the preset rules include enriching hardware information in the standard SEL log according to the target data, and the hardware information includes serial number information and / or manufacturer information and / or model information.

[0014] As a technical solution, in response to an event generated by standard log data, a specified field is added at a specified position of the standard log data, target data is filled in the specified field to obtain the log data to be stored, and the log data to be stored is stored in a specified storage area, including: adding a character array field of a standard SEL structure at the end of a standard SEL log, and filling the target data in the character array field.

[0015] This specification also provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned log data processing method.

[0016] This specification also provides a readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned log data processing method.

[0017] The above technical solution provided in this specification brings at least the following beneficial effects:

[0018] The additional extended fields in the generated standard log integrate detailed information about the faulty device, such as SN, manufacturer, model, etc., which greatly enhances the practical value of the log and facilitates operation and maintenance personnel to quickly locate and replace faulty parts while ensuring compatibility with existing management tools. When users use ipmitool to query, the extended information is automatically stripped and logs that comply with IPMI specifications are returned, achieving multi-channel log consistency and significantly improving the efficiency and convenience of server operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the drawings required for use in the implementation methods of this specification or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the implementation methods of this specification.

[0020] Figure 1 is a flow chart of a log data processing method in one embodiment of the present specification;

[0021] Figure 2 is a structural diagram of a log data processing device in one embodiment of the present specification;

[0022] Figure 3 It is a hardware structure diagram of an electronic device in one implementation mode of this specification.

[0023] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION

[0024] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments, rather than limiting this specification. The singular forms of "a", "said" and "the" used in this specification and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.

[0025] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at the time of" or "when" or "in response to determining".

[0026] In the context of the rapid development of modern information technology, servers are the core equipment of data centers, and their stability and reliability are crucial to enterprise operations. Server maintenance and upkeep (maintenance), especially fault detection and rapid response, are key links to ensure the normal operation of servers. Event logs are important tools for recording server operating status and problems, and they play an irreplaceable role in helping maintenance personnel diagnose and handle faults.

[0027] The server's baseboard management controller (BMC) is responsible for generating event logs and reporting them through the Intelligent Platform Management Interface (IPMI) specification. IPMI is an open standard for server hardware management and monitoring that defines a mechanism that allows users and system administrators to remotely monitor hardware health status, system health, and various statistics.

[0028] The IPMI specification has certain limitations in the format of the event log (SEL). The format of the SEL event log is usually only 16 bytes, which limits the amount of information that the log can contain. For example, when a hardware component in a server (such as a memory bar, CPU, hard disk, etc.) fails, maintenance personnel cannot directly obtain key information such as the serial number (SN), manufacturer, model, etc. of the component through the SEL event log alone. This information is crucial for quickly locating the problem and selecting the appropriate spare parts.

[0029] Some technical solutions choose to abandon the IPMI specification and customize a set of log format specifications, and display richer log information on the web interface. Although this method can provide more information, it also brings new problems:

[0030] Compatibility issues: The customized log format is incompatible with the IPMI specification, which makes it impossible to obtain or parse these logs using standard IPMI tools (such as ipmitool), increasing the difficulty for users.

[0031] Information inconsistency: The log information displayed on the web interface and ipmitool is inconsistent, which may cause confusion for maintenance personnel when comparing information between different interfaces.

[0032] In view of this, this manual aims to provide a technical solution that can provide richer hardware component information in the event log without sacrificing IPMI specification compatibility. While maintaining compatibility with existing IPMI tools, expand the format of the SEL event log to include more critical information. Ensure the consistency of log information displayed on different channels (such as the Web interface and ipmitool) to avoid confusion caused by inconsistent information. Improve the efficiency and accuracy of maintenance work and reduce the risk of misoperation due to insufficient information. By solving these technical problems, the convenience and efficiency of server maintenance can be significantly improved, thereby saving costs for enterprises and improving service quality.

[0033] The specific technical solution is described below.

[0034] In one embodiment, the present specification provides a log data processing method, which is applied to a BMC device, the method comprising: in response to an event generated by standard log data, adding a specified field at a specified position of the standard log data, filling the specified field with target data to obtain log data to be stored, and storing the log data to be stored in a specified storage area, wherein the target data is used to enrich the standard log data according to preset rules; receiving a log acquisition request from a specified channel, searching for corresponding log data in the specified storage area according to the log acquisition request; stripping the specified field of the found log data to obtain restored standard log data, and returning the restored standard log data in response to the log acquisition request.

[0035] Specifically, Figure 1 , including the following steps:

[0036] Step S11, in response to an event generated by standard log data, adding a specified field at a specified position of the standard log data, filling the specified field with target data to obtain log data to be stored, and storing the log data to be stored in a specified storage area.

[0037] When an event generated by standard log data is triggered, an extension field is first added to the specified position at the end of the log data. This extension field is a character array used to store additional information, such as the serial number (SN), manufacturer, model, etc. of the hardware component. This information is crucial for maintenance personnel to quickly locate problems and select appropriate spare parts.

[0038] For example, when a server's memory module fails, the BMC not only records the failure event, but also records the SN, manufacturer, and model of the memory module in the extended field of the log. In this way, even if the original SEL log format is limited, the extended field can provide sufficient information.

[0039] Assuming the standard SEL log format is 16 bytes, we design a new structure SEL_NEWRECORD_S, which adds an extension field to the original SEL record. When the BMC detects a memory bar failure, it collects relevant information about the memory bar and fills it into the extension field of the SEL_NEWRECORD_S structure. The BMC then stores this new log record in a specified storage area, such as the server's non-volatile memory (NVRAM).

[0040] Step S12: receiving a log acquisition request from a designated channel, and searching for corresponding log data in the designated storage area according to the log acquisition request.

[0041] When a user or maintenance personnel initiates a log acquisition request through a specified channel (such as a Web interface or ipmitool), this method searches for the corresponding log data in the specified storage area according to the request. This step ensures that the user can access the complete log information, including standard logs and additional information in the extended field.

[0042] The user initiates a request through the web interface to view the most recent fault event. After receiving the request, the BMC retrieves the corresponding SEL_NEWRECORD_S log record in NVRAM and provides it to the user.

[0043] Step S13: stripping the specified field of the found log data to obtain restored standard log data, and returning the restored standard log data to respond to the log acquisition request.

[0044] After retrieving the log data, this method will perform necessary processing to ensure that the returned log data is compatible with existing IPMI tools. Specifically, it strips the extended fields in the log data, restores it to the standard log format, and then returns it to the requester.

[0045] When a user initiates a log acquisition request through the ipmitool tool, the BMC retrieves the SEL_NEWRECORD_S log record from the NVRAM. Since the ipmitool cannot parse the extended field, the BMC strips the extended field, retains only the standard 16-byte SEL log data, and then returns it to the user. In this way, when the user uses the ipmitool, the log data seen is consistent with the log data seen on the web interface in terms of core information, except that the additional information in the extended field is missing.

[0046] This implementation not only enriches the description of the event log and improves the efficiency of maintenance work, but also maintains compatibility with existing IPMI tools, solving the information shortage and compatibility problems in the prior art.

[0047] In one implementation, an innovative design is made to address the problems encountered during server maintenance, aiming to improve the practicality and operability of event logs, especially achieving a breakthrough in the processing of log data generated by the BMC (baseboard management controller).

[0048] When a component in the server fails, the BMC, as a core component for monitoring and managing the system status, automatically generates a standard event log. In this technical solution, once the standard log data is generated, the system immediately intervenes and intelligently adds a specific extension field to the end of the log record. This newly added field is carefully designed as a character array to carry additional faulty device information, such as key data such as serial number (SN), manufacturer, model, etc. The BMC collects these detailed information through internal logic and fills them into the newly added specified fields. In this way, the originally concise standard log is transformed into a "rich log" rich in key information required for operation and maintenance. Subsequently, this expanded log data to be stored will be properly stored in the designated storage area of ​​the server, such as non-volatile memory or hard disk, to ensure data persistence and accessibility.

[0049] Suppose a memory module on a memory slot of a server fails. Traditionally, the BMC may only record the basic information of "memory failure". With this technical solution, the BMC not only records this basic event, but also adds specific details in the extended field of the log: "Memory slot A2, SN: ABC123XYZ, manufacturer: Kingston, model: KVR2133D3D4R9S / 8G". Such log information greatly simplifies the subsequent maintenance process, so that service engineers no longer need to ask customers for additional hardware information, and can quickly lock the required spare parts based on the log, greatly improving maintenance efficiency.

[0050] Considering the needs of log acquisition in different scenarios, when users or operation and maintenance personnel request log information through standardized tools such as ipmitool, the system will first search for the corresponding log data in the specified storage area according to the specific content of the request. In order to ensure compatibility with existing log viewing tools, the solution is specially designed with an intelligent stripping mechanism. In other words, once the log record found contains the above-mentioned extended fields, the system will strip off these customized, ipmitool-unrecognizable extended information before returning it to ipmitool. In this way, even if ipmitool can only parse logs that comply with the original IPMI specification, it can still read basic event information smoothly without failing due to incompatible formats. At the same time, users and operation and maintenance personnel can obtain a richer log view through other channels (such as the Web interface), taking into account both compatibility and information richness.

[0051] Through this innovative log data processing method, not only can the content of event logs be greatly expanded, and the convenience and efficiency of operation and maintenance be improved, but also the compatibility problem can be cleverly solved, ensuring seamless connection between different log viewing tools and platforms, reflecting the practicality and flexibility of the technical solution.

[0052] In one implementation, the standard log data is a standard SEL log, and the log acquisition request of the designated channel is a log acquisition request sent by the peer device through ipmitool.

[0053] In one embodiment, the target data includes serial number information and / or manufacturer information and / or model information of a device associated with a standard SEL log, and the preset rules include enriching hardware information in the standard SEL log according to the target data, and the hardware information includes serial number information and / or manufacturer information and / or model information.

[0054] In one embodiment, in response to an event generated by standard log data, a specified field is added at a specified position of the standard log data, target data is filled in the specified field to obtain the log data to be stored, and the log data to be stored is stored in a specified storage area, including: adding a character array field of a standard SEL structure at the end of the standard SEL log, and filling the target data in the character array field.

[0055] In one implementation, the log content is enriched while maintaining the compatibility of the original log standard, thereby simplifying the maintenance process of the server.

[0056] First, when the server's monitoring system (such as BMC) detects any hardware event (such as hardware failure, temperature abnormality, etc.), the system not only generates a standard log entry, but also automatically expands it. This expansion process involves adding a flexible additional field to the end of the standard log data structure. This additional field is designed as a highly customized structure that can accommodate additional metadata, such as the serial number (SN) of the faulty component, the manufacturer's name, model specifications, etc. The BMC collects these detailed information in real time through built-in algorithms and sensors and fills them into the extended field. After that, this "enhanced" log containing rich information is securely stored in the server's designated storage medium for long-term archiving and quick retrieval.

[0057] When maintenance personnel or automated management systems need to query these logs, the system receives a log acquisition request, and no matter what channel the request comes from (such as network interface, management software or special tools), it will trigger an intelligent retrieval process. The process first locates the relevant log entries in the storage area, which ensures fast access to log data.

[0058] In order to take into account the compatibility of different log viewing tools, especially standard tools like ipmitool, the system adopts a flexible data processing strategy when responding to log requests. Specifically, if the request comes from ipmitool, the system will temporarily remove the custom extension fields added before returning the log content, and only provide basic log information that complies with the IPMI specification to ensure that ipmitool can correctly parse and display it. If the request comes from a platform or application that supports the new log format (such as a Web management interface), complete and rich log content will be provided, including all extended information. This mechanism effectively balances the comprehensiveness of information and the compatibility requirements of the system.

[0059] The above implementation not only improves the practicality of logs, making it easier for operation and maintenance personnel to quickly locate problems and prepare appropriate spare parts, but also maintains compatibility with existing log management systems and tools, avoiding system integration problems caused by format changes, thereby improving the efficiency and accuracy of server maintenance as a whole.

[0060] In one implementation, a character array field is added to the end of the standard SEL log format for expansion; when an event log is generated, the BMC collects the SN, manufacturer, and model information of the device corresponding to the event log and fills it into the expanded field.

[0061] After the fields are expanded, if they are reported directly to ipmitool, they will certainly not be parsed, so a conversion is required; when the user uses ipmitool to obtain the SEL event log, the fields filled in at the end are deleted and then returned, which can also ensure that ipmitool can parse the original event log normally; that is, it is guaranteed that ipmitool can still parse the corresponding event log, although it certainly cannot parse our newly added content.

[0062] In this way, in addition to ensuring that ipmitool can still parse the original event logs, the event logs obtained by users and services on other channels can be richer and more conducive to operation and maintenance.

[0063] In one embodiment, the present specification also provides a log data processing device, which is applied to a BMC device, and the device includes: a first module, which is used to respond to an event generated by standard log data, add a specified field at a specified position of the standard log data, fill the target data in the specified field to obtain the log data to be stored, and store the log data to be stored in a specified storage area, wherein the target data is used to enrich the standard log data according to preset rules; a second module, which is used to receive a log acquisition request from a specified channel, and search for corresponding log data in the specified storage area according to the log acquisition request; a third module, which is used to strip the specified field of the found log data to obtain the restored standard log data, and return the restored standard log data to respond to the log acquisition request.

[0064] In one implementation, the standard log data is a standard SEL log, and the log acquisition request of the designated channel is a log acquisition request sent by the peer device through ipmitool.

[0065] In one embodiment, the target data includes serial number information and / or manufacturer information and / or model information of a device associated with a standard SEL log, and the preset rules include enriching hardware information in the standard SEL log according to the target data, and the hardware information includes serial number information and / or manufacturer information and / or model information.

[0066] In one embodiment, in response to an event generated by standard log data, a specified field is added at a specified position of the standard log data, target data is filled in the specified field to obtain the log data to be stored, and the log data to be stored is stored in a specified storage area, including: adding a character array field of a standard SEL structure at the end of the standard SEL log, and filling the target data in the character array field.

[0067] The device implementation is the same as or similar to the corresponding method implementation, and will not be described in detail here.

[0068] In one embodiment, this specification provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned log data processing method. From a hardware level, the hardware architecture diagram can be seen in Figure 3 shown.

[0069] In one embodiment, the present specification provides a readable storage medium, wherein the readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement the aforementioned log data processing method.

[0070] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.

[0071] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0072] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0073] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0074] This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0075] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0077] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (which may include but are not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0078] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A log data processing method, characterized in that: Applied to a BMC device, the method includes: In response to an event generated by standard log data, adding a specified field at a specified position of the standard log data, filling the specified field with target data to obtain log data to be stored, and storing the log data to be stored in a specified storage area, wherein the target data is used to enrich the standard log data according to preset rules; Receiving a log acquisition request from a designated channel, and searching for corresponding log data in the designated storage area according to the log acquisition request; The specified field of the found log data is stripped to obtain restored standard log data, and the restored standard log data is returned to respond to the log acquisition request.

2. The method according to claim 1, characterized in that The standard log data is a standard SEL log, and the log acquisition request of the designated channel is a log acquisition request sent by the peer device through ipmitool.

3. The method according to claim 2, characterized in that The target data includes serial number information and / or manufacturer information and / or model information of a device associated with a standard SEL log, and the preset rules include enriching hardware information in the standard SEL log according to the target data, and the hardware information includes serial number information and / or manufacturer information and / or model information.

4. The method according to claim 3, characterized in that: In response to an event generated by standard log data, adding a specified field at a specified position of the standard log data, filling the specified field with target data to obtain log data to be stored, and storing the log data to be stored in a specified storage area, including: A structure is added at the end of the standard SEL log as a character array field of the standard SEL structure, and the target data is filled in the character array field.

5. A log data processing device, characterized in that: Applied to BMC equipment, the device comprises: The first module is used to respond to an event generated by standard log data, add a specified field at a specified position of the standard log data, fill the specified field with target data to obtain log data to be stored, and store the log data to be stored in a specified storage area, wherein the target data is used to enrich the standard log data according to preset rules; The second module is used to receive a log acquisition request from a specified channel, and search for corresponding log data in the specified storage area according to the log acquisition request; The third module is used to strip the specified field of the found log data to obtain the restored standard log data, and return the restored standard log data to respond to the log acquisition request.

6. The device according to claim 5, characterized in that The standard log data is a standard SEL log, and the log acquisition request of the designated channel is a log acquisition request sent by the peer device through ipmitool.

7. The device according to claim 6, characterized in that The target data includes serial number information and / or manufacturer information and / or model information of a device associated with a standard SEL log, and the preset rules include enriching hardware information in the standard SEL log according to the target data, and the hardware information includes serial number information and / or manufacturer information and / or model information.

8. The device according to claim 7, characterized in that In response to an event generated by standard log data, adding a specified field at a specified position of the standard log data, filling the specified field with target data to obtain log data to be stored, and storing the log data to be stored in a specified storage area, including: A structure is added at the end of the standard SEL log as a character array field of the standard SEL structure, and the target data is filled in the character array field.

9. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method described in any one of claims 1 to 4.

10. A readable storage medium, characterized in that: The readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement any one of the methods of claims 1-4.