[go: up one dir, main page]

CN107608860A - A kind of method, apparatus, the equipment of error log classification storage - Google Patents

A kind of method, apparatus, the equipment of error log classification storage Download PDF

Info

Publication number
CN107608860A
CN107608860A CN201710912378.2A CN201710912378A CN107608860A CN 107608860 A CN107608860 A CN 107608860A CN 201710912378 A CN201710912378 A CN 201710912378A CN 107608860 A CN107608860 A CN 107608860A
Authority
CN
China
Prior art keywords
error
event
queue
log
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710912378.2A
Other languages
Chinese (zh)
Other versions
CN107608860B (en
Inventor
王洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710912378.2A priority Critical patent/CN107608860B/en
Publication of CN107608860A publication Critical patent/CN107608860A/en
Application granted granted Critical
Publication of CN107608860B publication Critical patent/CN107608860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a kind of method, apparatus, equipment and the computer-readable recording medium of error log classification storage, when system carries out the storage of error log, according to the error code carried in the error event obtained, the error event type of misjudgment event;Every kind of error event type includes multiple event subtypes;Each event subtype corresponding can set an error queue for being used to store error log;According to the error code and event id carried in error event, event subtype corresponding to error event, and the sequence number of error event are determined;According to error code and sequence number, the error log of error event is stored into error queue corresponding to the event subtype according to priority orders.In the technical scheme, according to the error code and sequence number of error event, the sequentially classification storage of error log is realized, and each error log has its corresponding sequence number, can be in order to follow-up quick search error log.

Description

一种错误日志分类存储的方法、装置、设备A method, device, and device for classifying and storing error logs

技术领域technical field

本发明涉及错误日志处理技术领域,特别是涉及一种错误日志分类存储的方法、装置、设备和计算机可读存储介质。The present invention relates to the technical field of error log processing, in particular to a method, device, device and computer-readable storage medium for classifying and storing error logs.

背景技术Background technique

错误日志是软件用来记录运行时出错信息的文本文件。编程人员和维护人员等可以利用错误日志对系统进行调试和维护。系统运行过程中往往会产生大量的错误日志,用户需要查询某个错误日志时,需要花费较长的时间从大量的错误日志中查找到所需的内容,降低了用户体验。如果能够实现错误日志的按序分类存储,将极大的提升错误日志的查询效率。The error log is a text file used by the software to record error information during operation. Programmers and maintenance personnel can use error logs to debug and maintain the system. A large number of error logs are often generated during system operation. When a user needs to query an error log, it takes a long time to find the required content from a large number of error logs, which reduces the user experience. If the error log can be stored in a sequential and classified manner, the query efficiency of the error log will be greatly improved.

可见,如何自适应分类存储错误日志,是本领域技术人员亟待解决的问题。It can be seen that how to adaptively classify and store error logs is an urgent problem to be solved by those skilled in the art.

发明内容Contents of the invention

本发明实施例的目的是提供一种错误日志分类存储的方法、装置、设备和计算机可读存储介质,可以提升错误日志的查询效率。The purpose of the embodiments of the present invention is to provide a method, device, device, and computer-readable storage medium for classifying and storing error logs, which can improve query efficiency of error logs.

为解决上述技术问题,本发明实施例提供一种错误日志分类存储的方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides a method for classifying and storing error logs, including:

获取错误事件;get error event;

依据所述错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型;其中,每种错误事件类型包括有多个事件子类型;每个事件子类型有其对应的一个用于存储错误日志的错误队列;Search the pre-established mapping table according to the error code carried in the error event, and determine the error event type of the error event; wherein, each error event type includes multiple event subtypes; each event subtype has It corresponds to an error queue for storing error logs;

依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号;Determine the event subtype corresponding to the error event and the sequence number of the error event according to the error code and event ID carried in the error event;

根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。According to the error code and the sequence number, the error log of the error event is stored in the error queue corresponding to the event subtype in order of priority.

可选的,还包括:Optionally, also include:

当获取到查询指令后,则依据所述查询指令中携带的错误事件信息,查找对应的错误队列,读取并展示所述错误队列中优先级最高的错误日志。After the query command is obtained, the corresponding error queue is searched according to the error event information carried in the query command, and the error log with the highest priority in the error queue is read and displayed.

可选的,还包括:Optionally, also include:

获取错误事件触发指令;Get error event trigger command;

依据所述触发指令中携带的标识信息,判断所述错误事件是否属于插入操作;judging whether the error event belongs to an insert operation according to the identification information carried in the trigger instruction;

若是,依据所述错误事件的错误码和事件ID,将所述错误事件的错误日志插入到对应的错误队列中;If so, according to the error code and event ID of the error event, insert the error log of the error event into the corresponding error queue;

若否,则判断所述错误事件是否属于移除操作;If not, then determine whether the error event belongs to a removal operation;

当所述错误事件属于移除操作时,则依据所述错误事件中携带的序列号,从对应的错误队列中查询并删除所述序列号对应的错误日志;并将所述错误队列中剩余的所有错误日志依照优先级进行排序。When the error event belongs to the removal operation, then according to the sequence number carried in the error event, query and delete the error log corresponding to the sequence number from the corresponding error queue; All error logs are sorted by priority.

可选的,所述依据所述错误事件的错误码和事件ID,将所述错误事件的错误日志插入到对应的错误队列中包括:Optionally, inserting the error log of the error event into the corresponding error queue according to the error code and event ID of the error event includes:

依据所述错误事件的错误码和事件ID,查找所述错误事件对应的错误队列;Searching for an error queue corresponding to the error event according to the error code and event ID of the error event;

判断所述错误队列的可用存储空间是否大于等于所述错误事件的错误日志的大小;Judging whether the available storage space of the error queue is greater than or equal to the size of the error log of the error event;

若是,则将所述错误事件的错误日志存储至所述错误队列中;If so, storing the error log of the error event into the error queue;

若否,则将所述错误队列中优先级最低的错误日志删除,再将所述错误事件的错误日志存储至所述错误队列中。If not, delete the error log with the lowest priority in the error queue, and then store the error log of the error event in the error queue.

本发明实施例还提供了一种错误日志分类存储的装置,包括获取单元、判断单元、确定单元和存储单元;The embodiment of the present invention also provides a device for classifying and storing error logs, including an acquisition unit, a judgment unit, a determination unit, and a storage unit;

所述获取单元,用于获取错误事件;The obtaining unit is used to obtain error events;

所述判断单元,用于依据所述错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型;其中,每种错误事件类型包括有多个事件子类型;每个事件子类型有其对应的一个用于存储错误日志的错误队列;The judging unit is configured to search a pre-established mapping table according to the error code carried in the error event, and determine the error event type of the error event; wherein, each error event type includes multiple event subtypes ;Each event subtype has its corresponding error queue for storing error logs;

所述确定单元,用于依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号;The determining unit is configured to determine the event subtype corresponding to the error event and the sequence number of the error event according to the error code and event ID carried in the error event;

所述存储单元,用于根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。The storage unit is configured to store the error log of the error event in the error queue corresponding to the event subtype in order of priority according to the error code and the sequence number.

可选的,还包括读取单元,所述读取单元,用于当获取到查询指令后,则依据所述查询指令中携带的错误事件信息,查找对应的错误队列,读取并展示所述错误队列中优先级最高的错误日志。Optionally, a reading unit is also included, the reading unit is used to search for the corresponding error queue according to the error event information carried in the query command after the query command is obtained, and read and display the The highest priority error log in the error queue.

可选的,还包括第一判断单元、插入单元、第二判断单元和移除单元;Optionally, a first judging unit, an inserting unit, a second judging unit and a removing unit are also included;

所述获取单元还用于获取错误事件触发指令;The obtaining unit is also used to obtain an error event trigger instruction;

所述第一判断单元,用于依据所述触发指令中携带的标识信息,判断所述错误事件是否属于插入操作;若是,则触发所述插入单元;若否,则触发所述第二判断单元;The first judging unit is configured to judge whether the error event belongs to an insertion operation according to the identification information carried in the trigger instruction; if so, trigger the insertion unit; if not, trigger the second judging unit ;

所述插入单元,用于依据所述错误事件的错误码和事件ID,将所述错误事件的错误日志插入到对应的错误队列中;The insertion unit is configured to insert the error log of the error event into the corresponding error queue according to the error code and event ID of the error event;

所述第二判断单元,用于判断所述错误事件是否属于移除操作;若是,则触发所述移除单元;The second judging unit is configured to judge whether the error event belongs to a removal operation; if so, trigger the removal unit;

所述移除单元,用于依据所述错误事件中携带的序列号,从对应的错误队列中查询并删除所述序列号对应的错误日志;并将所述错误队列中剩余的所有错误日志依照优先级进行排序。The removing unit is configured to query and delete the error log corresponding to the sequence number from the corresponding error queue according to the sequence number carried in the error event; and delete all error logs remaining in the error queue according to Sort by priority.

可选的,所述插入单元包括查找子单元、判断子单元、存储子单元和删除子单元;Optionally, the insertion unit includes a search subunit, a judgment subunit, a storage subunit and a deletion subunit;

所述查找子单元,用于依据所述错误事件的错误码和事件ID,查找所述错误事件对应的错误队列;The search subunit is used to search for the error queue corresponding to the error event according to the error code and event ID of the error event;

所述判断子单元,用于判断所述错误队列的可用存储空间是否大于等于所述错误事件的错误日志的大小;若是,则触发所述存储子单元;若否,则触发所述删除子单元;The judging subunit is used to judge whether the available storage space of the error queue is greater than or equal to the size of the error log of the error event; if yes, trigger the storage subunit; if not, trigger the delete subunit ;

所述存储子单元,用于将所述错误事件的错误日志存储至所述错误队列中;The storage subunit is configured to store the error log of the error event in the error queue;

所述删除子单元,用于将所述错误队列中优先级最低的错误日志删除,再将所述错误事件的错误日志存储至所述错误队列中。The deletion subunit is configured to delete the error log with the lowest priority in the error queue, and then store the error log of the error event in the error queue.

本发明实施例还提供了一种错误日志分类存储的设备,包括:The embodiment of the present invention also provides a device for classifying and storing error logs, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序以实现如上述错误日志分类存储的方法的步骤。A processor, configured to execute the computer program to implement the steps of the method for classifying and storing error logs as described above.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述错误日志分类存储的方法的步骤。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for classifying and storing error logs are implemented.

由上述技术方案可以看出,系统进行错误日志的存储时,依据获取的错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型;其中,每种错误事件类型包括有多个事件子类型;为了实现错误日志的分类存储,对于每个事件子类型可以对应的设置一个用于存储错误日志的错误队列;依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号;根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。在该技术方案中,依据错误事件的错误码和序列号,实现了错误日志的按序分类存储,并且每个错误日志有其对应的序列号,可以便于后续快速查询错误日志。It can be seen from the above technical solution that when the system stores the error log, it searches the pre-established mapping table according to the error code carried in the acquired error event, and determines the error event type of the error event; wherein, each error event The event type includes multiple event subtypes; in order to realize the classified storage of error logs, an error queue for storing error logs can be set correspondingly for each event subtype; according to the error code carried in the error event and the event ID, determine the event subtype corresponding to the error event, and the sequence number of the error event; according to the error code and the sequence number, store the error log of the error event in order of priority to In the error queue corresponding to the event subtype. In this technical solution, according to the error code and serial number of the error event, the sequential classification and storage of the error log is realized, and each error log has its corresponding serial number, which can facilitate the subsequent quick query of the error log.

附图说明Description of drawings

为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.

图1为本发明实施例提供的一种错误日志分类存储的方法的流程图;FIG. 1 is a flow chart of a method for classifying and storing error logs provided by an embodiment of the present invention;

图2为本发明实施例提供的一种错误日志分类存储的示意图;FIG. 2 is a schematic diagram of classification and storage of error logs provided by an embodiment of the present invention;

图3为本发明实施例提供的一种错误事件触发处理的方法的流程图;FIG. 3 is a flowchart of a method for triggering an error event according to an embodiment of the present invention;

图4为本发明实施例提供的一种错误日志分类存储的装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for classifying and storing error logs according to an embodiment of the present invention;

图5为本发明实施例提供的一种错误日志分类存储的设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a device for classifying and storing error logs according to an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

接下来,详细介绍本发明实施例所提供的一种错误日志分类存储的方法。图1为本发明实施例提供的一种错误日志分类存储的方法的流程图,该方法包括:Next, a method for classifying and storing error logs provided by an embodiment of the present invention is described in detail. Fig. 1 is a flow chart of a method for classifying and storing error logs provided by an embodiment of the present invention, the method comprising:

S101:获取错误事件。S101: Obtain an error event.

机箱底层监测模块定时检测机箱运行状态,主要包括主板电压、温度、PSU运行状态、节点风扇等不同模块。当某个模块运行出错便会主动上报该错误,同时上报信息中需要携带错误相关信息,例如产生错误的错误码、节点ID、机箱ID以及事件ID等信息。The chassis bottom monitoring module regularly detects the running status of the chassis, mainly including different modules such as motherboard voltage, temperature, PSU running status, and node fans. When a module runs wrong, it will actively report the error, and the reported information needs to carry error-related information, such as the error code, node ID, chassis ID, and event ID.

其中,错误码可以是2字节的十六进制数,如0x100。事件ID可以用于表示错误事件对应的事件子类型。Wherein, the error code may be a 2-byte hexadecimal number, such as 0x100. The event ID can be used to indicate the event subtype corresponding to the error event.

因为控制器节点需要搭建集群使用,集群中任意一个节点都会分配不重复的ID,即节点ID,比如1、2、3、4等。机箱ID是以机箱为单位,因为一个机箱内有两个控制器节点,所以每个机箱也单独有个ID,比如01、02、03、04等。机箱ID和节点ID的主要作用是为了标识该错误事件到底是哪个节点上报的,比如机箱01的2节点,其信息格式可以为01-2。Because the controller node needs to be used in a cluster, any node in the cluster will be assigned a unique ID, that is, the node ID, such as 1, 2, 3, 4, etc. The chassis ID is based on the chassis. Because there are two controller nodes in one chassis, each chassis also has its own ID, such as 01, 02, 03, 04, etc. The main function of the chassis ID and node ID is to identify which node reported the error event. For example, the information format of node 2 of chassis 01 can be 01-2.

S102:依据所述错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型。S102: Search a pre-established mapping table according to the error code carried in the error event, and determine the error event type of the error event.

在本发明实施例中,预先设置有错误码与错误事件类型的映射表。例如,错误码0x100对应的错误事件类型为电压错误、错误码0x200对应的错误事件类型为电流错误。映射关系表已经预先建立好,当需要存储错误日志时,可以根据错误码快速查找到错误事件对应的错误事件类型。In the embodiment of the present invention, a mapping table of error codes and error event types is preset. For example, the error event type corresponding to the error code 0x100 is a voltage error, and the error event type corresponding to the error code 0x200 is a current error. The mapping relationship table has been established in advance. When the error log needs to be stored, the error event type corresponding to the error event can be quickly found according to the error code.

在本发明实施例中,可以依据功能的不同,对错误事件进行分类,例如,电压错误、电流错误、温度错误等错误事件类型。In the embodiment of the present invention, error events may be classified according to different functions, for example, error event types such as voltage error, current error, and temperature error.

其中,每个错误事件类型中可以包括有多个事件子类型,例如,电压错误包括主板电压错误、风扇电压错误等。Wherein, each error event type may include multiple event subtypes, for example, a voltage error includes a motherboard voltage error, a fan voltage error, and the like.

为了便于错误日志的分类存储,对于每个事件子类型可以对应的设置一个用于存储错误日志的错误队列。在本发明实施例中,可以采用结构体数组方式进行错误日志的存储。In order to facilitate classified storage of error logs, an error queue for storing error logs can be set corresponding to each event subtype. In the embodiment of the present invention, the error log may be stored in a structure array manner.

S103:依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号。S103: Determine the event subtype corresponding to the error event and the sequence number of the error event according to the error code and event ID carried in the error event.

依据错误码可以确定出错误事件的错误事件类型,在该错误事件类型中包括有多个事件子类型,该错误事件具体属于哪种事件子类型,可以依据事件ID确定。The error event type of the error event can be determined according to the error code, and the error event type includes multiple event subtypes, and which event subtype the error event belongs to can be determined according to the event ID.

对于同一个事件子类型,其包含的错误个数可以有多个,以主板电压为例,可能包含多种异常情况,例如主板电压过高、主板电压过低等,每一种异常对应独立的错误事件。For the same event subtype, it can contain multiple errors. Take the main board voltage as an example, it may contain multiple abnormal conditions, such as the main board voltage is too high, the main board voltage is too low, etc. Each abnormality corresponds to an independent error event.

对于一种错误事件类型下的每个错误事件可以设置其唯一对应的序列号,对于序列号的设置可以采用依次累加的方式,例如,序列号起始数值为100,根据错误码及事件ID作为关键字可以查询当前错误队列中是否已经存在该错误事件,若存在则不重复分配,即不做任何动作;如果不存在则分配一个新的序列号,新的序列号会依据当前已分配的序列号最大值加1即可。For each error event under an error event type, its unique corresponding serial number can be set, and the serial number setting can be accumulated in sequence. For example, the initial value of the serial number is 100, and the error code and event ID are used as The keyword can query whether the error event already exists in the current error queue. If it exists, it will not be assigned repeatedly, that is, no action will be taken; if it does not exist, a new sequence number will be assigned, and the new sequence number will be based on the currently assigned sequence. Just add 1 to the maximum number.

进行错误事件查询时主要依据错误事件的序列号进行操作,因为事件之间序列号是具备唯一性的,同一个事件ID可能被触发多次,故依据序列号进行存储查询是最可靠的。The error event query is mainly based on the serial number of the error event, because the serial number between events is unique, and the same event ID may be triggered multiple times, so the storage query based on the serial number is the most reliable.

S104:根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。S104: According to the error code and the sequence number, store the error log of the error event in the error queue corresponding to the event subtype in order of priority.

一种事件子类型下的错误事件有其对应的优先级,在将错误事件的错误日志存储于错误队列中时,可以按照错误事件的优先级顺序从高到低依次存储错误日志,并且每个错误日志在存储时会包含相应的错误码和序列号。依据错误事件优先级进行错误排序,可以保证每次查询都是优先级最高的错误。An error event under an event subtype has its corresponding priority. When storing the error log of an error event in the error queue, the error log can be stored in order from high to low according to the priority of the error event, and each The error log will contain the corresponding error code and serial number when it is stored. Errors are sorted according to the priority of error events, which can ensure that each query is the error with the highest priority.

通过错误码及序列号两部分信息进行数据缓存,主要数据结构如下,The data is cached through the two parts of the error code and the serial number. The main data structure is as follows,

上面提到的数据结构1(struct 1)是最底层的结构,里面包含错误码及错误事件序列号信息,二者绑定可确定唯一错误信息;数据结构2(struct 2)主要描述错误信息最大支持缓存深度,由于同一事件子类型的错误可能同时触发多个错误,且错误间需依据优先级进行排序,即需要保证每次查询都以优先级最高错误为基准。Error log cache设计为二维数组形式,一维空间描述错误事件类型,二维空间描述该类型错误事件最大支持错误种类。The data structure 1 (struct 1) mentioned above is the bottom structure, which contains error code and error event serial number information, the binding of the two can determine the only error information; data structure 2 (struct 2) mainly describes the largest error information Cache depth is supported, because errors of the same event subtype may trigger multiple errors at the same time, and the errors need to be sorted according to priority, that is, it is necessary to ensure that each query is based on the highest priority error. The Error log cache is designed in the form of a two-dimensional array. The one-dimensional space describes the error event type, and the two-dimensional space describes the maximum supported error types of this type of error event.

例如图2所示,错误事件类型分为type1、type2、typex,其中,x表示错误事件类型的总数,每种type存储的错误日志(error)包含错误码和序列号等信息,这些信息是绑定在一起的,用来标识唯一的错误。element_id表示事件子类型,一个错误事件类型可以包括有n个事件子类型,不同的id指代不同的事件子类型,每一种异常对应独立的error事件,每种事件子类型对应的一堆error会依据优先级顺序自动排序。当后续读取该类型错误时,只需要依据type和element_id便可以返回当前优先级最高的一个error。For example, as shown in Figure 2, the error event types are divided into type1, type2, and typex, where x represents the total number of error event types, and the error log (error) stored in each type contains information such as error codes and serial numbers. Together, to identify unique errors. element_id indicates the event subtype, an error event type can include n event subtypes, different ids refer to different event subtypes, each exception corresponds to an independent error event, and each event subtype corresponds to a bunch of errors It will be automatically sorted according to the order of priority. When this type of error is read later, the current highest priority error can be returned only based on the type and element_id.

由上述技术方案可以看出,系统进行错误日志的存储时,依据获取的错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型;其中,每种错误事件类型包括有多个事件子类型;为了实现错误日志的分类存储,对于每个事件子类型可以对应的设置一个用于存储错误日志的错误队列;依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号;根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。在该技术方案中,依据错误事件的错误码和序列号,实现了错误日志的按序分类存储,并且每个错误日志有其对应的序列号,可以便于后续快速查询错误日志。It can be seen from the above technical solution that when the system stores the error log, it searches the pre-established mapping table according to the error code carried in the acquired error event, and determines the error event type of the error event; wherein, each error event The event type includes multiple event subtypes; in order to realize the classified storage of error logs, an error queue for storing error logs can be set correspondingly for each event subtype; according to the error code carried in the error event and the event ID, determine the event subtype corresponding to the error event, and the sequence number of the error event; according to the error code and the sequence number, store the error log of the error event in order of priority to In the error queue corresponding to the event subtype. In this technical solution, according to the error code and serial number of the error event, the sequential classification and storage of the error log is realized, and each error log has its corresponding serial number, which can facilitate the subsequent quick query of the error log.

上述介绍了错误日志的分类存储过程,当需要查询某个错误日志时,可以向系统发送查询指令,当系统获取到查询指令后,则依据所述查询指令中携带的错误事件信息,查找对应的错误队列,读取并展示所述错误队列中优先级最高的错误日志。The above describes the classification and storage process of error logs. When you need to query an error log, you can send a query command to the system. After the system obtains the query command, it will search for the corresponding error event information based on the query command. Error queue, read and display the error log with the highest priority in the error queue.

在本发明实施例中,可以以error log cache为基础封装对应功能接口,主要包括insert、remove、query等接口,主要应用在错误事件缓存、移除、查询等阶段,具备良好的复用性,可依据需求新增或删除对应错误事件即可。关于错误事件的缓存和移除操作过程如图3所示,包括:In the embodiment of the present invention, the corresponding functional interfaces can be encapsulated based on the error log cache, mainly including interfaces such as insert, remove, and query, which are mainly used in the stages of error event caching, removal, and query, and have good reusability. You can add or delete corresponding error events according to your needs. The caching and removal operation process of error events is shown in Figure 3, including:

S301:获取错误事件触发指令。S301: Obtain an error event trigger instruction.

开始阶段,系统等待错误事件触发,错误事件触发后,依据事件错误码判断错误事件类型,目的是为了查询对应类型的错误事件入口。In the initial stage, the system waits for the error event to be triggered. After the error event is triggered, it judges the error event type according to the event error code, and the purpose is to query the corresponding type of error event entry.

S302:依据所述触发指令中携带的标识信息,判断所述错误事件是否属于插入操作。S302: Determine whether the error event belongs to an insert operation according to the identification information carried in the trigger instruction.

错误事件触发包括插入和移除这两种情况,依据标识信息判断错误事件所属插入还是移除。Error event triggering includes insertion and removal, and it is judged whether the error event belongs to insertion or removal according to the identification information.

在具体实现中,可以依据标识信息判断错误事件是否属于插入操作,若是,则可以执行插入操作的具体处理过程,即执行S303;若否,则可以对错误事件进行进一步的判断,即执行S304。In a specific implementation, it can be judged according to the identification information whether the error event belongs to the insertion operation, and if so, the specific processing process of the insertion operation can be performed, that is, S303 is executed; if not, the error event can be further judged, that is, S304 is executed.

S303:依据所述错误事件的错误码和事件ID,将所述错误事件的错误日志插入到对应的错误队列中。S303: According to the error code and event ID of the error event, insert the error log of the error event into a corresponding error queue.

依据错误码和事件ID可以唯一确定出对应的错误队列,从而可以将该错误事件的错误日志存储在该错误队列中。需要说明的是,当有新的错误日志插入后,需要对错误队列中的错误日志依据优先级顺序重新排序。The corresponding error queue can be uniquely determined according to the error code and event ID, so that the error log of the error event can be stored in the error queue. It should be noted that when a new error log is inserted, the error logs in the error queue need to be reordered according to the order of priority.

考虑到错误队列的存储空间有限,可能会存在当有新的错误日志需要存储时,该错误队列的剩余存储空间无法容纳新的错误日志,针对该种情况,在依据错误事件的错误码和事件ID,查找到该错误事件对应的错误队列后;可以判断所述错误队列的可用存储空间是否大于等于所述错误事件的错误日志的大小;Considering that the storage space of the error queue is limited, it may happen that when there is a new error log to be stored, the remaining storage space of the error queue cannot accommodate the new error log. In this case, based on the error code and event of the error event ID, after finding the error queue corresponding to the error event; it can be judged whether the available storage space of the error queue is greater than or equal to the size of the error log of the error event;

当错误队列的可用存储空间大于等于错误事件的错误日志的大小时,则说明该错误队列有足够的存储空间用于存储该错误事件的错误日志;当错误队列的可用存储空间小于错误事件的错误日志的大小时,则说明该错误队列的剩余存储空间无法容纳该错误事件的错误日志,对此,可以将所述错误队列中优先级最低的错误日志删除,然后再将所述错误事件的错误日志存储至所述错误队列中。When the available storage space of the error queue is greater than or equal to the size of the error log of the error event, it means that the error queue has enough storage space for storing the error log of the error event; when the available storage space of the error queue is less than the error event error When the size of the log is smaller, it means that the remaining storage space of the error queue cannot accommodate the error log of the error event. For this, the error log with the lowest priority in the error queue can be deleted, and then the error log of the error event can be deleted. Logs are stored in the error queue.

S304:判断所述错误事件是否属于移除操作。S304: Determine whether the error event belongs to a removal operation.

当错误事件属于移除操作时,则可以执行移除操作的具体处理过程,即执行S305。When the error event belongs to the removal operation, the specific processing procedure of the removal operation may be performed, that is, S305 is executed.

S305:依据所述错误事件中携带的序列号,从对应的错误队列中查询并删除所述序列号对应的错误日志;并将所述错误队列中剩余的所有错误日志依照优先级进行排序。S305: According to the serial number carried in the error event, query and delete the error log corresponding to the serial number from the corresponding error queue; and sort all the remaining error logs in the error queue according to the priority.

依据实际需求进行错误事件的新增或移除,实现了错误日志分类存储的复用性。Add or remove error events according to actual needs, realizing the reusability of error log classification storage.

图4为本发明实施例提供的一种错误日志分类存储的装置的结构示意图,包括获取单元41、判断单元42、确定单元43和存储单元44;FIG. 4 is a schematic structural diagram of a device for classifying and storing error logs according to an embodiment of the present invention, including an acquisition unit 41, a judgment unit 42, a determination unit 43, and a storage unit 44;

所述获取单元41,用于获取错误事件;The acquiring unit 41 is configured to acquire error events;

所述判断单元42,用于依据所述错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型;其中,每种错误事件类型包括有多个事件子类型;每个事件子类型有其对应的一个用于存储错误日志的错误队列;The judging unit 42 is configured to search a pre-established mapping table according to the error code carried in the error event, and determine the error event type of the error event; wherein, each error event type includes a plurality of event sub-items type; each event subtype has its corresponding error queue for storing error logs;

所述确定单元43,用于依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号;The determination unit 43 is configured to determine the event subtype corresponding to the error event and the sequence number of the error event according to the error code and event ID carried in the error event;

所述存储单元44,用于根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。The storage unit 44 is configured to store the error log of the error event in the error queue corresponding to the event subtype in order of priority according to the error code and the sequence number.

可选的,还包括读取单元,所述读取单元,用于当获取到查询指令后,则依据所述查询指令中携带的错误事件信息,查找对应的错误队列,读取并展示所述错误队列中优先级最高的错误日志。Optionally, a reading unit is also included, the reading unit is used to search for the corresponding error queue according to the error event information carried in the query command after the query command is obtained, and read and display the The highest priority error log in the error queue.

可选的,还包括第一判断单元、插入单元、第二判断单元和移除单元;Optionally, a first judging unit, an inserting unit, a second judging unit and a removing unit are also included;

所述获取单元还用于获取错误事件触发指令;The obtaining unit is also used to obtain an error event trigger instruction;

所述第一判断单元,用于依据所述触发指令中携带的标识信息,判断所述错误事件是否属于插入操作;若是,则触发所述插入单元;若否,则触发所述第二判断单元;The first judging unit is configured to judge whether the error event belongs to an insertion operation according to the identification information carried in the trigger instruction; if so, trigger the insertion unit; if not, trigger the second judging unit ;

所述插入单元,用于依据所述错误事件的错误码和事件ID,将所述错误事件的错误日志插入到对应的错误队列中;The insertion unit is configured to insert the error log of the error event into the corresponding error queue according to the error code and event ID of the error event;

所述第二判断单元,用于判断所述错误事件是否属于移除操作;若是,则触发所述移除单元;The second judging unit is configured to judge whether the error event belongs to a removal operation; if so, trigger the removal unit;

所述移除单元,用于依据所述错误事件中携带的序列号,从对应的错误队列中查询并删除所述序列号对应的错误日志;并将所述错误队列中剩余的所有错误日志依照优先级进行排序。The removing unit is configured to query and delete the error log corresponding to the sequence number from the corresponding error queue according to the sequence number carried in the error event; and delete all error logs remaining in the error queue according to Sort by priority.

可选的,所述插入单元包括查找子单元、判断子单元、存储子单元和删除子单元;Optionally, the insertion unit includes a search subunit, a judgment subunit, a storage subunit and a deletion subunit;

所述查找子单元,用于依据所述错误事件的错误码和事件ID,查找所述错误事件对应的错误队列;The search subunit is used to search for the error queue corresponding to the error event according to the error code and event ID of the error event;

所述判断子单元,用于判断所述错误队列的可用存储空间是否大于等于所述错误事件的错误日志的大小;若是,则触发所述存储子单元;若否,则触发所述删除子单元;The judging subunit is used to judge whether the available storage space of the error queue is greater than or equal to the size of the error log of the error event; if yes, trigger the storage subunit; if not, trigger the delete subunit ;

所述存储子单元,用于将所述错误事件的错误日志存储至所述错误队列中;The storage subunit is configured to store the error log of the error event in the error queue;

所述删除子单元,用于将所述错误队列中优先级最低的错误日志删除,再将所述错误事件的错误日志存储至所述错误队列中。The deletion subunit is configured to delete the error log with the lowest priority in the error queue, and then store the error log of the error event in the error queue.

图4所对应实施例中特征的说明可以参见图1和图3所对应实施例的相关说明,这里不再一一赘述。For the description of the features in the embodiment corresponding to FIG. 4 , refer to the related descriptions of the embodiments corresponding to FIG. 1 and FIG. 3 , and details will not be repeated here.

由上述技术方案可以看出,系统进行错误日志的存储时,依据获取的错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型;其中,每种错误事件类型包括有多个事件子类型;为了实现错误日志的分类存储,对于每个事件子类型可以对应的设置一个用于存储错误日志的错误队列;依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号;根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。在该技术方案中,依据错误事件的错误码和序列号,实现了错误日志的按序分类存储,并且每个错误日志有其对应的序列号,可以便于后续快速查询错误日志。It can be seen from the above technical solution that when the system stores the error log, it searches the pre-established mapping table according to the error code carried in the acquired error event, and determines the error event type of the error event; wherein, each error event The event type includes multiple event subtypes; in order to realize the classified storage of error logs, an error queue for storing error logs can be set correspondingly for each event subtype; according to the error code carried in the error event and the event ID, determine the event subtype corresponding to the error event, and the sequence number of the error event; according to the error code and the sequence number, store the error log of the error event in order of priority to In the error queue corresponding to the event subtype. In this technical solution, according to the error code and serial number of the error event, the sequential classification and storage of the error log is realized, and each error log has its corresponding serial number, which can facilitate the subsequent quick query of the error log.

图5为本发明实施例提供的一种错误日志分类存储的设备50的硬件结构示意图,包括存储器51和处理器52;存储器51,用于存储计算机程序;处理器52,用于执行所述计算机程序以实现如权上述错误日志分类存储的方法的步骤。5 is a schematic diagram of the hardware structure of a device 50 for storing error logs according to an embodiment of the present invention, including a memory 51 and a processor 52; the memory 51 is used to store computer programs; and the processor 52 is used to execute the computer program. The program is to realize the steps of the method for classifying and storing error logs as described above.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述错误日志分类存储的方法的步骤。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for classifying and storing error logs are implemented.

以上对本发明实施例所提供的一种错误日志分类存储的方法、装置、设备和计算机可读存储介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method, device, device, and computer-readable storage medium for classified storage of error logs provided by the embodiments of the present invention are described above in detail. Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related part, please refer to the description of the method part. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

Claims (10)

1.一种错误日志分类存储的方法,其特征在于,包括:1. A method for error log classification storage, characterized in that, comprising: 获取错误事件;get error event; 依据所述错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型;其中,每种错误事件类型包括有多个事件子类型;每个事件子类型有其对应的一个用于存储错误日志的错误队列;Search the pre-established mapping table according to the error code carried in the error event, and determine the error event type of the error event; wherein, each error event type includes multiple event subtypes; each event subtype has It corresponds to an error queue for storing error logs; 依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号;Determine the event subtype corresponding to the error event and the sequence number of the error event according to the error code and event ID carried in the error event; 根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。According to the error code and the sequence number, the error log of the error event is stored in the error queue corresponding to the event subtype in order of priority. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method according to claim 1, further comprising: 当获取到查询指令后,则依据所述查询指令中携带的错误事件信息,查找对应的错误队列,读取并展示所述错误队列中优先级最高的错误日志。After the query command is obtained, the corresponding error queue is searched according to the error event information carried in the query command, and the error log with the highest priority in the error queue is read and displayed. 3.根据权利要求1所述的方法,其特征在于,还包括:3. The method according to claim 1, further comprising: 获取错误事件触发指令;Get error event trigger command; 依据所述触发指令中携带的标识信息,判断所述错误事件是否属于插入操作;judging whether the error event belongs to an insert operation according to the identification information carried in the trigger instruction; 若是,依据所述错误事件的错误码和事件ID,将所述错误事件的错误日志插入到对应的错误队列中;If so, according to the error code and event ID of the error event, insert the error log of the error event into the corresponding error queue; 若否,则判断所述错误事件是否属于移除操作;If not, then determine whether the error event belongs to a removal operation; 当所述错误事件属于移除操作时,则依据所述错误事件中携带的序列号,从对应的错误队列中查询并删除所述序列号对应的错误日志;并将所述错误队列中剩余的所有错误日志依照优先级进行排序。When the error event belongs to the removal operation, then according to the sequence number carried in the error event, query and delete the error log corresponding to the sequence number from the corresponding error queue; All error logs are sorted by priority. 4.根据权利要求3所述的方法,其特征在于,所述依据所述错误事件的错误码和事件ID,将所述错误事件的错误日志插入到对应的错误队列中包括:4. The method according to claim 3, wherein inserting the error log of the error event into the corresponding error queue according to the error code and event ID of the error event comprises: 依据所述错误事件的错误码和事件ID,查找所述错误事件对应的错误队列;Searching for an error queue corresponding to the error event according to the error code and event ID of the error event; 判断所述错误队列的可用存储空间是否大于等于所述错误事件的错误日志的大小;Judging whether the available storage space of the error queue is greater than or equal to the size of the error log of the error event; 若是,则将所述错误事件的错误日志存储至所述错误队列中;If so, storing the error log of the error event into the error queue; 若否,则将所述错误队列中优先级最低的错误日志删除,再将所述错误事件的错误日志存储至所述错误队列中。If not, delete the error log with the lowest priority in the error queue, and then store the error log of the error event in the error queue. 5.一种错误日志分类存储的装置,其特征在于,包括获取单元、判断单元、确定单元和存储单元;5. A device for classifying and storing error logs, comprising an acquisition unit, a judgment unit, a determination unit and a storage unit; 所述获取单元,用于获取错误事件;The obtaining unit is used to obtain error events; 所述判断单元,用于依据所述错误事件中携带的错误码,查找预先建立的映射表,确定出所述错误事件的错误事件类型;其中,每种错误事件类型包括有多个事件子类型;每个事件子类型有其对应的一个用于存储错误日志的错误队列;The judging unit is configured to search a pre-established mapping table according to the error code carried in the error event, and determine the error event type of the error event; wherein, each error event type includes multiple event subtypes ;Each event subtype has its corresponding error queue for storing error logs; 所述确定单元,用于依据所述错误事件中携带的所述错误码和事件ID,确定出所述错误事件对应的事件子类型,以及所述错误事件的序列号;The determining unit is configured to determine the event subtype corresponding to the error event and the sequence number of the error event according to the error code and event ID carried in the error event; 所述存储单元,用于根据所述错误码和所述序列号,将所述错误事件的错误日志按照优先级顺序存储至所述事件子类型对应的错误队列中。The storage unit is configured to store the error log of the error event in the error queue corresponding to the event subtype in order of priority according to the error code and the sequence number. 6.根据权利要求5所述的装置,其特征在于,还包括读取单元,所述读取单元,用于当获取到查询指令后,则依据所述查询指令中携带的错误事件信息,查找对应的错误队列,读取并展示所述错误队列中优先级最高的错误日志。6. The device according to claim 5, further comprising a reading unit, configured to, after obtaining the query instruction, search for the error event information carried in the query instruction. For the corresponding error queue, read and display the error log with the highest priority in the error queue. 7.根据权利要求5所述的装置,其特征在于,还包括第一判断单元、插入单元、第二判断单元和移除单元;7. The device according to claim 5, further comprising a first judging unit, an inserting unit, a second judging unit, and a removing unit; 所述获取单元还用于获取错误事件触发指令;The obtaining unit is also used to obtain an error event trigger instruction; 所述第一判断单元,用于依据所述触发指令中携带的标识信息,判断所述错误事件是否属于插入操作;若是,则触发所述插入单元;若否,则触发所述第二判断单元;The first judging unit is configured to judge whether the error event belongs to an insertion operation according to the identification information carried in the trigger instruction; if so, trigger the insertion unit; if not, trigger the second judging unit ; 所述插入单元,用于依据所述错误事件的错误码和事件ID,将所述错误事件的错误日志插入到对应的错误队列中;The insertion unit is configured to insert the error log of the error event into the corresponding error queue according to the error code and event ID of the error event; 所述第二判断单元,用于判断所述错误事件是否属于移除操作;若是,则触发所述移除单元;The second judging unit is configured to judge whether the error event belongs to a removal operation; if so, trigger the removal unit; 所述移除单元,用于依据所述错误事件中携带的序列号,从对应的错误队列中查询并删除所述序列号对应的错误日志;并将所述错误队列中剩余的所有错误日志依照优先级进行排序。The removing unit is configured to query and delete the error log corresponding to the sequence number from the corresponding error queue according to the sequence number carried in the error event; and delete all error logs remaining in the error queue according to Sort by priority. 8.根据权利要求7所述的装置,其特征在于,所述插入单元包括查找子单元、判断子单元、存储子单元和删除子单元;8. The device according to claim 7, wherein the insertion unit comprises a search subunit, a judgment subunit, a storage subunit and a deletion subunit; 所述查找子单元,用于依据所述错误事件的错误码和事件ID,查找所述错误事件对应的错误队列;The search subunit is used to search for the error queue corresponding to the error event according to the error code and event ID of the error event; 所述判断子单元,用于判断所述错误队列的可用存储空间是否大于等于所述错误事件的错误日志的大小;若是,则触发所述存储子单元;若否,则触发所述删除子单元;The judging subunit is used to judge whether the available storage space of the error queue is greater than or equal to the size of the error log of the error event; if yes, trigger the storage subunit; if not, trigger the delete subunit ; 所述存储子单元,用于将所述错误事件的错误日志存储至所述错误队列中;The storage subunit is configured to store the error log of the error event in the error queue; 所述删除子单元,用于将所述错误队列中优先级最低的错误日志删除,再将所述错误事件的错误日志存储至所述错误队列中。The deletion subunit is configured to delete the error log with the lowest priority in the error queue, and then store the error log of the error event in the error queue. 9.一种错误日志分类存储的设备,其特征在于,包括:9. A device for classifying and storing error logs, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序以实现如权利要求1至4任意一项所述错误日志分类存储的方法的步骤。A processor configured to execute the computer program to implement the steps of the method for classifying and storing error logs according to any one of claims 1 to 4. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4任一项所述错误日志分类存储的方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the error log as described in any one of claims 1 to 4 is implemented. The steps of the method of classifying storage.
CN201710912378.2A 2017-09-29 2017-09-29 A method, device, and device for classifying and storing error logs Active CN107608860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710912378.2A CN107608860B (en) 2017-09-29 2017-09-29 A method, device, and device for classifying and storing error logs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710912378.2A CN107608860B (en) 2017-09-29 2017-09-29 A method, device, and device for classifying and storing error logs

Publications (2)

Publication Number Publication Date
CN107608860A true CN107608860A (en) 2018-01-19
CN107608860B CN107608860B (en) 2021-04-23

Family

ID=61067526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710912378.2A Active CN107608860B (en) 2017-09-29 2017-09-29 A method, device, and device for classifying and storing error logs

Country Status (1)

Country Link
CN (1) CN107608860B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240703A (en) * 2018-08-28 2019-01-18 郑州云海信息技术有限公司 A kind of system mistake reminding method and device
CN109299045A (en) * 2018-12-17 2019-02-01 郑州云海信息技术有限公司 A log storage method, apparatus, device and readable storage medium
CN109359007A (en) * 2018-09-30 2019-02-19 江苏满运软件科技有限公司 Processing method, system, electronic equipment and the storage medium of error log
CN109408293A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of method of real-time monitoring RACK cabinet power supply
CN110888791A (en) * 2019-12-06 2020-03-17 北京锐安科技有限公司 Log processing method, device, equipment and storage medium
CN112069034A (en) * 2020-09-22 2020-12-11 深圳市欢太科技有限公司 Fast application exception handling method and device, electronic equipment and storage medium
CN112148686A (en) * 2020-09-25 2020-12-29 酒泉钢铁(集团)有限责任公司 Data monitoring processing method based on software and hardware integrated machine
WO2022042126A1 (en) * 2020-08-24 2022-03-03 International Business Machines Corporation Fault localization for cloud-native applications
CN115203685A (en) * 2022-06-30 2022-10-18 珠海奔图电子有限公司 Trusted report output method, trusted report output device, image forming apparatus, and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4254183B2 (en) * 2002-09-17 2009-04-15 株式会社デンソー Printed wiring board and printed wiring board management system
CN102981943A (en) * 2012-10-29 2013-03-20 新浪技术(中国)有限公司 Method and system for monitoring application logs
CN104375928A (en) * 2013-08-12 2015-02-25 鸿富锦精密工业(深圳)有限公司 Abnormal log management method and system
US9514174B2 (en) * 2012-06-30 2016-12-06 Microsoft Technology Licensing, Llc Classification of data in main memory database systems
CN106294723A (en) * 2016-08-10 2017-01-04 成都广达新网科技股份有限公司 A kind of apply in the quick inspection method of system journal of embedded device and system
CN106649312A (en) * 2015-10-29 2017-05-10 北京北方微电子基地设备工艺研究中心有限责任公司 Log file analysis method and system
CN106649729A (en) * 2016-12-23 2017-05-10 深圳市金证科技股份有限公司 Log running method and system, client and server
CN106992876A (en) * 2017-03-04 2017-07-28 郑州云海信息技术有限公司 Cloud platform log management method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4254183B2 (en) * 2002-09-17 2009-04-15 株式会社デンソー Printed wiring board and printed wiring board management system
US9514174B2 (en) * 2012-06-30 2016-12-06 Microsoft Technology Licensing, Llc Classification of data in main memory database systems
CN102981943A (en) * 2012-10-29 2013-03-20 新浪技术(中国)有限公司 Method and system for monitoring application logs
CN104375928A (en) * 2013-08-12 2015-02-25 鸿富锦精密工业(深圳)有限公司 Abnormal log management method and system
CN106649312A (en) * 2015-10-29 2017-05-10 北京北方微电子基地设备工艺研究中心有限责任公司 Log file analysis method and system
CN106294723A (en) * 2016-08-10 2017-01-04 成都广达新网科技股份有限公司 A kind of apply in the quick inspection method of system journal of embedded device and system
CN106649729A (en) * 2016-12-23 2017-05-10 深圳市金证科技股份有限公司 Log running method and system, client and server
CN106992876A (en) * 2017-03-04 2017-07-28 郑州云海信息技术有限公司 Cloud platform log management method and system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240703A (en) * 2018-08-28 2019-01-18 郑州云海信息技术有限公司 A kind of system mistake reminding method and device
CN109359007A (en) * 2018-09-30 2019-02-19 江苏满运软件科技有限公司 Processing method, system, electronic equipment and the storage medium of error log
CN109359007B (en) * 2018-09-30 2022-03-15 江苏满运软件科技有限公司 Method and system for processing error log, electronic device and storage medium
CN109408293A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of method of real-time monitoring RACK cabinet power supply
CN109408293B (en) * 2018-11-02 2022-02-18 郑州云海信息技术有限公司 Method for monitoring RACK cabinet power supply in real time
CN109299045B (en) * 2018-12-17 2022-02-18 郑州云海信息技术有限公司 Log storage method, device and equipment and readable storage medium
CN109299045A (en) * 2018-12-17 2019-02-01 郑州云海信息技术有限公司 A log storage method, apparatus, device and readable storage medium
CN110888791A (en) * 2019-12-06 2020-03-17 北京锐安科技有限公司 Log processing method, device, equipment and storage medium
WO2022042126A1 (en) * 2020-08-24 2022-03-03 International Business Machines Corporation Fault localization for cloud-native applications
US11411811B2 (en) 2020-08-24 2022-08-09 International Business Machines Corporation Fault localization for cloud-native applications
GB2612749A (en) * 2020-08-24 2023-05-10 Ibm Fault localization for cloud-native applications
GB2612749B (en) * 2020-08-24 2025-04-23 Ibm Fault localization for cloud-native applications
CN112069034A (en) * 2020-09-22 2020-12-11 深圳市欢太科技有限公司 Fast application exception handling method and device, electronic equipment and storage medium
CN112148686A (en) * 2020-09-25 2020-12-29 酒泉钢铁(集团)有限责任公司 Data monitoring processing method based on software and hardware integrated machine
CN115203685A (en) * 2022-06-30 2022-10-18 珠海奔图电子有限公司 Trusted report output method, trusted report output device, image forming apparatus, and medium

Also Published As

Publication number Publication date
CN107608860B (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN107608860A (en) A kind of method, apparatus, the equipment of error log classification storage
CN109240886B (en) Exception handling method, exception handling device, computer equipment and storage medium
US9467460B1 (en) Modularized database architecture using vertical partitioning for a state machine
CN113485999B (en) Data cleaning method, device and server
CN106844139A (en) Log file analysis method and device
CN111327685A (en) Distributed storage system data processing method, device and device and storage medium
CN111046011A (en) Log collection method, system, node, electronic device and readable storage medium
CN104346264A (en) System and method for processing system event logs
CN105955875A (en) Device and method for monitoring logs of RAID cards
CN104917836A (en) Method and device for monitoring and analyzing availability of computing equipment based on cluster
JP2020057416A (en) Method and device for processing data blocks in distributed database
CN105260438A (en) File management method and electronic device
CN112328173A (en) Disk fault repair method and device for distributed storage system
CN110780815A (en) Log deleting method and device
CN112988457B (en) Data backup method, device, system and computer equipment
JP4506520B2 (en) Management server, message extraction method, and program
CN104407966B (en) Statistical system and method for memory object number of JVM (JAVA virtual machine)
CN110764711B (en) IO data classification deleting method and device and computer readable storage medium
CN116860548A (en) Method and device for automatically uploading partial fault information of vehicle machine, medium and vehicle
CN108229585B (en) Log classification method and system
CN103440174B (en) A kind of error message processing method, device and apply the electronic equipment of this device
CN107885575B (en) Virtual machine migration method and device
CN104462484B (en) Data processing method, data processor and system
KR101329976B1 (en) Method and system for reporting the result of analyzing log
JP2009265707A (en) Automatic process grouping and performance monitoring method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant