JP2008262500A - Log information recording device, electronic equipment, log information recording method, log information recording program, and computer-readable storage medium - Google Patents
Log information recording device, electronic equipment, log information recording method, log information recording program, and computer-readable storage medium Download PDFInfo
- Publication number
- JP2008262500A JP2008262500A JP2007106294A JP2007106294A JP2008262500A JP 2008262500 A JP2008262500 A JP 2008262500A JP 2007106294 A JP2007106294 A JP 2007106294A JP 2007106294 A JP2007106294 A JP 2007106294A JP 2008262500 A JP2008262500 A JP 2008262500A
- Authority
- JP
- Japan
- Prior art keywords
- time
- log information
- internal clock
- clock
- correction
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 19
- 238000012937 correction Methods 0.000 claims abstract description 102
- 238000004891 communication Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000010365 information processing Effects 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
Images
Landscapes
- Electric Clocks (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、ログ情報記録装置、電子機器、ログ情報記録方法、ログ情報記録プログラム、及びコンピュータ読み取り可能な記録媒体に関し、特にタイムスタンプを使用した各種記録(ロギング)機能を持つ複写機、ファクシミリ装置、プリンタ等の画像処理装置やコンピュータ等の電子機器のログ情報管理技術に関する。 The present invention relates to a log information recording apparatus, an electronic device, a log information recording method, a log information recording program, and a computer-readable recording medium, and in particular, a copier and a facsimile apparatus having various recording (logging) functions using time stamps. The present invention relates to log information management technology for image processing apparatuses such as printers and electronic devices such as computers.
近年、セキュリティの観点から、コンピュータを含めた電子機器のセキュリティ関連ログは益々重要な機能となっている。このようなセキュリティ関連ログは、監査ログ(Audit Log)と呼ばれており、その構成要素のひとつとしてタイムスタンプがある。ログ情報は、事象(イベント)が発生した時刻の記録(タイムスタンプ)が正確であることが求められている。このことは世界的なセキュリティ評価基準であるコモンクライテリア(Common Criteria)にも高信頼タイムスタンプとして記述されている。 In recent years, security-related logs of electronic devices including computers have become increasingly important functions from the viewpoint of security. Such a security-related log is called an audit log, and one of the components is a time stamp. The log information is required to be accurate in the record (time stamp) of the time when the event occurred. This is also described as a reliable time stamp in the Common Criteria, a global security evaluation standard.
ところで、タイムスタンプは、ログ情報にとって重要な要素であるが、電子機器の時計は常に正確な状態に保たれるとは限らない。例えば、電源オフ時でもバックアップ電源で動作する内部時計を持っていたとしても、長い間には徐々に時刻はずれていくからである。 By the way, the time stamp is an important element for the log information, but the timepiece of the electronic device is not always kept in an accurate state. For example, even if you have an internal clock that operates with a backup power supply even when the power is off, the time gradually shifts over time.
この問題を解消するために、その電子機器の管理者に定期的な時刻合わせを義務付けたり、あるいは、時刻サーバより定期的にネットワークを介してコンピュータの時計を合わせる仕組み(NTP:Network Time Protocol)の利用を促したりする方法もある。しかし、管理者が定期的な時刻合わせを怠ったり、ネットワークの障害でNTPサーバと接続ができなかったりして、内部時計のずれが大きくなった場合は、そのタイムスタンプを使用したログ情報の信頼性はどんどん低下する。例えば、時刻を頼りにセキュリティ上の追跡(トレース)をしている場合は、タイムスタンプのずれが大きくなると、その追跡が困難になってしまうこともある。 In order to solve this problem, a system time (NTP: Network Time Protocol) is required to require the electronic device administrator to set the time periodically or from the time server to set the computer clock periodically over the network. There are also ways to encourage usage. However, if the administrator neglects to set the time regularly or cannot connect to the NTP server due to a network failure, and the internal clock shifts greatly, the reliability of the log information using that time stamp Sex is steadily decreasing. For example, when security tracking is performed based on time, tracking may become difficult if the time stamp shift becomes large.
内部時計が標準時刻とずれがあるのを前提にした記録装置もある(例えば特許文献1参照)。同文献の記録装置では、再記録指令を入力すると、内部時計のその時点での時刻と修正機能付時計装置の時刻との偏差を算出して、その時刻偏差に基づいて、記録しているログ情報の時刻情報を修正するようにしている。また、修正機能付時計装置は、FM放送を受信し、少なくとも1日に1回放送される時報を検知して、その時報に合わせて自身の内部時計を修正するように構成されている。
しかしながら、特許文献1の記録装置では、少なくとも1日に1回標準時刻に修正する修正機能付時計装置を必要とし、再記録指令を受けた時は正しい時刻が修正機能付時計装置に設定されていなければならない。また、時刻情報の修正の方法は、再記録指令を受けた時点での内部時計と修正機能付時計装置との偏差を、すべての時刻情報の修正に等しく適用するため、長時間経過している時刻情報については誤差が大きくなるおそれがある。 However, the recording device of Patent Document 1 requires a clock device with a correction function that corrects the standard time at least once a day, and when a re-recording command is received, the correct time is set in the clock device with a correction function. There must be. In addition, the time information correction method takes a long time since the deviation between the internal clock and the clock device with correction function at the time of receiving the re-recording command is equally applied to the correction of all time information. For time information, there is a risk that the error will increase.
本発明は、上記実情を考慮してなされたものであり、必要な時に内部時計を正しい標準時刻に設定できるだけでなく、高い精度でログ情報中の時刻情報を修正可能なログ情報記録装置、このログ情報記録装置を使用した電子機器等を提供することを目的とする。 The present invention has been made in consideration of the above circumstances, and not only can the internal clock be set to the correct standard time when necessary, but also a log information recording apparatus capable of correcting the time information in the log information with high accuracy. It is an object of the present invention to provide an electronic device using a log information recording device.
上記課題を解決するために、請求項1に記載の発明は、機器の動作情報と、該機器の動作発生時に内部時計の示す時刻である時刻情報とを記録装置にログ情報として記録するログ情報記録装置において、前記内部時計を現在の標準時刻に修正する時計修正手段と、前記内部時計を修正する際に内部時計と標準時刻との時間差を求める誤差判定手段と、前記求められた時間差と、前回の時計修正から今回の時計修正までの経過時間とから、前記ログ情報中の時刻情報の誤差を修正する時刻情報修正手段と、を備えたことを特徴とする。 In order to solve the above-mentioned problem, the invention according to claim 1 is log information for recording device operation information and time information, which is a time indicated by an internal clock at the time of operation of the device, as log information in a recording device. In the recording apparatus, a clock correction unit that corrects the internal clock to a current standard time, an error determination unit that calculates a time difference between the internal clock and the standard time when correcting the internal clock, and the obtained time difference; Time information correcting means for correcting an error in time information in the log information from an elapsed time from the previous clock correction to the current clock correction is provided.
また、請求項2の発明は、請求項1記載のログ情報記録装置において、前記時計修正手段は、前記内部時計を修正した動作を前記ログ情報として記録することを特徴とする。 According to a second aspect of the present invention, in the log information recording apparatus according to the first aspect, the clock correction unit records an operation of correcting the internal clock as the log information.
また、請求項3の発明は、請求項1または2記載のログ情報記録装置において、前記時計修正手段は、前記標準時刻を入力する入力部を備えたことを特徴とする。 According to a third aspect of the present invention, in the log information recording apparatus according to the first or second aspect, the clock correction means includes an input unit for inputting the standard time.
また、請求項4の発明は、指定された日時にメールの送信を行う通知手段を設け、前記誤差判定手段は、次に前記内部時計を修正すべき時期を決定し、前記通知手段が前記内部時計の修正を促すメールを送信する日時を指定することを特徴とする。 According to a fourth aspect of the present invention, there is provided notification means for sending an email at a designated date and time, the error determination means determines the next time to correct the internal clock, and the notification means It is characterized in that a date and time for sending an e-mail for prompting correction of the clock is designated.
また、請求項5の発明は、請求項4記載のログ情報記録装置において、前記通知手段は、前記内部時計修正を促すメールを送信した後、実際に前記内部時計が修正されるまで、所定の時間間隔で督促メールを送信し続けることを特徴とする。 According to a fifth aspect of the present invention, there is provided the log information recording apparatus according to the fourth aspect, wherein after the notification means transmits an e-mail for prompting the correction of the internal clock, the internal clock is actually corrected until the internal clock is corrected. It is characterized by continuously sending dunning mails at time intervals.
また、請求項6の発明は、動作情報と、動作発生時に内部時計の示す時刻である時刻情報とを記録装置にログ情報として記録するログ情報記録手段を有する電子機器において、前記内部時計を現在の標準時刻に修正する時計修正手段と、前記内部時計を修正する際に内部時計と標準時刻との時間差を求める誤差判定手段と、前記求められた時間差と、前回の時計修正から今回の時計修正までの経過時間とから、前記ログ情報中の時刻情報の誤差を修正する時刻情報修正手段と、を備えたことを特徴とする。 According to a sixth aspect of the present invention, there is provided an electronic apparatus having log information recording means for recording operation information and time information, which is a time indicated by the internal clock when the operation occurs, in the recording device as log information. A time correction means for correcting the time to the standard time, an error determination means for obtaining a time difference between the internal clock and the standard time when the internal clock is corrected, the time difference obtained from the previous time correction And time information correcting means for correcting an error of time information in the log information from the elapsed time up to.
また、請求項7の発明は、請求項6記載の電子機器において、前記時計修正手段は、前記内部時計を修正した動作を前記ログ情報として記録することを特徴とする。 According to a seventh aspect of the present invention, in the electronic device according to the sixth aspect, the clock correction means records an operation of correcting the internal clock as the log information.
また、請求項8の発明は、請求項6または7記載の電子機器において、前記時計修正手段は、前記標準時刻を入力する入力部を備えたことを特徴とする。 According to an eighth aspect of the present invention, in the electronic device according to the sixth or seventh aspect, the clock correction means includes an input unit for inputting the standard time.
また、請求項9の発明は、指定された日時にメールの送信を行う通知手段を設け、前記誤差判定手段は、次に前記内部時計を修正すべき時期を決定し、前記通知手段が前記内部時計の修正を促すメールを送信する日時を指定することを特徴とする。 Further, the invention of claim 9 is provided with a notification means for sending a mail at a designated date and time, the error determination means determines the next time to correct the internal clock, and the notification means It is characterized in that a date and time for sending an e-mail for prompting correction of the clock is designated.
また、請求項10の発明は、請求項9記載の電子機器において、前記通知手段は、前記内部時計修正を促すメールを送信した後、実際に前記内部時計が修正されるまで、所定の時間間隔で督促メールを送信し続けることを特徴とする。 The electronic device according to a tenth aspect of the present invention is the electronic device according to the ninth aspect, wherein the notifying unit transmits a mail for urging the correction of the internal clock to a predetermined time interval until the internal clock is actually corrected. It is characterized by continuing to send a reminder email.
また、請求項11の発明は、機器の動作情報と、該機器の動作発生時に内部時計の示す時刻である時刻情報とをログ情報として記録するログ情報記録方法において、時計修正手段が前記内部時計を現在の標準時刻に修正する時計修正ステップと、前記内部時計を修正する際に、誤差判定手段が前記内部時計と前記標準時刻との時間差を求める誤差判定ステップと、前記求められた時間差と、前回の時計修正から今回の時計修正までの経過時間とから、時刻情報修正手段が前記時刻情報の誤差を修正する時刻情報修正ステップと、を備えたことを特徴とする。
The invention of
また、請求項12の発明は、請求項11記載のログ情報記録方法において、前記時計修正ステップは、前記内部時計を修正した動作を前記ログ情報として記録することを特徴とする。 According to a twelfth aspect of the present invention, in the log information recording method according to the eleventh aspect, the clock correction step records an operation of correcting the internal clock as the log information.
また、請求項13の発明は、請求項11または12記載のログ情報記録方法において、前記時計修正ステップは、前記標準時刻を入力する入力ステップを有することを特徴とする。
The invention according to
また、請求項14の発明は、機器の動作情報と、該機器の動作発生時に内部時計の示す時刻である時刻情報とをログ情報としてログ情報記録装置に記録させるログ情報記録プログラムであって、前記ログ情報記録装置に、前記内部時計を現在の標準時刻に修正する時計修正機能と、前記内部時計を修正する際に前記内部時計と前記標準時刻との時間差を求める誤差判定機能と、前記求められた時間差と、前回の時計修正から今回の時計修正までの経過時間とから、前記ログ情報中の時刻情報の誤差を修正する時刻情報修正機能と、を実現させることを特徴とする。
The invention of
また、請求項15の発明は、請求項14記載のログ情報記録プログラムにおいて、前記時計修正機能は、前記ログ情報記録装置に、前記内部時計を修正した動作をログ情報として記録させることを特徴とする。
Further, the invention of
また、請求項16の発明は、請求項14または15記載のログ情報記録プログラムにおいて、前記ログ情報記録装置は、前記標準時刻を入力する入力手段を備え、前記時計修正機能は、前記ログ情報記録装置に、前記入力手段で入力された標準時刻に修正させることを特徴とする。
Further, the invention of
また、請求項17の発明は、請求項14から16のいずれか1項に記載のログ情報記録プログラムを記録したコンピュータ読み取り可能な記録媒体であることを特徴とする。
The invention according to
本発明によれば、内部時計を所望の正確さに維持でき、内部時計の修正と同時に、高い精度でログ情報中の時刻情報を修正することができる。従って、正確なログ情報を蓄積可能な電子機器を提供できる。 According to the present invention, the internal clock can be maintained at a desired accuracy, and the time information in the log information can be corrected with high accuracy simultaneously with the correction of the internal clock. Therefore, it is possible to provide an electronic device that can store accurate log information.
以下、図面を参照して、本発明の実施の形態を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は、本発明の実施形態にかかるログ情報記録装置の機能構成を示すブロック図である。同図に示すログ情報記録装置は、ログ情報を蓄積したい他の電子機器(例えば、複写機、プリンタ、各種サーバなど)からのイベント情報を蓄積するのを前提としているが、機能のほとんどはソフトウエアで実現しているので、この機能を電子機器そのものに組み込むことは容易である。 FIG. 1 is a block diagram showing a functional configuration of a log information recording apparatus according to an embodiment of the present invention. The log information recording apparatus shown in the figure is premised on storing event information from other electronic devices (for example, copiers, printers, various servers, etc.) that want to store log information, but most of the functions are software. Since it is realized by software, it is easy to incorporate this function into the electronic device itself.
同図において、ログ情報書込み手段11は、親装置である電子機器から種々のイベント情報を受けて、内部時計12が示す現在時刻(タイムスタンプ)と共にログ情報ファイル13へ書込む。
In the figure, the log information writing means 11 receives various event information from the electronic device as the parent device, and writes it into the
イベント情報は、動作記録をとる電子機器の機能により様々であるが、例えば使用した利用者の名前と使用開始時刻、同終了時刻、印刷ファイルを受信した時刻とファイルの大きさ(ページ数)、印刷開始時刻、同終了時刻等の情報である。これらのイベントは図示しない通信インタフェース等を介して親装置である電子機器からログ情報記録装置に入力される。もし親装置の電子機器に組み込まれていれば、例えば、ログ情報書込み手段11をサブルーチンコールや割込み等で起動すればよいので、通信インタフェース等を介す必要はない。 The event information varies depending on the function of the electronic device that records the operation record. For example, the name of the user who used it, the use start time, the end time, the time when the print file was received, the size of the file (number of pages), This is information such as the print start time and the end time. These events are input to the log information recording device from the electronic device as the parent device via a communication interface (not shown). If it is incorporated in the electronic device of the parent apparatus, for example, the log information writing means 11 may be activated by a subroutine call, an interrupt, or the like, so there is no need to use a communication interface or the like.
内部時計12は、参照されると現在時刻等を出力するデバイスであり、通常の電子機器には搭載されている。
The
時刻情報修正手段14は、蓄積されたログ情報の時刻(タイムスタンプ)の部分の誤差を修正する手段である。修正されたログ情報は要求に応じて親装置である電子機器に送信されたり、図示しない印刷装置で印刷出力したりすることができる。 The time information correction means 14 is a means for correcting an error in the time (time stamp) portion of the accumulated log information. The corrected log information can be transmitted to an electronic device as a parent device or printed out by a printing device (not shown) upon request.
前述したように、内部時計12は修正しないで連続して使用していると誤差が蓄積する。この誤差を修正して正しい時刻に戻すのが時計修正手段15である。時計修正手段15は、ラジオやテレビ放送、電話の時報サービス等を参照して、利用者が直接、手入力で日時を入力するようにしてもよく、あるいは電波時計やネットワーク上のNTP(Network Time Protocol)サーバを用いて人手を介さずに自動的に修正するようにしてもよい。人手を介して行うようにすれば本装置のコストを削減することができる。
As described above, if the
蓄積したログ情報のうち、時刻の部分の誤差を修正する時刻情報修正手段14の処理は、この時計修正手段15が内部時計12を正しい時刻に修正する時に開始する。つまり、内部時計12を修正する時に、それまで蓄積されてきたログ情報の時刻情報を修正するようになっている。また、内部時計12を修正するという動作も、親装置の動作ではないが「時刻設定」というイベントとしてログ情報ファイル13に記録される。なお、親装置から送られてくるイベント情報にも親装置の内部時計によるタイムスタンプが入っていてもよい。この場合は、親装置のタイムスタンプは修正せず、このログ情報記録装置が付したタイムスタンプ(時刻情報)のみを修正の対象とする。こうすることにより、親装置の内部時計の誤差も確認でき、運用状態を良好に保つことができ、トレース時の参考にもなる。また、証拠保全の観点から、ログ情報には直接修正を加えず、修正した時刻をオリジナルのログ情報の時刻と対応させて閲覧できるようにするのがよい。
Of the accumulated log information, the processing of the time
誤差判定手段16は、時計修正手段15が内部時計12を正しい時刻に修正する際、誤差の程度(内部時計12の示す時刻と正しい時刻との時間差)から、内部時計12を次に修正すべき日時を決定する。誤差判定手段16が決定した内部時計12を修正すべき日時は、通知手段17より本装置の管理者に電子メールで通知される。なお、内部時計12を自動的に修正するようにした場合は、修正フラグと修正日時をセットする。
When the
修正フラグと修正日時がセットされると、セットされた修正日時にタイマ割込みがかかり、自動的に時計修正手段15が起動して、内部時計12を修正して、それに続いて時刻情報修正手段14が起動して、ログ情報の時刻の部分を修正する。さらに誤差判定手段16が、修正フラグと次に内部時計12を修正する修正日時をセットする。以降この動作が繰り返されるようになる。
When the correction flag and the correction date and time are set, a timer interrupt is generated at the set correction date and time, the clock correction means 15 is automatically activated, the
内部時計12を修正すべき日時の決定方法としては、1つは、事前に内部時計の誤差仕様から計算する方法である。たとえば月差最大5秒で、ログ情報としての許容誤差範囲が10秒であれば、2ヶ月ごとに内部時計12を修正すればよいことになる。
One method for determining the date and time when the
もう1つは、直前の誤差からダイナミックに判断する方法である。たとえば仕様は月差最大5秒で、ログ情報としての許容誤差範囲が10秒であったとしても、管理者が1ヶ月に1回変更した際2.5秒の差であれば、4ヵ月後に内部時計12を修正すればよいことになる。ただし、人手を介して修正する場合は、常に同様の状態が継続するとは限らないので、1つ目の方法で求めた2ヶ月後になる前には、管理者に内部時計12の誤差を確認するメールを出すのがよい。
The other is a method of dynamically determining from the previous error. For example, if the specification is a maximum of 5 seconds per month and the allowable error range for log information is 10 seconds, if the administrator changes it once a month, the difference is 2.5 seconds, then 4 months later The
自動で内部時計12を修正できる構成になっている場合は、上の方法によらず、所定の時間間隔で修正するようにすればよい。
If the
図2は、本実施形態にかかるログ情報記録装置の要部ハードウエア構成を示すブロック図である。本ログ情報記録装置は、CPU21が、ROM25に格納されているプログラムを、RAM24を作業領域に用いて実行することにより、図1で説明した種々の機能を実現している。
FIG. 2 is a block diagram showing a hardware configuration of a main part of the log information recording apparatus according to the present embodiment. In the log information recording apparatus, the
外部記憶装置27は、例えばハードディスク装置を用いた記憶装置で、図1に示したログ情報ファイル13を格納することができる。プログラムをROM25に格納する替りに、外部記憶装置27に格納して、RAM24を用いてプログラムを実行することもできる。
The
通信I/F28は、イベント情報の取り込みやログ情報の出力、更に電子メールの送信のためのインタフェースで、無線のIEEEE802.11や有線のIEEEE1284、IEEE802.3等を使用してもよい。
The communication I /
内部時計12は、本装置停止時でも現在の年月日、時分秒を更新する。内部時計12の精度が十分でないときは、他のインターバルタイマ(図示せず)等を併用して、ミリ秒程度の精度で現時刻を提供するようにしてもよい。
The
表示装置22および入力部23は、本装置と利用者とのコミュニケーション手段を提供するもので、内部時計の表示や手作業による内部時計の時刻設定の際に用いる。液晶ディスプレイやキーボード、マウス等で構成してもよい。
The display device 22 and the
電波時計29は、内部時計12を自動修正するためのデバイスである。既に商品化されており、容易に電子回路に組み込むことができる。この電波時計29は、わが国の利用地域に応じた40KHz、あるいは60KHzの標準電波を受信して、1分間に1回送られてくる標準時刻のタイムコードから現在時刻(年月日時分)を取り出し、CPU21に供給するものである。タイムコードの時刻は正確ではあるが、タイムコードは1秒間隔のパルス信号から構成されるため、頻繁に時刻を読み出す使い方には向かず、他の時計の校正用に使われることが多い。本実施形態でも、電波時計29は内部時計12を正しい時刻に校正するのに用いている。
The
次に、本実施形態における時刻情報修正手段14が実施する時刻情報の修正方法を説明する。 Next, a time information correction method performed by the time information correction means 14 in the present embodiment will be described.
図3は、イベント情報に基づいて作成された修正前のログ情報の例である。電子機器あるいは本実施形態のログ情報記録装置の管理者が2006年8月1日と8月6日の午前0時に時刻を合わせた場合の例である。ここでは時刻合わせの記録も同じログファイル内に記録されている。 FIG. 3 is an example of log information before correction created based on event information. This is an example in which the administrator of the electronic device or the log information recording apparatus of the present embodiment sets the time at midnight on August 1 and August 6, 2006. Here, the time adjustment record is also recorded in the same log file.
図4は、図3に示したログ情報の修正後のログ情報である。8月1日には誤差がなかったものが、8月6日には5秒遅れていたことが判っている。これは、内部時計を正しい標準時刻に合わせたときに(内部時計は8月5日23時59分55秒だったことで)判明した差である。時刻情報の修正は次のような計算式で行う。 FIG. 4 shows log information after the log information shown in FIG. 3 is corrected. It was found that there was no error on August 1, but it was 5 seconds behind on August 6. This is the difference that was found when the internal clock was set to the correct standard time (the internal clock was 23:59:55 on August 5). The time information is corrected by the following formula.
正しい時刻(未知数)=修正前の時刻+修正前の前回の時刻合せからの経過日数*1日あたりの誤差(1秒)
従って、8月2日0時の場合は、
正しい時刻(未知数)=8月2日0時+1日*1秒=8月2日0時0分1秒
となる。
Correct time (unknown number) = time before correction + number of days elapsed since last time adjustment before correction * error per day (1 second)
Therefore, in the case of 0:00 on August 2,
The correct time (unknown number) = August 2, 0: 00 + 1 day * 1 second = August 2, 0: 0: 01.
以上の例では、説明を容易にするため、誤差の単位を1日にして、経過日数も1日単位にしたが、単位を秒で計算することは勿論可能である。 In the above example, for ease of explanation, the unit of error is one day and the number of elapsed days is also one day, but it is of course possible to calculate the unit in seconds.
次に、図を参照して、本実施形態のログ情報記録装置の動作を説明する。なお、この動作は、ログ情報記録装置を電子機器に組み込んだ場合でも同様である。 Next, the operation of the log information recording apparatus of this embodiment will be described with reference to the drawings. This operation is the same even when the log information recording apparatus is incorporated in an electronic device.
図5(a)は、本発明のログ情報処理にかかる動作を示すフローチャートである。 FIG. 5A is a flowchart showing an operation related to log information processing according to the present invention.
内部時計12の時刻修正が手動、あるいは自動で開始されると、誤差判定手段16は、内部時計12の現在時刻と正しい時刻との時間差を計算して、時計修正手段15は内部時計を正しい時刻にセットする(ステップ101)。
When the time correction of the
次に時刻情報修正手段14は、ログ情報ファイル13に蓄積されているログ情報の時刻情報を修正するため、前回内部時計12を修正したログ情報を探し、ポインタをその次の行に移動する(ステップ102)。そして、ポインタが示すログ情報中の時刻情報を前に述べた方法で修正し(ステップ103)、次の行へポインタを進める(ステップ104)。次の行にログ情報があればステップ103、ステップ104を行ない、ログ情報がなくなるまで(ステップ105/NO)繰り返す。
Next, the time information correction means 14 searches for the log information in which the
ログ情報がなくなったら(ステップ105/NO)、内部時計修正記録をログ情報としてログ情報ファイル13に書込む(ステップ106)。そして、次に内部時計12を修正すべき時期に間に合うように、メール送信日時をセットし、送信フラグをリセットする(ステップ107)。
When there is no log information (step 105 / NO), the internal clock correction record is written in the
なお、図示していないが、内部時計12を自動で修正する構成になっている場合は、メール送信時刻ではなく、図1の説明の時に述べたように、修正フラグと次に内部時計12を修正する修正日時をセットする。
Although not shown in the figure, when the
図5(b)は、通知手段17の処理の流れを示すフローチャートである。この手段は、誤差判定手段16がセットした内部時計の修正を促すメールの送信時期が到来した時にタイマ割込み等によって起動する。 FIG. 5B is a flowchart showing a processing flow of the notification means 17. This means is activated by a timer interrupt or the like when the time for sending a mail for urging correction of the internal clock set by the error judgment means 16 has come.
まず、時計修正催促メールを送信する(ステップ111)。メールの宛先は登録してあるログ記録装置または電子機器の管理者で、内容は内部時計を修正すべき日時(あるいは日限)である。次に督促メールを送信する送信日時と送信フラグをセットする(ステップ112)。これは、このメールの送信後、時計の修正がなされるまで、督促メールが送信されるようにするためで、送信日時は翌日でよい。 First, a clock correction prompting mail is transmitted (step 111). The mail address is the administrator of the registered log recording device or electronic device, and the content is the date and time (or date limit) when the internal clock should be corrected. Next, a transmission date and a transmission flag for transmitting the reminder mail are set (step 112). This is because the dunning mail is transmitted after the transmission of the mail until the clock is corrected, and the transmission date may be the next day.
以上説明したように、内部時計に誤差が蓄積しないように、手動あるいは自動で内部時計の修正を行う手段を設け、この時、それまで蓄積したログ情報中の時刻情報を、誤差の少ない方法で修正するので、ログ情報が高い精度で維持される。また、ログ情報を修正したいときに内部時計を修正すれば同時にログ情報も修正され好都合である。 As described above, there is provided a means for correcting the internal clock manually or automatically so that the error does not accumulate in the internal clock. At this time, the time information in the log information accumulated up to that time can be reduced by a method with less error. Because it corrects, log information is maintained with high accuracy. If the internal clock is corrected when it is desired to correct the log information, the log information is also corrected at the same time.
なお、上述する実施形態は、本発明の好適な実施形態であり、上記実施形態のみに本発明の範囲を限定するものではなく、本発明の要旨を逸脱しない範囲において種々の変更を施した形態での実施が可能である。 The above-described embodiment is a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiment alone, and various modifications are made without departing from the gist of the present invention. Implementation is possible.
すなわち、上記した実施形態のログ情報記録装置は、プログラムの命令によりコンピュータで実行される処理、手段、機能によって動作する。当該プログラムは、コンピュータの各構成要素に指令を送り、先に述べたような所定の処理や機能、例えば、誤差判定手段16により、内部時計12の現在時刻と正しい時刻との時間差を計算し、時計修正手段15により、内部時計を正しい時計にセットし、時刻情報修正手段14により、ログ情報ファイル13に蓄積されているログ情報の時刻情報を修正してその修正記録をログ情報としてログ情報ファイル13に書込む処理を行う。このように、上記実施形態のログ情報記録装置における各処理や手段は、プログラムとコンピュータとが協働した具体的手段によって実現されるものである。
That is, the log information recording apparatus of the above-described embodiment operates by processing, means, and functions executed by a computer according to program instructions. The program sends a command to each component of the computer, calculates the time difference between the current time of the
そして、上記実施形態の機能を実現するソフトウエアのプログラムコードを記録したコンピュータ読み取り可能な記録媒体、すなわち記憶メディアを介して、ログ情報記録装置のコンピュータ(CPU)が記憶メディアに格納されたプログラムコードを読み出し実行することによっても、本発明の目的は達成される。 Then, the program code stored in the storage medium by the computer (CPU) of the log information recording apparatus via the computer-readable recording medium that records the program code of the software that realizes the function of the above-described embodiment, that is, the storage medium The object of the present invention can also be achieved by reading and executing.
また、プログラムは、記録メディアを介さず、通信回線を通じて直接にコンピュータにロードし実行することもでき、これによっても同様に本発明の目的は達成される。この場合、記憶メディアから読み出された又は通信回線を通じてロードし実行されたプログラムコード自体が前述の実施形態の機能を実現することになる。 Further, the program can be loaded and executed directly on a computer through a communication line without going through a recording medium, and the object of the present invention can be achieved similarly. In this case, the program code itself read from the storage medium or loaded and executed through the communication line realizes the functions of the above-described embodiment.
そして、そのプログラムコードを記憶した記憶メディアは本発明を構成する。プログラムコードを供給するための記憶メディアとしては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、不揮発性のメモリカード、ROM、磁気テープ等を用いることができる。 And the storage medium which memorize | stored the program code comprises this invention. As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, nonvolatile memory card, ROM, magnetic tape, or the like is used. be able to.
また、先に述べてきたログ情報記録装置を搭載した電子機器によっても、本発明は実効的に実施される。 The present invention is also effectively implemented by an electronic device equipped with the log information recording apparatus described above.
11 ログ情報書込み手段
12 内部時計
13 ログ情報ファイル
14 時刻情報修正手段
15 時計修正手段
16 誤差判定手段
17 通知手段
21 CPU
22 表示装置
23 入力部
24 RAM
25 ROM
27 外部記憶装置
28 通信I/F
29 電波時計
11 Log information writing means 12
22
25 ROM
27
29 radio clock
Claims (17)
前記内部時計を現在の標準時刻に修正する時計修正手段と、
前記内部時計を修正する際に内部時計と標準時刻との時間差を求める誤差判定手段と、
前記求められた時間差と、前回の時計修正から今回の時計修正までの経過時間とから、前記ログ情報中の時刻情報の誤差を修正する時刻情報修正手段と、
を備えたことを特徴とするログ情報記録装置。 In a log information recording device that records operation information of a device and time information that is a time indicated by an internal clock when the operation of the device occurs as log information in the recording device,
Clock correction means for correcting the internal clock to the current standard time;
Error determining means for obtaining a time difference between the internal clock and the standard time when correcting the internal clock;
Time information correction means for correcting an error in time information in the log information from the obtained time difference and an elapsed time from the previous clock correction to the current clock correction;
A log information recording apparatus comprising:
前記誤差判定手段は、次に前記内部時計を修正すべき時期を決定し、前記通知手段が前記内部時計の修正を促すメールを送信する日時を指定することを特徴とする請求項1から3のいずれか1項に記載のログ情報記録装置。 Provide a notification means to send mail at the specified date and time,
The error determination means determines a time when the internal clock should be corrected next, and designates a date and time when the notification means transmits a mail prompting correction of the internal clock. The log information recording device according to any one of claims.
前記内部時計を現在の標準時刻に修正する時計修正手段と、
前記内部時計を修正する際に内部時計と標準時刻との時間差を求める誤差判定手段と、
前記求められた時間差と、前回の時計修正から今回の時計修正までの経過時間とから、前記ログ情報中の時刻情報の誤差を修正する時刻情報修正手段と、
を備えたことを特徴とする電子機器。 In an electronic apparatus having log information recording means for recording operation information and time information that is a time indicated by an internal clock when an operation occurs as log information in a recording device,
Clock correction means for correcting the internal clock to the current standard time;
Error determining means for obtaining a time difference between the internal clock and the standard time when correcting the internal clock;
Time information correction means for correcting an error in time information in the log information from the obtained time difference and an elapsed time from the previous clock correction to the current clock correction;
An electronic device characterized by comprising:
前記誤差判定手段は、次に前記内部時計を修正すべき時期を決定し、前記通知手段が前記内部時計の修正を促すメールを送信する日時を指定することを特徴とする請求項6から8のいずれか1項に記載の電子機器。 Provide a notification means to send mail at the specified date and time,
9. The error determination unit determines a time when the internal clock should be corrected next, and designates a date and time when the notification unit transmits an email prompting the correction of the internal clock. The electronic device according to any one of the above.
時計修正手段が前記内部時計を現在の標準時刻に修正する時計修正ステップと、
前記内部時計を修正する際に、誤差判定手段が前記内部時計と前記標準時刻との時間差を求める誤差判定ステップと、
前記求められた時間差と、前回の時計修正から今回の時計修正までの経過時間とから、時刻情報修正手段が前記時刻情報の誤差を修正する時刻情報修正ステップと、
を備えたことを特徴とするログ情報記録方法。 In a log information recording method for recording operation information of a device and time information that is a time indicated by an internal clock when the operation of the device occurs as log information,
A clock correction step in which the clock correction means corrects the internal clock to the current standard time;
When correcting the internal clock, an error determination step in which an error determination means obtains a time difference between the internal clock and the standard time;
A time information correction step in which a time information correction means corrects an error in the time information from the obtained time difference and an elapsed time from the previous clock correction to the current clock correction;
A log information recording method comprising:
前記ログ情報記録装置に、
前記内部時計を現在の標準時刻に修正する時計修正機能と、
前記内部時計を修正する際に前記内部時計と前記標準時刻との時間差を求める誤差判定機能と、
前記求められた時間差と、前回の時計修正から今回の時計修正までの経過時間とから、前記ログ情報中の時刻情報の誤差を修正する時刻情報修正機能と、
を実現させることを特徴とするログ情報記録プログラム。 A log information recording program that causes a log information recording device to record operation information of a device and time information that is a time indicated by an internal clock when the operation of the device occurs;
In the log information recording device,
A clock correction function for correcting the internal clock to the current standard time;
An error determination function for obtaining a time difference between the internal clock and the standard time when correcting the internal clock;
A time information correction function for correcting an error in time information in the log information from the obtained time difference and an elapsed time from the previous clock correction to the current clock correction;
A log information recording program characterized by realizing the above.
前記時計修正機能は、前記ログ情報記録装置に、前記入力手段で入力された標準時刻に修正させることを特徴とする請求項14または15記載のログ情報記録プログラム。 The log information recording device includes input means for inputting the standard time,
16. The log information recording program according to claim 14, wherein the clock correction function causes the log information recording device to correct the standard time input by the input unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007106294A JP2008262500A (en) | 2007-04-13 | 2007-04-13 | Log information recording device, electronic equipment, log information recording method, log information recording program, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007106294A JP2008262500A (en) | 2007-04-13 | 2007-04-13 | Log information recording device, electronic equipment, log information recording method, log information recording program, and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008262500A true JP2008262500A (en) | 2008-10-30 |
Family
ID=39984909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007106294A Pending JP2008262500A (en) | 2007-04-13 | 2007-04-13 | Log information recording device, electronic equipment, log information recording method, log information recording program, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008262500A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019175263A (en) * | 2018-03-29 | 2019-10-10 | サイレックス・テクノロジー株式会社 | Log recording device, control method, and program |
CN112804565A (en) * | 2019-11-14 | 2021-05-14 | 上海哔哩哔哩科技有限公司 | Interactive video playing method, device, system, computer equipment and storage medium |
-
2007
- 2007-04-13 JP JP2007106294A patent/JP2008262500A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019175263A (en) * | 2018-03-29 | 2019-10-10 | サイレックス・テクノロジー株式会社 | Log recording device, control method, and program |
CN112804565A (en) * | 2019-11-14 | 2021-05-14 | 上海哔哩哔哩科技有限公司 | Interactive video playing method, device, system, computer equipment and storage medium |
CN112804565B (en) * | 2019-11-14 | 2023-08-11 | 上海哔哩哔哩科技有限公司 | Interactive video playing method, device, system, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7257393B2 (en) | Method and apparatus for time calibration | |
JP4860505B2 (en) | Information processing apparatus, clock correction processing method, clock correction processing program, and program recording medium | |
JP2004271512A (en) | Electronic device, information processor, image forming device, control method of electronic equipment, control method, display control method and operation method of information processing, and program | |
EP3051456A1 (en) | Authentication device, maintenance support system, and service providing method | |
JP4491741B2 (en) | Network terminal device, time stamp adjustment method thereof, and time stamp adjustment program | |
US8141116B2 (en) | Time management apparatus and time management method | |
JP2008164524A (en) | Electronic equipment | |
JP2004199410A (en) | History recording device and its method | |
JP2008262500A (en) | Log information recording device, electronic equipment, log information recording method, log information recording program, and computer-readable storage medium | |
CN114172609B (en) | Data transmission method, device, equipment and medium | |
US20180253062A1 (en) | Clocking device, image forming apparatus, and time point correction method | |
EP1712960A2 (en) | Electronic device, time correction method and time correction program | |
US7392327B2 (en) | Information processing apparatus capable of accurately setting present time, and information processing method for the information processing apparatus, and program for implementing the method | |
JP2003207586A (en) | Electronic device and its internal time information control method | |
JP2011214937A (en) | Program and apparatus | |
JP2009146356A (en) | Information processor | |
JP4452168B2 (en) | Audio broadcasting apparatus and history data processing method thereof | |
JPH11298517A (en) | Electronic mail client device and storage medium with its program recorded therein | |
US7701805B2 (en) | Time correction apparatus and image forming device having the time correction apparatus | |
JP2020170353A (en) | Information processing device, control method of information processing device, and program | |
JP2008278092A (en) | Electronic equipment | |
JP2005212190A (en) | Printer device | |
CN219107454U (en) | Timing system | |
JP2003307977A (en) | Copying machine | |
JP2004152120A (en) | Computer system having exact time function |