JP2007241540A - Log information management system - Google Patents

Log information management system Download PDF

Info

Publication number
JP2007241540A
JP2007241540A JP2006061298A JP2006061298A JP2007241540A JP 2007241540 A JP2007241540 A JP 2007241540A JP 2006061298 A JP2006061298 A JP 2006061298A JP 2006061298 A JP2006061298 A JP 2006061298A JP 2007241540 A JP2007241540 A JP 2007241540A
Authority
JP
Japan
Prior art keywords
log information
log
information
memory
importance
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
JP2006061298A
Other languages
Japanese (ja)
Other versions
JP4963847B2 (en
Inventor
Hiroshi Kakii
弘 柿井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2006061298A priority Critical patent/JP4963847B2/en
Publication of JP2007241540A publication Critical patent/JP2007241540A/en
Application granted granted Critical
Publication of JP4963847B2 publication Critical patent/JP4963847B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To improve the possibility of error factor research by efficiently recording log information in a limited memory for log in embedded equipment. <P>SOLUTION: Importance information relating to the importance of log information is stored in an importance information storing means 6. When it is detected that the memory 3 for log is full by a full-state detecting means 4, the log information whose importance is the lowest is extracted and erased based on the importance information, and new log information is added. The importance is defined as the order of debug(DEBUG), information(INFO), and error(ERROR). The log information of the oldest DEBUG event is erased for adding new log information to the memory 3 for log. The log information of the DEBUG events is sequentially erased in the ascending order of log information. When the no more log information of the DEBUG event to be erased exists, the log information of INFO events is erased in the ascending order of the log information. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、ログ情報管理方式に関し、特に、コンピュータ組込み機器におけるログ情報管理方式に関する。   The present invention relates to a log information management method, and more particularly to a log information management method in a computer embedded device.

コンピュータやコンピュータで制御される機器では、障害発生時に障害原因を調査するために、動作履歴情報(ログ情報)を記録している。ログ情報は大量に発生するために、限られたメモリ内にすべてを記録することはできない。限られたログ用メモリにログ情報を保存するために、ログ用メモリが満杯になったときに、古いログ情報の上に新しいログ情報を上書きする方法(リングバッファ方式)や、外部のログサーバーに転送して保存する方法などがある。以下に、これに関連する従来技術の例をあげる。   In a computer or a device controlled by a computer, operation history information (log information) is recorded in order to investigate the cause of the failure when a failure occurs. Since log information is generated in large quantities, it is not possible to record everything in a limited memory. In order to save log information in the limited log memory, when the log memory is full, new log information can be overwritten on the old log information (ring buffer method), or an external log server There is a method to transfer to and save. Examples of related art related to this will be given below.

特許文献1に開示された「ログ記録方法」は、ログファイルの記憶量が無制限に増大することがなく、且つ、過去の重要なログ情報が上書きによって消去されることなく、必要なログ情報を記録可能なログ記録方法である。ログ情報を記憶する複数の部分ログ情報記憶部を備える。複数の部分ログ情報記憶部に最後のログ情報の記録実行日時を記憶させる。ログ情報を記録する際、部分ログ情報記憶部に空き領域がない場合は、最終ログ日時を参照し、最古最終ログ日時からの経過期間を求める。保存期間が予め設定した期間を経過している場合、このログ情報を削除し、新たなログ情報を記録する。期間を経過したものが存在しない場合は、新しい部分ログ情報記憶部を生成して、それに発生したログ情報を記録する。   The “log recording method” disclosed in Patent Document 1 does not increase the storage amount of the log file indefinitely, and does not delete important log information in the past without being erased by overwriting. This is a recordable log recording method. A plurality of partial log information storage units for storing log information are provided. The recording execution date and time of the last log information is stored in a plurality of partial log information storage units. When recording the log information, if there is no free space in the partial log information storage unit, the last log date is referred to and the elapsed period from the oldest last log date is obtained. When the storage period has passed a preset period, this log information is deleted and new log information is recorded. When there is no file whose period has elapsed, a new partial log information storage unit is generated and the log information generated in the new partial log information storage unit is recorded.

特許文献2に開示された「障害情報ロギング装置」は、バッファのオーバフローを起こりにくくすることによって、障害の根本原因となる障害情報を破棄しないようにすることができる障害情報ロギング装置である。稼働中の装置に発生した障害を検出する。この障害内容に対応する障害ID及び発生時刻を含む障害情報を生成する。新規障害情報の発生時刻と、新規障害情報と同障害IDのバッファに格納された障害情報の発生時刻とを比較する。双方の発生時刻差が規定値内の場合に、新規障害情報を破棄する。   The “failure information logging device” disclosed in Patent Document 2 is a failure information logging device that can prevent failure information that becomes the root cause of failure from being discarded by making buffer overflow less likely to occur. Detects a failure that occurred in a running device. Fault information including a fault ID and an occurrence time corresponding to the fault content is generated. The occurrence time of the new failure information is compared with the occurrence time of the failure information stored in the buffer with the same failure ID as the new failure information. If the time difference between the two is within the specified value, the new failure information is discarded.

特許文献3に開示された「画像形成システム」は、動作のログ情報を常に確実に記憶できるようにするものである。ログ情報取得の対象となるログ取得対象プロセスが動作すると、その動作のログ情報を、リングバッファ形式のファイルシステム(リングファイルシステム)に書き込んで記憶する。記憶したログ情報は、ログ情報読出プロセスによって読み出し、表示部に表示する。転写シートに画像形成して出力したり、ネットワークを介して接続したPCクライアントに表示させたりする。   The “image forming system” disclosed in Japanese Patent Laid-Open No. 2004-228561 always stores operation log information reliably. When the log acquisition target process that is the target of log information acquisition operates, the log information of the operation is written and stored in a ring buffer file system (ring file system). The stored log information is read out by the log information reading process and displayed on the display unit. It forms an image on a transfer sheet and outputs it, or displays it on a PC client connected via a network.

特許文献4に開示された「情報処理装置」は、障害発生後に出力される実行履歴情報により障害発生時の実行履歴情報が上書きされてしまう不都合を回避して、障害発生の解析に必要とされる一定期間の実行履歴情報をトレースログ情報として、記憶容量の冗長化を招くことなく、かつシステム性能の劣化を招くことなく、確実に外部記憶装置に保存することのできる情報処理装置である。実行プログラム本体に設けられたトレース情報蓄積機能部は、プログラム実行中に、実行履歴とその処理状態をトレース情報として逐次、内部メモリ内のトレース情報格納領域に格納する。実行プログラム本体に設けられたトレース情報出力機能部は、システム監視機構から障害発生のイベント通知を受けると、内部メモリ内のトレース情報格納領域に蓄積されたトレース情報を、外部記憶装置に置かれたトレース情報ファイルの一つに出力する。
特開平10-11330号公報 特開平10-301815号公報 特開2002-140210号公報 特開2002-215431号公報
The “information processing apparatus” disclosed in Patent Document 4 is required for analyzing the occurrence of a failure by avoiding the inconvenience that the execution history information output when the failure occurs is overwritten by the execution history information output after the failure has occurred. This is an information processing apparatus that can reliably save execution history information for a certain period as trace log information in an external storage device without incurring redundancy in storage capacity and without causing deterioration in system performance. The trace information storage function unit provided in the execution program main body stores the execution history and its processing state sequentially as trace information in the trace information storage area in the internal memory during program execution. When the trace information output function unit provided in the execution program main body receives the event notification of the failure occurrence from the system monitoring mechanism, the trace information stored in the trace information storage area in the internal memory is placed in the external storage device. Output to one of the trace information files.
Japanese Patent Laid-Open No. 10-11330 Japanese Patent Laid-Open No. 10-301815 Japanese Patent Laid-Open No. 2002-140210 JP 2002-215431 A

しかし、従来のログ情報管理技術には、次のような問題がある。多くのメモリを搭載していないコンピュータ組込み機器では、ログ情報を保存するためのメモリが十分でなく、限られたメモリ内にログ情報を保存する必要がある。ログ用メモリが満杯になったときに、外部ログサーバーがない限り、重要な情報が記録できない。すべてのコンピュータ組込み機器に外部ログサーバーを用意することは、コスト的に不可能である。リングバッファ方式でログ情報を記録すると、どうしても重要なログ情報が消されてしまう。発生した障害に関係するログ情報のうち、最近のログ情報しか保存できない。根本原因がかなり以前に発生している障害の場合は、ログ情報からは原因を突き止められない。   However, the conventional log information management technique has the following problems. In a computer-embedded device that does not have a lot of memory, there is not enough memory to store log information, and it is necessary to store log information in a limited memory. When the log memory is full, important information cannot be recorded unless there is an external log server. Providing an external log server for all computer embedded devices is not possible in terms of cost. If log information is recorded by the ring buffer method, important log information will be erased. Of the log information related to the failure that occurred, only the latest log information can be saved. In the case of a failure whose root cause has occurred a long time ago, the cause cannot be determined from the log information.

本発明の目的は、上記従来の問題を解決して、コンピュータ組込み機器などにおいて、限られたログ用メモリ内に効率的にログ情報を記録して、エラー原因究明の可能性を高めることである。   An object of the present invention is to solve the above-described conventional problems and efficiently record log information in a limited log memory in a computer embedded device or the like to increase the possibility of investigating the cause of an error. .

上記の課題を解決するために、本発明では、ログ情報管理方式を、ログ情報を格納するためのログ用メモリと、ログ情報の重要度に関する重要度情報を保持する重要度情報保持手段と、ログ用メモリが満杯になったことを検出する満杯検出手段と、ログ用メモリの満杯を検出したことに応じて重要度情報に基づいて重要度の最も低いログ情報のうちの最も古いものを抽出する抽出手段と、抽出したログ情報を削除する削除手段と、ログ用メモリに新しいログ情報を追記する追記手段とを具備する構成とした。また、ログ用メモリの満杯を検出したことに応じて、成功終了イベントのログ情報にリンクするログ情報のうちの最も古いものを抽出する抽出手段を設けた。また、イベントが成功終了したことに応じて成功終了したイベントのログ情報にリンクするログ情報を抽出する抽出手段を設けた。   In order to solve the above problems, in the present invention, the log information management method includes a log memory for storing log information, importance information holding means for holding importance information regarding importance of log information, Full detection means for detecting that the log memory is full, and extracting the oldest of the least important log information based on the importance information in response to detecting that the log memory is full And extracting means for deleting the extracted log information, and additional writing means for adding new log information to the log memory. In addition, there is provided an extracting means for extracting the oldest log information linked to the log information of the successful end event in response to detecting that the log memory is full. In addition, there is provided an extracting means for extracting log information linked to the log information of the event that has been successfully completed in response to the event having been successfully completed.

上記のように構成したことにより、事前に設定した重要度に従って重要度の低いログ情報を古いものから削除するので、障害解析にさほど必要のないものが削除され、最新の重要なログ情報を蓄積することができる。また、成功終了イベントのログ情報を古いものから削除するので、障害解析にはほとんど関係ないログ情報を削除して、ログ用メモリを一度に広く解放できる。また、成功終了イベントにリンクするログ情報を保存しないことで、メモリ消費を少なくできるとともに、障害解析に関係のあるログ情報のみにより高速に障害解析ができる。   By configuring as described above, log information with low importance is deleted from the oldest according to the importance set in advance, so what is not so necessary for failure analysis is deleted and the latest important log information is accumulated can do. In addition, since the log information of the successful end event is deleted from the oldest one, the log information almost irrelevant to the failure analysis can be deleted, and the log memory can be widely released at once. Further, by not storing log information linked to the successful end event, memory consumption can be reduced, and failure analysis can be performed at high speed only by using log information related to failure analysis.

以下、本発明を実施するための最良の形態について、図1〜図7を参照しながら詳細に説明する。   Hereinafter, the best mode for carrying out the present invention will be described in detail with reference to FIGS.

本発明の実施例1は、ログ情報の重要度に関する重要度情報を保持しておき、ログ用メモリが満杯になった場合に、重要度情報に基づいて重要度の最も低いログ情報のうちの最も古いものを削除して、新しいログ情報を追記するログ情報管理方式である。   The first embodiment of the present invention retains importance information related to the importance of log information, and when the log memory becomes full, the log information having the lowest importance is selected based on the importance information. This is a log information management method in which the oldest one is deleted and new log information is added.

図1は、本発明の実施例1におけるログ情報管理方式の概念図である。本発明の実施例1におけるログ情報管理方式の基本的な構成は、従来のものと同じである。従来のものとは、追記と削除の処理方法が異なる。図1において、イベント検出手段1は、ログ情報を記録すべきイベントを検出する手段である。追記手段2は、新たなログ情報をログ用メモリに追記する手段である。ログ用メモリ3は、ログ情報を格納するメモリである。満杯検出手段4は、ログ用メモリが満杯かどうかを検査する手段である。抽出手段5は、重要度が最も低くて最も古いログ情報を抽出する手段である。重要度情報保持手段6は、ログ情報の重要度情報を保持する手段である。削除手段7は、抽出されたログ情報をログ用メモリから削除する手段である。   FIG. 1 is a conceptual diagram of a log information management method in Embodiment 1 of the present invention. The basic configuration of the log information management method according to the first embodiment of the present invention is the same as the conventional one. The appending and deletion processing methods are different from the conventional ones. In FIG. 1, event detection means 1 is means for detecting an event for which log information is to be recorded. The appending means 2 is means for appending new log information to the log memory. The log memory 3 is a memory for storing log information. The full detection means 4 is a means for inspecting whether the log memory is full. The extracting means 5 is a means for extracting the oldest log information with the lowest importance. The importance information holding means 6 is means for holding importance information of log information. The deletion means 7 is means for deleting the extracted log information from the log memory.

図2は、本発明の実施例1におけるログ情報管理方式のログ情報の表である。図2(a)の表1は、ログ用メモリが満杯になるまでログ情報を記録した状態を示す表である。図2(b)の表2は、ログ用メモリが満杯になったとき、重要度が最も低くて最も古いログ情報を削除した状態を示す表である。図3は、ログ情報管理方式の処理手順を示す流れ図である。   FIG. 2 is a log information table of the log information management method according to the first embodiment of the present invention. Table 1 in FIG. 2A is a table showing a state where log information is recorded until the log memory becomes full. Table 2 in FIG. 2B is a table showing a state in which the oldest log information having the lowest importance is deleted when the log memory is full. FIG. 3 is a flowchart showing the processing procedure of the log information management method.

上記のように構成された本発明の実施例1におけるログ情報管理方式の機能と動作を説明する。最初に、図1を参照しながら、ログ情報管理方式の機能の概要を説明する。イベント検出手段1で、ログ情報を記録すべきイベントを検出する。例えば、イベント発生を割込みなどで通知を受けて、イベントの種類を調べることにより、記録すべきイベントを検出する。記録すべきイベントが検出されると、満杯検出手段4で、ログ用メモリ3が満杯かどうかを検査する。満杯でなければ、ログ用メモリ3に、新しいログ情報を格納する。満杯であれば、抽出手段5は、重要度情報保持手段6を参照して、ログ情報の重要度情報を得て、重要度が最も低くて最も古いログ情報を抽出する。削除手段7で、ログ用メモリから最も重要度の低いログ情報を削除する。その後、追記手段2で、新たなログ情報をログ用メモリに追記する。   The function and operation of the log information management method according to the first embodiment of the present invention configured as described above will be described. First, an overview of the function of the log information management method will be described with reference to FIG. Event detection means 1 detects an event for which log information is to be recorded. For example, an event to be recorded is detected by receiving notification of the occurrence of the event by an interrupt or the like and examining the type of the event. When an event to be recorded is detected, the full detection means 4 checks whether the log memory 3 is full. If not full, new log information is stored in the log memory 3. If it is full, the extraction means 5 refers to the importance information holding means 6 to obtain the importance information of the log information, and extracts the oldest log information having the lowest importance. The deleting means 7 deletes the least important log information from the log memory. After that, the additional log means 2 adds new log information to the log memory.

次に、図2を参照しながら、ログ情報の追記方法を説明する。事前に、重要度情報保持手段6に、ログ情報の重要度情報を設定しておく。この重要度情報を参照して、ログ用メモリ3が満杯になると、重要度の低いログ情報から削除していく。ログ情報をログ用メモリ3に格納していくと、図2(a)の表1に示すようなログになる。簡単のため、ログ用メモリ3として10行分あるとする。この場合、新しいイベントのログ情報を追加するためには、古くて重要度の低いログ情報を削除する必要がある。そこで、最古のDEBUGイベントを削除すると、図2(b)に示す表2のログとなる。ここでは、重要度は、デバッグ(DEBUG)、情報(INFO)、エラー(ERROR)の順に高くなるとする。したがって、DEBUGイベントのログ情報が古い順に次々に消されていくことになる。消すべきDEBUGイベントのログ情報がなくなったら、INFOイベントのログ情報が古い順に消されていく。この情報種別は、イベントのログ情報を追加するときに、それぞれのアプリケーションが明示的に付加する情報である。   Next, a method for adding log information will be described with reference to FIG. In advance, importance level information of log information is set in the importance level information holding means 6. With reference to this importance level information, when the log memory 3 is full, the log information is deleted from the less important log information. When log information is stored in the log memory 3, a log as shown in Table 1 of FIG. For simplicity, it is assumed that the log memory 3 has 10 lines. In this case, in order to add log information of a new event, it is necessary to delete old and less important log information. If the oldest DEBUG event is deleted, the log shown in Table 2 shown in FIG. Here, it is assumed that the importance increases in the order of debugging (DEBUG), information (INFO), and error (ERROR). Therefore, the log information of DEBUG events is erased one after another from the oldest. When there is no DEBUG event log information to be deleted, the INFO event log information is deleted in order of oldest. This information type is information explicitly added by each application when event log information is added.

次に、図3を参照しながら、ログ情報管理方式の処理手順を説明する。ステップ1において、ログ記録対象のイベントの検出まで待つ。イベントを検出すると、ステップ2において、ログ用メモリ3が満杯かどうか調べる。満杯でなければ、ログ情報をログ用メモリ3に格納する。満杯であれば、ステップ3において、重要度情報を参照して、最も重要度が低くて古いログ情報を抽出する。ステップ4において、抽出したログ情報をログ用メモリ3から削除する。ステップ5において、ログ情報をログ用メモリ3に格納する。ステップ6において、ログ情報管理が終了するまで繰り返す。   Next, the processing procedure of the log information management method will be described with reference to FIG. In step 1, the process waits until detection of an event to be logged. When an event is detected, it is checked in step 2 whether the log memory 3 is full. If not full, the log information is stored in the log memory 3. If it is full, in step 3, the importance level information is referred to and the oldest log information having the lowest importance level is extracted. In step 4, the extracted log information is deleted from the log memory 3. In step 5, the log information is stored in the log memory 3. In step 6, the process is repeated until log information management is completed.

上記のように、本発明の実施例1では、ログ情報管理方式を、ログ情報の重要度に関する重要度情報を保持しておき、ログ用メモリが満杯になった場合に、重要度情報に基づいて重要度の最も低いログ情報のうちの最も古いものを削除して、新しいログ情報を追記する構成としたので、障害解析への悪影響を最小限としつつ、最新の重要なログ情報を蓄積できる。   As described above, in the first embodiment of the present invention, the log information management method is based on the importance information when the importance information regarding the importance of the log information is held and the log memory is full. The oldest log information of the lowest importance is deleted, and new log information is added, so that the latest important log information can be accumulated while minimizing the adverse effect on failure analysis. .

本発明の実施例2は、ログ用メモリが満杯になった場合に、成功終了イベントのログ情報にリンクするログ情報のうちの最も古いものを削除し、ログ用メモリに新しいログ情報を追記するログ情報管理方式である。   In the second embodiment of the present invention, when the log memory is full, the oldest log information linked to the log information of the successful end event is deleted, and new log information is added to the log memory. This is a log information management method.

図4は、本発明の実施例2におけるログ情報管理方式の概念図と、ログ情報の表である。本発明の実施例2におけるログ情報管理方式の基本的な構成は、実施例1と同じである。しかし、追記と削除の処理方法が異なる。図4(a)において、イベント検出手段1は、ログ情報を記録すべきイベントを検出する手段である。追記手段2は、新たなログ情報をログ用メモリに追記する手段である。ログ用メモリ3は、ログ情報を格納するメモリである。満杯検出手段4は、ログ用メモリが満杯かどうかを検査する手段である。抽出手段5は、成功終了イベントのログ情報にリンクするログ情報の内の最も古いログ情報を抽出する手段である。削除手段7は、抽出されたログ情報をログ用メモリから削除する手段である。図4(b)の表3は、ログ用メモリが満杯になったとき、成功終了イベントのログ情報にリンクするログ情報の内の最も古いログ情報を削除した状態を示す表である。図5は、ログ情報管理方式の処理手順を示す流れ図である。   FIG. 4 is a conceptual diagram of a log information management method and a log information table according to the second embodiment of the present invention. The basic configuration of the log information management method in the second embodiment of the present invention is the same as that in the first embodiment. However, the appending and deletion processing methods are different. In FIG. 4A, event detection means 1 is means for detecting an event for which log information is to be recorded. The appending means 2 is means for appending new log information to the log memory. The log memory 3 is a memory for storing log information. The full detection means 4 is a means for inspecting whether the log memory is full. The extracting means 5 is means for extracting the oldest log information among the log information linked to the log information of the successful end event. The deletion means 7 is means for deleting the extracted log information from the log memory. Table 3 in FIG. 4B is a table showing a state in which the oldest log information in the log information linked to the log information of the successful end event is deleted when the log memory is full. FIG. 5 is a flowchart showing the processing procedure of the log information management method.

上記のように構成された本発明の実施例2におけるログ情報管理方式の機能と動作を説明する。最初に、図4(a)を参照しながら、ログ情報管理方式の機能の概要を説明する。イベント検出手段1で、ログ情報を記録すべきイベントを検出する。記録すべきイベントが検出されると、満杯検出手段4で、ログ用メモリが満杯かどうかを検査する。満杯でなければ、ログ用メモリ3に、ログ情報を格納する。満杯であれば、抽出手段5で、成功終了イベントのログ情報にリンクするログ情報の内の最も古いログ情報を抽出する。削除手段7で、抽出されたログ情報をログ用メモリから削除する。その後、追記手段2で、新たなログ情報をログ用メモリ3に追記する。   The function and operation of the log information management method according to the second embodiment of the present invention configured as described above will be described. First, an overview of the log information management function will be described with reference to FIG. Event detection means 1 detects an event for which log information is to be recorded. When an event to be recorded is detected, the full detection means 4 checks whether the log memory is full. If not full, log information is stored in the log memory 3. If it is full, the extracting means 5 extracts the oldest log information among the log information linked to the log information of the successful end event. The deleting unit 7 deletes the extracted log information from the log memory. Thereafter, new log information is added to the log memory 3 by the additional recording means 2.

次に、図4(b)を参照しながら、ログ情報の追記方法を説明する。ログ用メモリ3が満杯になると、成功終了イベントのログ情報にリンクする最古のログ情報を消していく方法である。図2の表1において、リンク情報は2カラム目におかれ、メッセージIDとして、どこからどこへという情報が記録されている。簡単のため、メッセージIDは10〜999の値とし、予約IDとして0〜9を使う。予約IDのうち、成功終了を0、エラー終了を9とする。あるひとつのログ情報のシーケンスは、0か9で終了することになる。図1の表1に示すログ内の168->169->0は成功終了しているので、ログ用メモリ3が満杯になった時点で、この2行が消される。その結果、図4(b)の表3に示すようなログになる。   Next, a method for adding log information will be described with reference to FIG. When the log memory 3 is full, the oldest log information linked to the log information of the successful end event is erased. In Table 1 of FIG. 2, the link information is placed in the second column, and information from where to where is recorded as the message ID. For simplicity, the message ID is a value between 10 and 999, and a reservation ID between 0 and 9 is used. Of the reservation IDs, the success end is 0 and the error end is 9. One log information sequence ends with 0 or 9. Since 168-> 169-> 0 in the log shown in Table 1 of FIG. 1 has been completed successfully, these two lines are erased when the log memory 3 becomes full. As a result, the log is as shown in Table 3 of FIG.

次に、図5を参照しながら、ログ情報管理方式の処理手順を説明する。ステップ11において、ログ記録対象のイベントの検出まで待つ。イベントを検出すると、ステップ12において、ログ用メモリ3が満杯かどうか調べる。満杯でなければ、ログ情報をログ用メモリ3に格納する。満杯であれば、ステップ13において、成功終了イベントのリンク内の最古のログ情報を抽出する。ステップ14において、抽出したログ情報をログ用メモリ3から削除する。ステップ15において、新しいログ情報をログ用メモリ3に格納する。ステップ16において、ログ情報管理が終了するまで繰り返す。   Next, the processing procedure of the log information management method will be described with reference to FIG. In step 11, the process waits until detection of an event to be logged. When an event is detected, it is checked in step 12 whether the log memory 3 is full. If not full, the log information is stored in the log memory 3. If it is full, in step 13, the oldest log information in the link of the successful end event is extracted. In step 14, the extracted log information is deleted from the log memory 3. In step 15, new log information is stored in the log memory 3. In step 16, the process is repeated until log information management is completed.

上記のように、本発明の実施例2では、ログ情報管理方式を、ログ用メモリが満杯になった場合に、成功終了イベントのログ情報にリンクするログ情報のうちの最も古いものを削除し、ログ用メモリに新しいログ情報を追記する構成としたので、障害解析への悪影響をほとんど無くしつつ、ログ用メモリを一度に広く解放して最新の重要なログ情報を蓄積できる。   As described above, in the second embodiment of the present invention, when the log memory is full, the oldest log information linked to the log information of the successful end event is deleted when the log memory is full. Since the new log information is added to the log memory, the latest important log information can be accumulated by widely releasing the log memory at a time while eliminating the adverse effect on the failure analysis.

本発明の実施例3は、イベントが成功終了したときは、それにリンクするログ情報を削除し、成功終了でなければ、ログ用メモリに新しいログ情報を追記するログ情報管理方式である。   The third embodiment of the present invention is a log information management system in which, when an event is successfully completed, the log information linked to the event is deleted, and when the event is not successful, new log information is added to the log memory.

図6は、本発明の実施例3におけるログ情報管理方式の概念図とログ情報の表である。実施例3におけるログ情報管理方式の基本的な構成は、実施例1と同じである。しかし、追記と削除の処理方法が異なる。図6(a)において、イベント検出手段1は、ログ情報を記録すべきイベントを検出する手段である。追記手段2は、新たなログ情報をログ用メモリに追記する手段である。ログ用メモリ3は、ログ情報を格納するメモリである。抽出手段5は、成功終了イベントにリンクするログ情報を抽出する手段である。削除手段7は、抽出したログ情報をログ用メモリから削除する手段である。図6(b)の表4は、成功終了イベントにリンクするログ情報を削除した状態のログを示す表である。図7は、ログ情報管理方式の処理手順を示す流れ図である。   FIG. 6 is a conceptual diagram of a log information management method and a log information table according to the third embodiment of the present invention. The basic configuration of the log information management method in the third embodiment is the same as that in the first embodiment. However, the appending and deletion processing methods are different. In FIG. 6A, event detection means 1 is means for detecting an event for which log information is to be recorded. The appending means 2 is means for appending new log information to the log memory. The log memory 3 is a memory for storing log information. The extraction unit 5 is a unit that extracts log information linked to the success end event. The deletion means 7 is means for deleting the extracted log information from the log memory. Table 4 in FIG. 6B is a table showing a log in a state where log information linked to the success end event is deleted. FIG. 7 is a flowchart showing the processing procedure of the log information management method.

上記のように構成された本発明の実施例3におけるログ情報管理方式の機能と動作を説明する。最初に、図6(a)を参照しながら、ログ情報管理方式の機能の概要を説明する。イベント検出手段1で、ログ情報を記録すべきイベントを検出する。記録すべきイベントが検出されると、成功終了イベントにリンクするログ情報を抽出する。削除手段7で、抽出したログ情報をログ用メモリ3から削除する。追記手段2で、新たなログ情報をログ用メモリ3に追記する。   The function and operation of the log information management method according to the third embodiment of the present invention configured as described above will be described. First, an overview of the function of the log information management method will be described with reference to FIG. Event detection means 1 detects an event for which log information is to be recorded. When an event to be recorded is detected, log information linked to a successful end event is extracted. The deleting unit 7 deletes the extracted log information from the log memory 3. The additional recording means 2 adds new log information to the log memory 3.

次に、図6(b)を参照しながら、ログ情報の追記方法を説明する。成功終了したイベントのログ情報は保存しない方法である。図1の表1に示すようなイベントが実際に発生した場合は、メッセージIDが0になった時点で消していく。したがって、最終的には、図6(b)の表4に示すように、エラー終了したイベントのログ情報のみが保存されていくことになる。   Next, a method for adding log information will be described with reference to FIG. This is a method that does not save log information of events that have been successfully completed. When an event as shown in Table 1 in FIG. 1 actually occurs, the event is deleted when the message ID becomes 0. Therefore, finally, as shown in Table 4 of FIG. 6B, only the log information of the event that ended in error is stored.

次に、図7を参照しながら、ログ情報管理方式の処理手順を説明する。ステップ21において、ログ記録対象のイベントの検出まで待つ。イベントを検出すると、ステップ22において、成功終了したイベントかどうか調べる。成功終了でなければ、ステップ5において、ログ情報をログ用メモリ3に格納する。成功終了であれば、ステップ23において、成功終了したイベントにリンクするログ情報を抽出する。ステップ24において、抽出したログ情報をログ用メモリ3から削除する。ステップ26において、ログ情報管理が終了するまで繰り返す。   Next, the processing procedure of the log information management method will be described with reference to FIG. In step 21, the process waits until detection of an event to be logged. If an event is detected, it is checked in step 22 whether the event has been completed successfully. If not successful, the log information is stored in the log memory 3 in step 5. If successful completion, in step 23, log information linked to the successful completion event is extracted. In step 24, the extracted log information is deleted from the log memory 3. In step 26, the process is repeated until log information management is completed.

上記のように、本発明の実施例3では、ログ情報管理方式を、イベントが成功終了したときは、それにリンクするログ情報を削除し、成功終了でなければ、ログ用メモリに新しいログ情報を追記する構成としたので、ログ用メモリの消費を少なくでき、障害解析をより高速に行える。   As described above, in the third embodiment of the present invention, the log information management method is configured such that, when an event is completed successfully, the log information linked to the event is deleted, and if the event is not completed successfully, new log information is stored in the log memory. Since it is configured to append, log memory consumption can be reduced, and failure analysis can be performed at higher speed.

本発明のログ情報管理方式は、コンピュータ組込み機器におけるログ情報管理方式として最適である。   The log information management method of the present invention is most suitable as a log information management method in a computer embedded device.

本発明の実施例1におけるログ情報管理方式の概念図である。It is a conceptual diagram of the log information management system in Example 1 of this invention. 本発明の実施例1におけるログ情報管理方式のログ情報の表である。It is a table | surface of the log information of the log information management system in Example 1 of this invention. 本発明の実施例1におけるログ情報管理方式の処理手順を示す流れ図である。It is a flowchart which shows the process sequence of the log information management system in Example 1 of this invention. 本発明の実施例2におけるログ情報管理方式の概念図とログ情報の表である。It is the conceptual diagram of the log information management system in Example 2 of this invention, and the table | surface of log information. 本発明の実施例2におけるログ情報管理方式の処理手順を示す流れ図である。It is a flowchart which shows the process sequence of the log information management system in Example 2 of this invention. 本発明の実施例3におけるログ情報管理方式の概念図とログ情報の表である。It is the conceptual diagram of the log information management system in Example 3 of this invention, and the table | surface of log information. 本発明の実施例3におけるログ情報管理方式の処理手順を示す流れ図である。It is a flowchart which shows the process sequence of the log information management system in Example 3 of this invention.

符号の説明Explanation of symbols

1・・・イベント検出手段、2・・・追記手段、3・・・ログ用メモリ、4・・・満杯検出手段、5・・・抽出手段、6・・・重要度情報保持手段、7・・・削除手段。 DESCRIPTION OF SYMBOLS 1 ... Event detection means, 2 ... Additional recording means, 3 ... Log memory, 4 ... Full detection means, 5 ... Extraction means, 6 ... Importance information holding means, 7. ..Delete means.

Claims (6)

ログ情報を格納するためのログ用メモリと、ログ情報の重要度に関する重要度情報を保持する重要度情報保持手段と、前記ログ用メモリが満杯になったことを検出する満杯検出手段と、前記ログ用メモリの満杯を検出したことに応じて前記重要度情報に基づいて重要度の最も低いログ情報のうちの最も古いものを抽出する抽出手段と、抽出したログ情報を削除する削除手段と、前記ログ用メモリに新しいログ情報を追記する追記手段とを具備することを特徴とするログ情報管理方式。   Log memory for storing log information, importance information holding means for holding importance information relating to the importance of log information, full detection means for detecting that the log memory is full, and An extraction means for extracting the oldest log information of the lowest importance based on the importance information in response to detecting that the log memory is full; a deletion means for deleting the extracted log information; A log information management system comprising: an appending means for appending new log information to the log memory. ログ情報を格納するためのログ用メモリと、前記ログ用メモリが満杯になったことを検出する満杯検出手段と、前記ログ用メモリの満杯を検出したことに応じて成功終了イベントのログ情報にリンクするログ情報のうちの最も古いものを抽出する抽出手段と、抽出したログ情報を削除する削除手段と、前記ログ用メモリに新しいログ情報を追記する追記手段とを具備することを特徴とするログ情報管理方式。   A log memory for storing log information, a full detection means for detecting that the log memory is full, and log information of a successful end event in response to detecting that the log memory is full It comprises an extracting means for extracting the oldest log information to be linked, a deleting means for deleting the extracted log information, and an appending means for appending new log information to the log memory. Log information management method. ログ情報を格納するためのログ用メモリと、イベントが成功終了したことに応じて成功終了イベントのログ情報にリンクするログ情報を抽出する抽出手段と、抽出したログ情報を削除する削除手段と、前記ログ用メモリに新しいログ情報を追記する追記手段とを具備することを特徴とするログ情報管理方式。   A log memory for storing log information, an extracting means for extracting log information linked to the log information of the successful end event in response to the successful completion of the event, a deleting means for deleting the extracted log information, A log information management system comprising: an appending means for appending new log information to the log memory. ログ情報の重要度に関する重要度情報を保持しておき、ログ情報を格納するためのログ用メモリが満杯になったことを検出すると、前記重要度情報に基づいて重要度の最も低いログ情報のうちの最も古いものを抽出して削除し、前記ログ用メモリに新しいログ情報を追記することを特徴とするログ情報管理方法。   When the importance level information on the importance level of the log information is retained and it is detected that the log memory for storing the log information is full, the log information with the lowest importance level is determined based on the importance level information. A log information management method comprising extracting and deleting the oldest one and adding new log information to the log memory. ログ情報を格納するためのログ用メモリが満杯になったことを検出すると、成功終了イベントのログ情報にリンクするログ情報のうちの最も古いものを抽出して削除し、前記ログ用メモリに新しいログ情報を追記することを特徴とするログ情報管理方法。   When it is detected that the log memory for storing log information is full, the oldest log information linked to the log information of the successful end event is extracted and deleted, and the log memory is new. A log information management method comprising adding log information. イベントが成功終了したことに応じて成功終了イベントのログ情報にリンクするログ情報を抽出して削除し、前記ログ用メモリに新しいログ情報を追記することを特徴とするログ情報管理方法。   A log information management method, wherein log information linked to log information of a successful end event is extracted and deleted in response to successful completion of the event, and new log information is added to the log memory.
JP2006061298A 2006-03-07 2006-03-07 Log information management method Expired - Fee Related JP4963847B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006061298A JP4963847B2 (en) 2006-03-07 2006-03-07 Log information management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006061298A JP4963847B2 (en) 2006-03-07 2006-03-07 Log information management method

Publications (2)

Publication Number Publication Date
JP2007241540A true JP2007241540A (en) 2007-09-20
JP4963847B2 JP4963847B2 (en) 2012-06-27

Family

ID=38587039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006061298A Expired - Fee Related JP4963847B2 (en) 2006-03-07 2006-03-07 Log information management method

Country Status (1)

Country Link
JP (1) JP4963847B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015049792A (en) * 2013-09-03 2015-03-16 京セラドキュメントソリューションズ株式会社 Image processing apparatus and log management method
CN104704475A (en) * 2012-10-04 2015-06-10 阿尔卡特朗讯 Data logs management in a multi-client architecture
JP2016076071A (en) * 2014-10-06 2016-05-12 富士通株式会社 Log management apparatus, log management program, and log management method
JP2021005275A (en) * 2019-06-27 2021-01-14 株式会社東芝 Monitoring control system, information processing device, information processing method, and computer program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06324916A (en) * 1993-05-10 1994-11-25 Hokuriku Nippon Denki Software Kk Fault information logging system
JPH0844596A (en) * 1994-08-02 1996-02-16 Nec Corp Command log recording system
JP2003108406A (en) * 2001-09-27 2003-04-11 Nippon Telegr & Teleph Corp <Ntt> Log control method, log control program, and storage medium storing application program having log control program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06324916A (en) * 1993-05-10 1994-11-25 Hokuriku Nippon Denki Software Kk Fault information logging system
JPH0844596A (en) * 1994-08-02 1996-02-16 Nec Corp Command log recording system
JP2003108406A (en) * 2001-09-27 2003-04-11 Nippon Telegr & Teleph Corp <Ntt> Log control method, log control program, and storage medium storing application program having log control program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104704475A (en) * 2012-10-04 2015-06-10 阿尔卡特朗讯 Data logs management in a multi-client architecture
JP2015535372A (en) * 2012-10-04 2015-12-10 アルカテル−ルーセント Data log management in a multi-client architecture
US10007685B2 (en) 2012-10-04 2018-06-26 Alcatel Lucent Data logs management in a multi-client architecture
JP2015049792A (en) * 2013-09-03 2015-03-16 京セラドキュメントソリューションズ株式会社 Image processing apparatus and log management method
JP2016076071A (en) * 2014-10-06 2016-05-12 富士通株式会社 Log management apparatus, log management program, and log management method
JP2021005275A (en) * 2019-06-27 2021-01-14 株式会社東芝 Monitoring control system, information processing device, information processing method, and computer program
JP7286439B2 (en) 2019-06-27 2023-06-05 株式会社東芝 Supervisory control system, information processing device, information processing method, and computer program

Also Published As

Publication number Publication date
JP4963847B2 (en) 2012-06-27

Similar Documents

Publication Publication Date Title
US20060282471A1 (en) Error checking file system metadata while the file system remains available
US20070271431A1 (en) Snapshot mechanism and method thereof
US7567994B2 (en) Method and apparatus to proactively capture and transmit dense diagnostic data of a file system
CN106682162A (en) Log management method and device
CN112148221B (en) Method, device, equipment and storage medium for inspecting redundant array of inexpensive disks
US20100174878A1 (en) Systems and Methods for Monitoring Archive Storage Condition and Preventing the Loss of Archived Data
JP2013206147A (en) Logging device, logging method, and program
JP4963847B2 (en) Log information management method
US9329965B2 (en) Extracting log files from storage devices
US8843781B1 (en) Managing drive error information in data storage systems
JP2006268208A (en) Failure diagnosing circuit, information processor equipped with the same, failure diagnosing system, and failure diagnosing program
WO2015198600A1 (en) Analysis device, analysis method, and storage medium in which analysis program is recorded
JP2014225179A (en) Log acquisition device, log acquisition method, and log acquisition program
JP6079266B2 (en) Control device, log storage method, and control program
JP2009223487A (en) Trace data analysis method and its program
JP2008225599A (en) Trace information output apparatus and trace information output method
JP2014106824A (en) Printing control device, data management method, and program
JP2009032214A (en) Software test support system
WO2016120989A1 (en) Management computer and rule test method
JP2007323380A (en) Memory management apparatus, memory management method and program
JP2007199968A (en) Log collection system for information processor
JP2006235683A (en) Operation history storage device and operation history storage program
US8010506B2 (en) Information processing system and network logging information processing method
JP6901171B1 (en) Information processing equipment, information processing methods and programs
US20230236953A1 (en) Dynamic debug log enabler for any protection failure jobs

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101019

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101021

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110301

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111020

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111216

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120327

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120327

R150 Certificate of patent or registration of utility model

Ref document number: 4963847

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150406

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees