JP2008203942A - Log management device, log management method, program, and recording medium - Google Patents

Log management device, log management method, program, and recording medium Download PDF

Info

Publication number
JP2008203942A
JP2008203942A JP2007036234A JP2007036234A JP2008203942A JP 2008203942 A JP2008203942 A JP 2008203942A JP 2007036234 A JP2007036234 A JP 2007036234A JP 2007036234 A JP2007036234 A JP 2007036234A JP 2008203942 A JP2008203942 A JP 2008203942A
Authority
JP
Japan
Prior art keywords
log
collection
registration
collected
server
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
Application number
JP2007036234A
Other languages
Japanese (ja)
Inventor
Tatsutoshi Murata
龍俊 村田
Mitsuhiro Matsuda
充弘 松田
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.)
Nomura Research Institute Ltd
Original Assignee
Nomura Research Institute 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 Nomura Research Institute Ltd filed Critical Nomura Research Institute Ltd
Priority to JP2007036234A priority Critical patent/JP2008203942A/en
Publication of JP2008203942A publication Critical patent/JP2008203942A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a log management device reducing communication load and processing load and efficiently collecting logs. <P>SOLUTION: A log storage server 13 retrieves log collection history information in response to inquiries about logs to be collected from log registration servers 11-1, 11-2, etc. When there is no record satisfying that a processing state 51 is "success" (No in step 2002) and there is no record satisfying that an elapsed time 55 is a predetermined time (Y) or longer (No in step 2006), the log registration servers 11-1, 11-2, etc having made inquiries are instructed to wait for a predetermined time (Z) (step 2009). The log registration servers 11-1, 11-2, etc. stop inquiries about log collection, and resume log collection inquiry after the lapse of the predetermined time (Z). Useless communication is reduced to reduce communication load and processing load by suspending the log registration servers 11-1, 11-2, etc.. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、ネットワーク上でサービス提供を受ける顧客のアクセス経過等が記録されたログを、収集、蓄積、参照する技術に関する。   The present invention relates to a technique for collecting, storing, and referring to a log in which an access history or the like of a customer receiving service provision on a network is recorded.

従来、ネットワークを介してサービス提供を行うウェブサーバでは、ウェブ上での取引結果や画面推移処理や情報参照などに関するログを保存している。ログを保存しておくことにより、顧客からの取引に関する問い合わせへの対応、ウェブサーバの動作確認、不正アクセス監視によるセキュリティの向上を図ることができる。   2. Description of the Related Art Conventionally, a web server that provides a service via a network stores logs related to transaction results on the web, screen transition processing, information reference, and the like. By saving the log, it is possible to improve security by responding to inquiries regarding transactions from customers, checking the operation of the web server, and monitoring unauthorized access.

各々のウェブサーバで発生するログを集中管理するために、複数のウェブサーバを巡回してログを収集し、保存するジャーナル管理サーバがある(例えば、[特許文献1]参照。)。
しかしながら、ウェブサーバの数が増加するとともに、[特許文献1]によるジャーナル管理サーバは当該ウェブサーバを巡回するための処理負荷が増大するという問題点が生じる。
In order to centrally manage logs generated in each web server, there is a journal management server that circulates a plurality of web servers to collect and store logs (see, for example, [Patent Document 1]).
However, as the number of web servers increases, the journal management server according to [Patent Document 1] has a problem that the processing load for circulating the web servers increases.

そこで、ジャーナル管理サーバの巡回処理の負荷を軽減するために、各々のウェブサーバが、発生したログを能動的にログ収集サーバ(ジャーナル管理サーバと同義)へ送信するログデータ収集管理システムが考案されている(例えば、[特許文献2]参照。)。   Therefore, in order to reduce the load of the cyclic processing of the journal management server, a log data collection management system has been devised in which each web server actively transmits the generated log to the log collection server (synonymous with the journal management server). (For example, refer to [Patent Document 2].)

特開2002−041456号公報JP 2002-041456 A 特開2004−295303号公報JP 2004-295303 A

しかしながら、[特許文献1]によるジャーナル管理サーバは、ウェブサーバの数が増加すると、巡回してログ収集する処理負荷が増大するだけではなく、同一のウェブサーバに対して次のログ収集までのタイムラグが増大するという問題点がある。
また、ジャーナル管理サーバは、ウェブサーバのログを一括収集して管理するので、当該ジャーナル管理サーバに障害が生じた場合のシステムの安定性及びデータの安全性に問題がある。
However, in the journal management server according to [Patent Document 1], when the number of web servers increases, not only does the processing load for circular log collection increase, but also the time lag until the next log collection for the same web server. There is a problem that increases.
Further, since the journal management server collects and manages the logs of the web server, there is a problem in system stability and data safety when a failure occurs in the journal management server.

また、[特許文献2]によるログデータ収集管理システムでは、ウェブサーバは発生するログをログ収集サーバに送信するだけでなく、顧客に対応する処理も行うため、ウェブサーバには瞬間的に大きな処理負荷が生じる場合がある。   In the log data collection and management system according to [Patent Document 2], the web server not only transmits the generated log to the log collection server but also performs processing corresponding to the customer. There may be a load.

また、ウェブサーバが発生するログのフォーマット等をログ収集サーバに適合する形式に変換した後、当該ログ収集サーバに送信する場合、さらにウェブサーバの処理負荷が増大するという問題点がある。   In addition, when the log format generated by the web server is converted into a format suitable for the log collection server and then transmitted to the log collection server, there is a problem that the processing load on the web server further increases.

また、[特許文献1]によるジャーナル管理サーバでは、ログ収集は継続的に実行され、事実上ウェブサーバにログが発生していなくてもログ収集機能が無駄に動作して通信負荷(トラフィック)が増大するという問題点があった。   Further, in the journal management server according to [Patent Document 1], log collection is continuously executed, and even if no log is actually generated in the web server, the log collection function operates wastefully and communication load (traffic) is reduced. There was a problem of increasing.

また、[特許文献2]によるログデータ収集管理システムでは、ウェブサーバごとのログ送信を行うタイミングを調整し、ログ収集サーバへのログ集中を回避して効率的なシステム構築を行う必要があった。   Further, in the log data collection and management system according to [Patent Document 2], it is necessary to adjust the timing of log transmission for each web server and to avoid the concentration of logs on the log collection server and to construct an efficient system. .

本発明は、以上の問題点に鑑みてなされたものであり、通信負荷と処理負荷を軽減すると共に効率的にログ収集を行うことのできるログ管理装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a log management apparatus that can reduce communication load and processing load and can efficiently collect logs.

前述した目的を達成するために第1の発明は、ログを出力する少なくとも1つのログ出力装置に接続され、前記ログ出力装置が出力するログを収集する少なくとも1つのログ登録装置と、前記ログ登録装置が収集したログを格納するログ格納装置と、を備えるログ管理装置であって、前記ログ登録装置は、前記ログ格納装置に対して、収集すべきログを特定するためのログ収集指示情報を問い合わせるログ収集問い合わせ手段と、前記ログ格納装置から送られるログ収集指示情報に基づいて、前記ログ出力装置からログを収集するログ収集手段と、前記収集されたログを加工するログ加工手段と、前記加工されたログを前記ログ格納装置に送るログ送信手段と、を具備し、前記ログ格納装置は、前記ログの収集履歴に関するログ収集履歴情報を保持する保持手段と、前記ログ登録装置から前記ログ収集指示情報の問い合わせを受けると、前記ログ収集履歴情報に基づいて、前記ログ収集指示情報を返すログ収集指示手段と、前記ログ登録装置から送られるログを前記保持手段に格納するログ受信手段と、を具備し、前記ログ収集指示手段は、収集すべきログが存在する可能性が低い前記ログ登録装置に対して、前記ログの収集に代えて所定時間(Z)の待機を指示することを特徴とするログ管理装置である。   In order to achieve the above-described object, the first invention relates to at least one log registration device connected to at least one log output device for outputting a log and collecting logs output from the log output device, and the log registration. A log storage device that stores logs collected by the device, wherein the log registration device provides log collection instruction information for identifying logs to be collected to the log storage device. Log collection inquiry means for inquiring, log collection means for collecting logs from the log output device based on log collection instruction information sent from the log storage device, log processing means for processing the collected logs, Log transmission means for sending the processed log to the log storage device, the log storage device including log collection history information relating to the log collection history When receiving an inquiry about the log collection instruction information from the log registration apparatus, the log collection instruction means for returning the log collection instruction information based on the log collection history information, and the log registration apparatus Log receiving means for storing the log to be stored in the holding means, wherein the log collection instructing means replaces the log registration device with a low possibility of having a log to be collected instead of collecting the log. The log management apparatus is characterized by instructing standby for a predetermined time (Z).

ログ出力装置は、ネットワークを介してユーザにサービス提供を行うウェブサーバ等の装置である。ログ出力装置は、ユーザとの取引結果や画面推移処理や情報参照などに関するログを蓄積し、ログ登録装置からの要求に応じて出力する。
ネットワークは、インターネット、イントラネット等である。
ウェブサーバの提供するサービスとは、例えば注文や残高照会等の業務サービス、取引参照データや株価チャート提供等の情報提供サービス等である。
ログ収集指示情報は、収集先のログ出力装置、ログ種別およびログファイル名(またはファイル内の位置やポインタ)であり、収集すべきログを特定する情報である。
ログ登録装置の待機とは、所定時間(Z)の待機が終了するまで、ログ格納装置へのログ収集指示情報の問い合わせを停止することである。
The log output device is a device such as a web server that provides a service to a user via a network. The log output device accumulates logs relating to transaction results with users, screen transition processing, information reference, and the like, and outputs the logs in response to requests from the log registration device.
The network is the Internet, an intranet, or the like.
The services provided by the web server are, for example, business services such as ordering and balance inquiry, information providing services such as transaction reference data and stock price charts.
The log collection instruction information includes a collection destination log output device, a log type, and a log file name (or a position and a pointer in the file), and is information for identifying a log to be collected.
The standby of the log registration device is to stop the inquiry of the log collection instruction information to the log storage device until the standby for the predetermined time (Z) is completed.

ログ登録装置を、複数のログ登録装置によって構成し、それぞれのログ登録装置が独立に動作するスケールアウト構成としてもよい。各ログ登録装置の処理性能は、統一されなくてもよい。   The log registration device may be configured by a plurality of log registration devices, and each log registration device may operate independently. The processing performance of each log registration device may not be unified.

第1の発明のログ管理装置は、ログ出力装置が出力するログを収集するログ登録装置と、当該ログ登録装置が収集するログを格納するログ格納装置とを備える。ログ登録装置は、ログ格納装置が保持するログ収集履歴情報に基づいてログ出力装置からログを収集し加工して、ログ格納装置に送信する。ログ格納装置は、ログ登録装置から送られるログを格納する。ログ格納装置は、収集すべきログが存在する可能性が低い場合にログ登録装置に所定時間(Z)の待機を指示する。   A log management device according to a first aspect includes a log registration device that collects logs output by a log output device, and a log storage device that stores logs collected by the log registration device. The log registration device collects and processes logs from the log output device based on the log collection history information held by the log storage device, and transmits the log to the log storage device. The log storage device stores a log sent from the log registration device. The log storage device instructs the log registration device to wait for a predetermined time (Z) when there is a low possibility that there is a log to be collected.

第1の発明では、ログ格納装置が、収集すべきログが存在する可能性が低い場合に、問い合わせのあったログ登録装置に所定時間(Z)の待機指示を行うので、ログ登録装置の無駄な通信動作による通信負荷の増大を抑えると共に、ログ登録装置の問い合わせ処理等の処理負荷を軽減するので、効率的なログ収集を行うことができる。   In the first invention, when the log storage device is unlikely to have a log to be collected, the log storage device issues a standby instruction for a predetermined time (Z) to the inquired log registration device. In addition to suppressing an increase in communication load due to an unsatisfactory communication operation and reducing a processing load such as an inquiry process of the log registration device, efficient log collection can be performed.

また、ログ収集履歴情報は、ログ出力装置毎及びログ種別毎に前回収集されたログに関する情報を含んでもよい。ログ収集指示手段は、ログ収集指示情報として前回収集されたログに関する情報をログ登録装置に送り、ログ登録装置のログ収集手段は、前回収集されたログに関する情報に基づいて収集すべきログを特定するようにしてもよい。
前回収集されたログに関する情報は、前回収集したログファイル名、あるいは前回収集したファイル内の位置やポインタなど、ログをどこまでとりこんだかを示す情報を含む。
また、ログ収集問い合わせ手段は、所定時間(Z)の待機が終了するまで、ログ収集指示情報の問い合わせを行わないようにしてもよい。
Further, the log collection history information may include information related to the log collected last time for each log output device and each log type. The log collection instruction means sends information about the previously collected log as log collection instruction information to the log registration device, and the log collection means of the log registration device identifies the log to be collected based on the information about the previously collected log You may make it do.
The information about the log collected last time includes information indicating how far the log has been captured, such as the name of the log file collected last time or the position and pointer in the file collected last time.
Further, the log collection inquiry means may not make an inquiry about the log collection instruction information until waiting for a predetermined time (Z) ends.

ログ収集履歴情報は、ログ出力装置毎及びログ種別毎に前回アクセス時におけるログ収集の成否に関する情報を含んでもよい。ログ収集指示手段は、前回アクセス時にログ収集を成功したログ出力装置及びログ種別が存在せず、さらに、前回アクセス時にログ収集を失敗し、かつ、前回アクセス時からの経過時間が所定時間(Y)以上のログ出力装置及びログ種別が存在しない場合、収集すべきログが存在する可能性が低いものとして、ログ登録装置に対して所定時間(Z)の待機を指示するようにしてもよい。
また、所定時間(Z)は所定時間(Y)より大きいことが望ましい。これにより、待機指示の繰り返しを軽減させることができる。
The log collection history information may include information on the success or failure of log collection at the previous access for each log output device and each log type. The log collection instructing unit does not have a log output device and a log type that have succeeded in log collection at the previous access, and further fails to collect the log at the previous access, and the elapsed time from the previous access is a predetermined time (Y ) If the above log output device and log type do not exist, the log registration device may be instructed to wait for a predetermined time (Z) on the assumption that there is a low possibility that there is a log to be collected.
Further, it is desirable that the predetermined time (Z) is longer than the predetermined time (Y). Thereby, the repetition of the standby instruction can be reduced.

第2の発明は、ログを出力する少なくとも1つのログ出力装置に接続され、前記ログ出力装置が出力するログを収集する少なくとも1つのログ登録装置と、前記ログ登録装置が収集したログを格納するログ格納装置と、を備えるログ管理装置によるログ管理方法であって、前記ログ登録装置が実行する、前記ログ格納装置に対して、収集すべきログを特定するためのログ収集指示情報を問い合わせるログ収集問い合わせステップと、前記ログ格納装置から送られるログ収集指示情報に基づいて、前記ログ出力装置からログを収集するログ収集ステップと、前記収集されたログを加工するログ加工ステップと、前記加工されたログを前記ログ格納装置に送るログ送信ステップと、を具備し、前記ログ格納装置が実行する、前記ログの収集履歴に関するログ収集履歴情報を保持する保持ステップと、前記ログ登録装置から前記ログ収集指示情報の問い合わせを受けると、前記ログ収集履歴情報に基づいて、前記ログ収集指示情報を返すログ収集指示ステップと、前記ログ登録装置から送られるログを前記保持ステップに格納するログ受信ステップと、を具備し、前記ログ収集指示ステップは、収集すべきログが存在する可能性が低い前記ログ登録装置に対して、前記ログの収集に代えて所定時間(Z)の待機を指示することを特徴とするログ管理方法である。   The second invention is connected to at least one log output device that outputs a log, stores at least one log registration device that collects the log output by the log output device, and stores the log collected by the log registration device A log management method by a log management device comprising a log storage device, the log being executed by the log registration device and inquiring log collection instruction information for identifying a log to be collected to the log storage device A collection inquiry step; a log collection step for collecting logs from the log output device based on log collection instruction information sent from the log storage device; a log processing step for processing the collected logs; A log transmission step for sending the received log to the log storage device, and the log collection history executed by the log storage device Holding the log collection history information, and when receiving an inquiry about the log collection instruction information from the log registration device, a log collection instruction step for returning the log collection instruction information based on the log collection history information; A log receiving step of storing the log sent from the log registration device in the holding step, and the log collection instruction step is performed for the log registration device that is unlikely to have a log to be collected. The log management method is characterized by instructing standby for a predetermined time (Z) instead of collecting the log.

第2の発明は、第1の発明のログ管理装置のログ管理方法に関する発明である。   The second invention relates to a log management method of the log management device of the first invention.

第3の発明は、コンピュータを、第1の発明のログ管理装置として機能させるプログラムである。
第4の発明は、コンピュータを、第1の発明のログ管理装置として機能させるプログラムを記録したコンピュータ読み取り可能な記録媒体である。
A third invention is a program for causing a computer to function as the log management apparatus of the first invention.
A fourth invention is a computer-readable recording medium on which a program for causing a computer to function as the log management device of the first invention is recorded.

尚、上記のプログラムをCD−ROM等の記録媒体に保持させて流通させてもよいし、このプログラムを通信回線を介して送受することもできる。   Note that the above program may be distributed by being held on a recording medium such as a CD-ROM, or the program can be transmitted and received via a communication line.

本発明によれば、通信負荷と処理負荷を軽減すると共に効率的にログ収集を行うことのできるログ管理装置を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the log management apparatus which can perform log collection efficiently while reducing communication load and processing load can be provided.

以下、添付図面を参照しながら、本発明に係るログ管理装置9の好適な実施形態について詳細に説明する。ログ管理装置9は、ログ収集管理システム1を構成する装置の1つである。なお、以下の説明及び添付図面において、略同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略することにする。   Hereinafter, a preferred embodiment of a log management apparatus 9 according to the present invention will be described in detail with reference to the accompanying drawings. The log management device 9 is one of the devices that constitute the log collection management system 1. In the following description and the accompanying drawings, the same reference numerals are given to components having substantially the same functional configuration, and redundant description will be omitted.

(1.ログ収集管理システム1の構成)
最初に、図1を参照しながら、ログ収集管理システム1の構成について説明する。
図1は、ログ収集管理システム1の構成図である。
(1. Configuration of log collection management system 1)
First, the configuration of the log collection management system 1 will be described with reference to FIG.
FIG. 1 is a configuration diagram of a log collection management system 1.

ログ収集管理システム1は、端末装置5−1、5−2、…、とウェブサーバ7−1、7−2、…、とがネットワーク3を介して接続され、ウェブサーバ7−1、7−2、…、がログ管理装置9に接続されて構成される。ウェブサーバ7−1、7−2、…、とログ管理装置9とは、イントラネット等で接続される。   In the log collection management system 1, terminal devices 5-1, 5-2,... And web servers 7-1, 7-2,. Are connected to the log management device 9. The web servers 7-1, 7-2,... And the log management device 9 are connected via an intranet or the like.

ログ管理装置9は、ログ登録サーバ11とログ格納サーバ13とデータベース15等から構成される。ログ照会サーバ17はインターネットやイントラネット等のネットワークを介してログ管理装置9のログ格納サーバ13に接続される。   The log management device 9 includes a log registration server 11, a log storage server 13, a database 15, and the like. The log inquiry server 17 is connected to the log storage server 13 of the log management device 9 via a network such as the Internet or an intranet.

(1−1.端末装置5)
端末装置5−1、5−2、…、は、ネットワーク3を介してウェブサーバ7−1、7−2、…、に接続可能なコンピュータ等の装置である。端末装置5−1、5−2、…、は、ウェブサーバ7−1、7−2、…、が提供するサービスを利用し、それぞれのウェブサーバ7−1、7−2、…、にはサービスの取引結果等に関するログが残される。
(1-1. Terminal device 5)
The terminal devices 5-1, 5-2,... Are devices such as computers that can be connected to the web servers 7-1, 7-2,. The terminal devices 5-1, 5-2,... Use the services provided by the web servers 7-1, 7-2,. Logs related to service transaction results remain.

(1−2.ウェブサーバ7−1、7−2、…、)
図2は、ウェブサーバ7−1の構成を示す図である。
ウェブサーバ7−1、7−2、…、は、ネットワーク3を介して端末装置5−1、5−2、…、にサービスを提供し、ログを作成して出力するコンピュータ等の装置である。尚、他のウェブサーバ7−2、7−3、…、もウェブサーバ7−1と同様の構成を採る。
(1-2. Web servers 7-1, 7-2, ...)
FIG. 2 is a diagram illustrating a configuration of the web server 7-1.
The web servers 7-1, 7-2,... Are devices such as computers that provide services to the terminal devices 5-1, 5-2,. . The other web servers 7-2, 7-3,... Adopt the same configuration as the web server 7-1.

ウェブサーバ7−1は、ログ作成手段31とログ出力手段33等を有する。ログ作成手段31は、端末装置5−1、5−2、…、との取引等に関するログを作成して蓄積する。ログ出力手段33は、ログ作成手段31が作成して蓄積したログを、いずれかのログ登録サーバ11−1、11−2、…、に出力する。   The web server 7-1 includes a log creation unit 31, a log output unit 33, and the like. The log creation means 31 creates and accumulates logs related to transactions with the terminal devices 5-1, 5-2,. The log output means 33 outputs the logs created and accumulated by the log creation means 31 to any of the log registration servers 11-1, 11-2,.

(1−3.ログ登録サーバ11)
ログ登録サーバ11は、独立して並列に動作する複数のログ登録サーバ11−1、11−2、…、から構成される。ログ登録サーバ11−1、11−2、…、はそれぞれ異なる性能を有する装置であってもよい。また、ログ登録サーバ11−1、11−2、…、のいずれかに障害が生じたとしても、他のログ登録サーバが補完することができるので、ログ登録サーバ11全体としての機能を損なうことはない。
(1-3. Log registration server 11)
The log registration server 11 includes a plurality of log registration servers 11-1, 11-2,. The log registration servers 11-1, 11-2,... May be devices having different performances. Moreover, even if a failure occurs in any of the log registration servers 11-1, 11-2,..., Other log registration servers can be supplemented, so that the function of the log registration server 11 as a whole is impaired. There is no.

図3は、ログ登録サーバ11−1の構成を示す図である。
ログ登録サーバ11−1は、ログ収集問い合わせ手段23、ログ収集手段25、ログ加工手段27、ログ送信手段29等を有するコンピュータ等の装置である。尚、他のログ登録サーバ11−2、11−3、…、もログ登録サーバ11−1と同様の構成を採る。
FIG. 3 is a diagram showing the configuration of the log registration server 11-1.
The log registration server 11-1 is an apparatus such as a computer having a log collection inquiry unit 23, a log collection unit 25, a log processing unit 27, a log transmission unit 29, and the like. The other log registration servers 11-2, 11-3,... Adopt the same configuration as the log registration server 11-1.

ログ収集問い合わせ手段23は、ログ格納サーバ13に問い合わせて、収集すべきログを特定するためのログ収集指示情報を取得する。   The log collection inquiry means 23 makes an inquiry to the log storage server 13 and acquires log collection instruction information for specifying a log to be collected.

ログ収集手段25は、ログ格納サーバ13から取得したログ収集指示情報に基づいて、指示された収集先のウェブサーバ7−1から指示されたログを収集する。   Based on the log collection instruction information acquired from the log storage server 13, the log collection unit 25 collects the log instructed from the designated collection destination web server 7-1.

ログ加工手段27は、ログ収集手段25が収集するログのフォーマット変更などの加工を行う。各ログ登録サーバ11−1、11−2、…、が、収集するログを予め所定の形式に加工してログ格納サーバ13に送信することで、ログ格納サーバ13の処理負荷を軽減することができる。
ログ送信手段29は、ログ加工手段27によって加工されたログを、ログ格納サーバ13に送信する。
The log processing unit 27 performs processing such as changing the format of the log collected by the log collection unit 25. Each log registration server 11-1, 11-2, ... can reduce the processing load on the log storage server 13 by processing the collected logs into a predetermined format and transmitting them to the log storage server 13. it can.
The log transmission unit 29 transmits the log processed by the log processing unit 27 to the log storage server 13.

(1−4.ログ格納サーバ13)
図4は、ログ格納サーバ13の構成図である。
ログ格納サーバ13は、ログ収集指示手段35、ログ受信手段37、ログ照会出力手段41等を有するコンピュータ等の装置である。
ログ収集指示手段35は、いずれかのログ登録サーバ11−1、11−2、…、からログ収集問い合わせがあると、データベース15のログ管理DB21を検索して、収集すべきログを特定するためのログ収集指示情報を、当該ログ登録サーバ11−1、11−2、…、に返信する。
ログ受信手段37は、ログ登録サーバ11−1、11−2、…、から送信されるログを受信して、データベース15のログ登録DB19に格納する。
ログ照会出力手段41は、ログ照会サーバ17からログに関する照会があると、ログ登録DB19から該当する情報を検索して、当該ログ照会サーバ17に返信する。
(1-4. Log storage server 13)
FIG. 4 is a configuration diagram of the log storage server 13.
The log storage server 13 is a device such as a computer having a log collection instruction unit 35, a log reception unit 37, a log inquiry output unit 41, and the like.
When there is a log collection inquiry from any of the log registration servers 11-1, 11-2,..., The log collection instructing means 35 searches the log management DB 21 of the database 15 and specifies the logs to be collected. Are returned to the log registration servers 11-1, 11-2,...
The log receiving unit 37 receives logs transmitted from the log registration servers 11-1, 11-2,... And stores them in the log registration DB 19 of the database 15.
When there is an inquiry about a log from the log inquiry server 17, the log inquiry output unit 41 searches for corresponding information from the log registration DB 19 and returns it to the log inquiry server 17.

(1−5.ログ照会サーバ17)
ログ照会サーバ17はインターネットやイントラネット等のネットワークを介してログ管理装置9のログ格納サーバ13に接続されるコンピュータ等の装置である。ログ照会サーバ17は、ログ格納サーバ13に格納されているログの内容やログの統計データ等を照会する。尚、ログ照会サーバ17は、照会して取得したログに対して、さらに詳細な加工処理を行ったり統計処理を行ったりしてもよい。
(1-5. Log inquiry server 17)
The log inquiry server 17 is a device such as a computer connected to the log storage server 13 of the log management device 9 via a network such as the Internet or an intranet. The log inquiry server 17 inquires about the contents of the log stored in the log storage server 13 and the statistical data of the log. Note that the log inquiry server 17 may perform more detailed processing or statistical processing on the log acquired by inquiry.

(2.ハードウェア構成)
次に、図5を参照しながら、端末装置5−1、5−2、…、及びウェブサーバ7−1、7−2、…、及びログ登録サーバ11−1、11−2、…、及びログ格納サーバ13及びログ照会サーバ17のハードウェア構成について説明する。
図5は、端末装置5−1、5−2、…、及びウェブサーバ7−1、7−2、…、及びログ登録サーバ11−1、11−2、…、及びログ格納サーバ13及びログ照会サーバ17のハードウェア構成図である。尚、図5のハードウェア構成は一例であり、用途、目的に応じて様々な構成を採ることが可能である。
(2. Hardware configuration)
Next, referring to FIG. 5, the terminal devices 5-1, 5-2,..., The web servers 7-1, 7-2,. The hardware configuration of the log storage server 13 and the log inquiry server 17 will be described.
FIG. 5 shows terminal devices 5-1, 5-2,..., Web servers 7-1, 7-2,..., Log registration servers 11-1, 11-2,. 2 is a hardware configuration diagram of an inquiry server 17. FIG. Note that the hardware configuration in FIG. 5 is merely an example, and various configurations can be employed depending on the application and purpose.

端末装置5−1、5−2、…、及びウェブサーバ7−1、7−2、…、及びログ登録サーバ11−1、11−2、…、及びログ格納サーバ13及びログ照会サーバ17は、CPU101、メモリ103、記憶部105、表示部107、入力部109、出力部111、通信部113がシステムバス115を介して接続されて構成される。   The terminal devices 5-1, 5-2,..., The web servers 7-1, 7-2,..., The log registration servers 11-1, 11-2,. The CPU 101, the memory 103, the storage unit 105, the display unit 107, the input unit 109, the output unit 111, and the communication unit 113 are connected via a system bus 115.

CPU101(Central Processing Unit)は、演算装置(四則演算や比較演算等)や、ハードウェアやソフトウェアの動作制御を行う装置である。   A CPU 101 (Central Processing Unit) is a device that performs operation control of arithmetic devices (four arithmetic operations, comparison operations, etc.), hardware and software.

メモリ103は、RAM及びROM等のメモリである。RAM(Random Access Memory)は、ROM(Read Only Memory)や記憶部105から読み出されたOS(Operating System)のプログラム、アプリケーションプログラム等を記憶する。RAMはCPU101の主メモリやワークエリアとして機能する。   The memory 103 is a memory such as a RAM and a ROM. A RAM (Random Access Memory) stores a ROM (Read Only Memory), an OS (Operating System) program read from the storage unit 105, an application program, and the like. The RAM functions as a main memory and work area for the CPU 101.

記憶部105は、各種データを記憶する装置であり、例えばハードディスクである。記憶部105は、CPU101が実行するプログラム、プログラム実行に必要なデータ、OS、各種データベース等が格納される。   The storage unit 105 is a device that stores various data, and is, for example, a hard disk. The storage unit 105 stores a program executed by the CPU 101, data necessary for program execution, an OS, various databases, and the like.

表示部107は、表示装置であり、例えば、CRTモニタ、液晶パネルである。表示部107は、コンピュータのビデオ機能を実現するための論理回路(ビデオアダプタ等)を有する。   The display unit 107 is a display device, such as a CRT monitor or a liquid crystal panel. The display unit 107 includes a logic circuit (such as a video adapter) for realizing the video function of the computer.

入力部109は、各種データの入力装置であり、例えば、キーボード、マウスである。出力部111は、各種データの出力装置であり、例えばプリンタである。各種メディアとのデータ入出力を行うドライブ装置を入力部109及び出力部111として用いることもできる。   The input unit 109 is an input device for various data, such as a keyboard and a mouse. The output unit 111 is an output device for various data, for example, a printer. Drive devices that perform data input / output with various media can also be used as the input unit 109 and the output unit 111.

通信部113は、システムバス115を介して外部装置と接続・通信する通信制御装置である。例えば、TCP/IPを用いたインターネット通信が可能である。
システムバス115は、各装置間の制御信号、データ信号などの授受を媒介する経路である。
The communication unit 113 is a communication control device that connects and communicates with an external device via the system bus 115. For example, Internet communication using TCP / IP is possible.
The system bus 115 is a path that mediates transmission / reception of control signals, data signals, and the like between the devices.

端末装置5−1、5−2、…、及びウェブサーバ7−1、7−2、…、及びログ登録サーバ11−1、11−2、…、及びログ格納サーバ13及びログ照会サーバ17は、記憶部105やROMや記憶媒体に格納されるプログラム(アプリケーションプログラム、OSのプログラム等)を、メモリ103のRAMにロードしてCPU101の制御の下に、各種処理を実行する。   The terminal devices 5-1, 5-2,..., The web servers 7-1, 7-2,..., The log registration servers 11-1, 11-2,. A program (an application program, an OS program, etc.) stored in the storage unit 105, ROM, or storage medium is loaded into the RAM of the memory 103, and various processes are executed under the control of the CPU 101.

(3.データベース15の構成)
次に、図6を参照しながら、データベース15について説明する。
図6は、データベース15の構成を示す図である。
データベース15は、ログ登録DB19とログ管理DB21等を有する。ログ登録DB19には、各ウェブサーバ7のファイル種別ごとのログが格納される。例えばウェブサーバ7−1から収集するファイル種別「価格ログ」のログファイル20−1、ウェブサーバ7−1から収集するファイル種別「注文ログ」のログファイル20−2のように、ログが分類され格納される。
(3. Configuration of database 15)
Next, the database 15 will be described with reference to FIG.
FIG. 6 is a diagram showing the configuration of the database 15.
The database 15 includes a log registration DB 19 and a log management DB 21. The log registration DB 19 stores a log for each file type of each web server 7. For example, the log is classified into a log file 20-1 of a file type “price log” collected from the web server 7-1 and a log file 20-2 of a file type “order log” collected from the web server 7-1. Stored.

ログ管理DB21は、各ウェブサーバ7からのログ収集の履歴を示すログ収集履歴テーブル43等を有する。ログ収集履歴テーブル43については後述する。
尚、データベース15には、各ウェブサーバ7に関する情報として、例えば、各ウェブサーバ7の識別情報、所属、URLやIPアドレス等のネット位置情報等を格納してもよい。また、データベース15には、収集されたログの集計情報、比較情報、チャート情報等を格納してもよい。
The log management DB 21 includes a log collection history table 43 and the like that indicate the log collection history from each web server 7. The log collection history table 43 will be described later.
The database 15 may store, for example, identification information, affiliation, net position information such as URL and IP address of each web server 7 as information related to each web server 7. The database 15 may store collected log total information, comparison information, chart information, and the like.

次に、図7を参照しながら、ログ収集履歴テーブル43について説明する。
図7は、ログ収集履歴テーブル43を示す図である。ログ収集履歴テーブル43は、ログ出力サーバ名45、ログファイル種別47、更新時間49、処理状態51、最終取込ログファイル名53等の項目を有する。
Next, the log collection history table 43 will be described with reference to FIG.
FIG. 7 is a diagram showing the log collection history table 43. The log collection history table 43 includes items such as a log output server name 45, a log file type 47, an update time 49, a processing state 51, and a final captured log file name 53.

ログ出力サーバ名45は、ログを出力するウェブサーバ7−1、7−2、…、のいずれかを示す。ログファイル種別47は、出力ログファイルの種別を示す。1つのログ出力サーバ(ウェブサーバ7のいずれか)に対して、少なくとも1つのログファイル種別47が登録される。例えば「PRICE」は価格に関するログファイル、「ORDER」は注文に関するログファイル、「REPORT」は調査報告に関するログファイルを示す。   The log output server name 45 indicates any of the web servers 7-1, 7-2,. The log file type 47 indicates the type of the output log file. At least one log file type 47 is registered for one log output server (any of the web servers 7). For example, “PRICE” indicates a log file regarding prices, “ORDER” indicates a log file regarding orders, and “REPORT” indicates a log file regarding survey reports.

ログ出力サーバ名45とログファイル種別47とをキーとして、ログ収集履歴テーブル43の各レコードが登録される。例えば、ウェブサーバ7−1に関するレコード201〜203、ウェブサーバ7−2に関するレコード204〜206、ウェブサーバ7−3に関するレコード207〜209が登録される。   Each record of the log collection history table 43 is registered using the log output server name 45 and the log file type 47 as keys. For example, records 201 to 203 related to the web server 7-1, records 204 to 206 related to the web server 7-2, and records 207 to 209 related to the web server 7-3 are registered.

更新時間49は、ログ登録サーバ11−1、11−2、…、がログ収集のためにウェブサーバ7−1、7−2、…、にアクセスした最終日時を示す。ログ収集が成功したか失敗したかにかかわらず、ログ登録サーバ11−1、11−2、…、がウェブサーバ7−1、7−2、…、にアクセスした最終日時が更新時間49として登録される。   The update time 49 indicates the last date and time when the log registration servers 11-1, 11-2,... Accessed the web servers 7-1, 7-2,. Regardless of whether log collection was successful or unsuccessful, the last date and time when the log registration server 11-1, 11-2,... Accessed the web server 7-1, 7-2,. Is done.

処理状態51は、ログ登録サーバ11−1、11−2、…、がログ収集を「成功」したこと、または「失敗」したことを示す情報である。ログ収集の「成功」とは、指定されたウェブサーバ7から、指定されたログファイル種別47のログ収集を行ったことを示す。ログ収集残の有無にはかかわらない。ログ収集の「失敗」とは、ログ登録サーバ11−1、11−2、…、が指定されたウェブサーバ7の指定されたログファイル種別47のログ収集を試みたが、ログ収集ができなかったことを示す。例えば、ウェブサーバ7−1、7−2、…、に収集すべきログが蓄積されていない場合や、ウェブサーバ7−1、7−2、…、や通信線路等に障害が生じた場合に、ログ収集ができないことがある。   The processing state 51 is information indicating that the log registration servers 11-1, 11-2,... Have “successfully” or “failed” log collection. “Success” of log collection indicates that log collection of the designated log file type 47 is performed from the designated web server 7. Regardless of whether log collection remains. Log collection “failure” means that log collection of the specified log file type 47 of the web server 7 to which the log registration servers 11-1, 11-2,. It shows that. For example, when logs to be collected are not accumulated in the web servers 7-1, 7-2,... Or when a failure occurs in the web servers 7-1, 7-2,. Log collection may not be possible.

最終取込ログファイル名53は、ログ登録サーバ11−1、11−2、…、が取り込んだ最終取込ログファイル名53を示す。
ログ格納サーバ13は、更新時間49と処理状態51とを基にして、次に取り込むべきログファイルのログ出力サーバ名45とログファイル種別47を抽出する。ログ格納サーバ13は、当該ログ出力サーバ名45とログファイル種別47と、取込ログの位置を示す最終取込ログファイル名53とを、問い合わせのあったログ登録サーバ11−1、11−2、…、にログ収集指示情報として通知する。
The final captured log file name 53 indicates the final captured log file name 53 captured by the log registration servers 11-1, 11-2,.
Based on the update time 49 and the processing state 51, the log storage server 13 extracts the log output server name 45 and the log file type 47 of the log file to be fetched next. The log storage server 13 sets the log output server name 45, the log file type 47, and the last captured log file name 53 indicating the position of the captured log to the log registration servers 11-1 and 11-2 that have inquired. ,... Are notified as log collection instruction information.

(4.ログ収集管理システム1の動作)
次に、図8を参照しながら、ログ収集管理システム1の動作について説明する。
図8は、ログ収集管理システム1の動作を示すフローチャートである。
図8は、ウェブサーバ7−1及びログ登録サーバ11−1及びログ格納サーバ13の動作を示す。尚、他のウェブサーバ7−2、7−3、…、及び他のログ登録サーバ11−2、11−3、…、もウェブサーバ7−1及びログ登録サーバ11−1と同様の動作を行う。
(4. Operation of log collection management system 1)
Next, the operation of the log collection management system 1 will be described with reference to FIG.
FIG. 8 is a flowchart showing the operation of the log collection management system 1.
FIG. 8 shows operations of the web server 7-1, the log registration server 11-1, and the log storage server 13. The other web servers 7-2, 7-3,... And the other log registration servers 11-2, 11-3,... Operate in the same manner as the web server 7-1 and the log registration server 11-1. Do.

ウェブサーバ7−1は、ネットワーク3を介して端末装置5−1、5−2、…、にサービスを提供する。ウェブサーバ7−1のログ作成手段31はサービス提供に伴ってログを作成して保持する。ログ作成手段31は、所定時間(X)間隔(例えば、10分間隔)でログを作成する(ステップ1001)。   The web server 7-1 provides services to the terminal devices 5-1, 5-2,. The log creation means 31 of the web server 7-1 creates and holds a log as the service is provided. The log creation means 31 creates a log at a predetermined time (X) interval (for example, every 10 minutes) (step 1001).

ログ登録サーバ11−1のログ収集問い合わせ手段23は、ログ収集先及び収集すべきログを特定するための情報について、ログ格納サーバ13に問い合わせる(ステップ1002)。
ログ格納サーバ13のログ収集指示手段35は、ログ収集先及び収集すべきログを特定するための情報について、ログ管理DB21のログ収集履歴テーブル43を検索する(ステップ1003)。検索の詳細については後述する。
The log collection inquiry unit 23 of the log registration server 11-1 makes an inquiry to the log storage server 13 for information for specifying a log collection destination and a log to be collected (step 1002).
The log collection instruction unit 35 of the log storage server 13 searches the log collection history table 43 of the log management DB 21 for information for specifying a log collection destination and a log to be collected (step 1003). Details of the search will be described later.

ログ格納サーバ13のログ収集指示手段35は、検索結果に基づいて、ログ収集先(ウェブサーバ7のいずれか)及び収集すべきログ(ログファイル種別47と次に収集するログファイルに関する情報)についてログ登録サーバ11−1に指示する(ステップ1004)。「次に収集するログファイルに関する情報」として、最終取込ログファイル名53を示すことができる。   The log collection instructing means 35 of the log storage server 13 determines the log collection destination (any of the web servers 7) and the log to be collected (information on the log file type 47 and the log file to be collected next) based on the search result. The log registration server 11-1 is instructed (step 1004). As “information about a log file to be collected next”, a final captured log file name 53 can be indicated.

ログ登録サーバ11−1のログ収集手段25は、ログ格納サーバ13への問い合わせ結果に基づいて、収集すべきログを有するウェブサーバ7−1にログの送信を要求する(ステップ1005)。   Based on the inquiry result to the log storage server 13, the log collection unit 25 of the log registration server 11-1 requests log transmission to the web server 7-1 having the log to be collected (step 1005).

ウェブサーバ7−1が要求したログを作成していない場合(ステップ1006のNO)、ログ登録サーバ11−1は、ウェブサーバ7−1からログを収集できなかった旨をログ格納サーバ13に通知する(ステップ1007)。   When the log requested by the web server 7-1 is not created (NO in step 1006), the log registration server 11-1 notifies the log storage server 13 that the log cannot be collected from the web server 7-1. (Step 1007).

ログ格納サーバ13は、ログ収集履歴テーブル43の該当するレコードの処理状態51を「失敗」にする(ステップ1008)。
ログ格納サーバ13は、ログ収集履歴テーブル43の該当するレコードの更新時間49を更新する(ステップ1009)。ログ登録サーバ11−1は再びステップ1002からの処理を行う。
The log storage server 13 sets the processing state 51 of the corresponding record in the log collection history table 43 to “failure” (step 1008).
The log storage server 13 updates the update time 49 of the corresponding record in the log collection history table 43 (step 1009). The log registration server 11-1 performs the processing from step 1002 again.

ステップ1006に戻り、ウェブサーバ7−1が要求したログを作成している場合(ステップ1006のYES)、ウェブサーバ7−1のログ出力手段33は要求されたログをログ登録サーバ11−1に送る(ステップ1010)。   Returning to step 1006, when the log requested by the web server 7-1 has been created (YES in step 1006), the log output means 33 of the web server 7-1 sends the requested log to the log registration server 11-1. Send (step 1010).

ログ登録サーバ11−1のログ収集手段25は、ウェブサーバ7−1から送られるログを受信する(ステップ1011)。ログ登録サーバ11−1のログ加工手段27は、ログを加工する(ステップ1012)。「ログの加工」とは、例えば各ウェブサーバ7−1、7−2、…、から収集するログのフォーマットを統一するためのデータの変換・加工である。   The log collection means 25 of the log registration server 11-1 receives the log sent from the web server 7-1 (step 1011). The log processing means 27 of the log registration server 11-1 processes the log (step 1012). “Log processing” is, for example, data conversion / processing to unify the format of logs collected from the web servers 7-1, 7-2,...

ログ登録サーバ11−1のログ送信手段29は、加工済みのログをログ格納サーバ13に送信する(ステップ1013)。
ログ格納サーバ13のログ受信手段37は、ログを受信してログ登録DB19の該当するログファイル20(図6)に格納する(ステップ1014)。
The log transmission means 29 of the log registration server 11-1 transmits the processed log to the log storage server 13 (step 1013).
The log receiving means 37 of the log storage server 13 receives the log and stores it in the corresponding log file 20 (FIG. 6) of the log registration DB 19 (step 1014).

ログ格納サーバ13は、ログ収集履歴テーブル43の該当するレコードの処理状態51を「成功」にし、更新時間49と最終取込ログファイル名53を更新する(ステップ1015)。ログ登録サーバ11−1は再びステップ1002からの処理を行う。   The log storage server 13 sets the processing state 51 of the corresponding record in the log collection history table 43 to “success”, and updates the update time 49 and the last captured log file name 53 (step 1015). The log registration server 11-1 performs the processing from step 1002 again.

以上の過程を経て、ログ登録サーバ11−1は、ログ格納サーバ13に収集すべきログを特定するための情報について問い合わせ、指示されたウェブサーバ7−1、7−2、…、からログを収集し加工してログ格納サーバ13に送信する。ログ格納サーバ13はログ収集履歴情報の処理状態51に「成功」の情報を格納する。ログ登録サーバ11−1が指示されたウェブサーバ7からのログの収集に失敗すると、ログ格納サーバ13はログ収集履歴情報の処理状態51に「失敗」の情報を格納する。   Through the above process, the log registration server 11-1 inquires the log storage server 13 about information for specifying the logs to be collected, and obtains logs from the instructed web servers 7-1, 7-2,. Collected, processed, and transmitted to the log storage server 13. The log storage server 13 stores “success” information in the processing state 51 of the log collection history information. When the log registration server 11-1 fails to collect logs from the instructed web server 7, the log storage server 13 stores “failure” information in the processing state 51 of the log collection history information.

このように、ログ登録サーバ11−1、11−2、…、がそれぞれ、ログ格納サーバ13に対して収集すべきログを特定するための情報について問い合わせて、ログ収集を行う。各ログ登録サーバ11−1、11−2、…、には、特定のウェブサーバ7や特定の種別のログの収集が事前に割り当てられてはいない。即ち、ログ収集処理が可能な状態になったログ登録サーバ11−1、11−2、…、にログ格納サーバ13が順次ログ収集先のウェブサーバ7−1、7−2、…、や収集すべきログの種別を割り当てる。従って、ログ格納サーバ13はログ収集が成功する可能性の高い順に、効率的に各ログ登録サーバ11−1、11−2、…、にログ収集指示を割り当てることができる。従って、特定のログ登録サーバ11−1、11−2、…、にログ収集の処理負荷が集中することを回避できる。   In this way, each of the log registration servers 11-1, 11-2,... Inquires of the log storage server 13 about information for specifying a log to be collected, and performs log collection. The log registration servers 11-1, 11-2,... Are not preliminarily assigned with a specific web server 7 or a specific type of log collection. That is, the log storage server 13 sequentially collects the log collection destination web servers 7-1, 7-2,... On the log registration servers 11-1, 11-2,. Assign the log type to be used. Therefore, the log storage server 13 can efficiently assign log collection instructions to each of the log registration servers 11-1, 11-2,... In descending order of possibility of successful log collection. Therefore, it is possible to avoid the log collection processing load from being concentrated on the specific log registration servers 11-1, 11-2,.

また、各ログ登録サーバ11−1、11−2、…、の性能を統一する必要はない。各ログ登録サーバ11−1、11−2、…、は独立に動作するので、それぞれの性能に見合うログ収集処理を効率的に行うことができる。また、ログ登録サーバ11−1、11−2、…、のいずれかに障害が生じた場合に、ログ管理装置9としての機能に影響することなく他のログ登録サーバ11−1、11−2、…、で補完することができる。また、障害が生じた場合に、ログ管理装置9の機能に影響することなく障害の生じたログ登録サーバ11−1、11−2、…、を差し替えることができるので、保守管理が容易である。   Further, it is not necessary to unify the performance of each log registration server 11-1, 11-2,. Since each log registration server 11-1, 11-2,... Operates independently, log collection processing corresponding to each performance can be efficiently performed. When a failure occurs in any of the log registration servers 11-1, 11-2,..., The other log registration servers 11-1, 11-2 are not affected without affecting the function as the log management device 9. , ... can be complemented. Further, when a failure occurs, the failed log registration servers 11-1, 11-2,... Can be replaced without affecting the function of the log management device 9, so that maintenance management is easy. .

(5.ログ格納サーバ13の検索処理)
次に、図9、図11〜図13を参照しながら、ログ格納サーバ13のログ収集履歴テーブル43の検索処理(図8のステップ1003の詳細)について説明する。
図9は、ログ収集履歴テーブル43の検索処理を示すフローチャートである。
(5. Search processing of log storage server 13)
Next, the search processing (details of step 1003 in FIG. 8) of the log collection history table 43 of the log storage server 13 will be described with reference to FIGS.
FIG. 9 is a flowchart showing search processing of the log collection history table 43.

ログ格納サーバ13は、各ログ登録サーバ11−1、11−2、…、から収集すべきログを特定するための情報について問い合わせを受け、ログ収集履歴テーブル43の検索処理を行う。ログ格納サーバ13は、ログ登録サーバ11−1、11−2、…、がログ収集処理を終了するたびに、ログ登録サーバ11−1、11−2、…、から次の収集すべきログを特定するための情報について問い合わせを受ける。   The log storage server 13 receives an inquiry about information for specifying the log to be collected from each of the log registration servers 11-1, 11-2,..., And searches the log collection history table 43. Each time the log registration server 11-1, 11-2,... Finishes the log collection processing, the log storage server 13 obtains the next log to be collected from the log registration server 11-1, 11-2,. Get inquiries about information to identify.

ログ格納サーバ13のログ収集指示手段35は、検索処理開始時に、ログ収集履歴テーブル43(図7)に示すレコードの中に、処理状態51「成功」のレコードがあれば処理状態51「成功」のレコードを更新時間49の古いレコード順に並べ、次に処理状態51「失敗」のレコードを更新時間49の古いレコード順に並べなおしてログ検索テーブル59−1(図11)を作成する(ステップ2001)。   The log collection instructing unit 35 of the log storage server 13 sets the processing state 51 “success” if the record shown in the log collection history table 43 (FIG. 7) includes a processing state 51 “success” at the start of the search process. Are arranged in the order of the records with the oldest update time 49, and then the records in the processing state 51 “failure” are rearranged in the order of the records with the oldest update time 49 to create the log search table 59-1 (FIG. 11) (step 2001). .

図11は、ログ収集履歴テーブル43(図7)を基に作成されるログ検索テーブル59−1を示す図である。ログ検索テーブル59−1は、ログ収集指示手段35がログ収集指示を行うレコードを優先順位順に並べたものである。ログ検索テーブル59−1の項目は、ログ収集履歴テーブル43の項目(ログ出力サーバ名45、ログファイル種別47、更新時間49、処理状態51、最終取込ログファイル名53)に、経過時間55と収集可否57の項目が追加される。経過時間55は、(現在時刻―更新時間49)の値が格納され、時間経過と共に更新される。収集可否57は、初期値として「−」が格納され、ログ収集履歴テーブル43の検索処理を示すフローチャート(図9)においてログ収集可とされたレコードには「OK」、ログ収集不可とされたレコードには「NG」が格納される。   FIG. 11 is a diagram showing a log search table 59-1 created based on the log collection history table 43 (FIG. 7). The log search table 59-1 is a table in which the records for which the log collection instruction unit 35 instructs log collection are arranged in order of priority. Items in the log search table 59-1 include items in the log collection history table 43 (log output server name 45, log file type 47, update time 49, processing state 51, last captured log file name 53), and elapsed time 55. And an item of collection availability 57 is added. The elapsed time 55 stores a value of (current time−update time 49) and is updated as time elapses. In the collection availability 57, “-” is stored as an initial value, and “OK” is set to the record that can be collected in the flowchart (FIG. 9) showing the search processing of the log collection history table 43, and the log collection is impossible. “NG” is stored in the record.

ログ格納サーバ13のログ収集指示手段35は、いずれかのログ登録サーバ11−1、11−2、…、から収集すべきログを特定するための情報について問い合わせがあると、ログ検索テーブル59(或いはログ収集履歴テーブル43)に処理状態51「成功」のレコードがあるかどうかを検索する(ステップ2002)。   When the log collection instructing unit 35 of the log storage server 13 has inquired about information for identifying a log to be collected from any of the log registration servers 11-1, 11-2,. Alternatively, the log collection history table 43) is searched for a record having the processing state 51 “success” (step 2002).

ログ収集指示手段35は、処理状態51「成功」のレコードがあると(ステップ2002のYES)、処理状態51「成功」のレコードを抽出する(ステップ2003)。即ち、ログ収集指示手段35は、ログ検索テーブル59−1の上位4つのレコード201、207、209、205を抽出し、収集可否57の項目に「OK」を格納する。その他のレコードの収集可否57の項目は「−」である。   When there is a record of the processing state 51 “success” (YES in step 2002), the log collection instructing unit 35 extracts a record of the processing state 51 “success” (step 2003). That is, the log collection instructing unit 35 extracts the top four records 201, 207, 209, and 205 of the log search table 59-1, and stores “OK” in the item of collection availability 57. The item of other records collection availability 57 is “-”.

次にログ収集指示手段35は、抽出したレコードの中から最古のレコードを検索する(ステップ2004)。即ち、ログ検索テーブル59−1は上位から更新時間49の古いレコード順(即ち、経過時間55が大きい順)であるので、最上位のレコード201が抽出される。   Next, the log collection instructing means 35 searches for the oldest record from the extracted records (step 2004). That is, since the log search table 59-1 is in the order of records with the oldest update time 49 from the top (that is, the order in which the elapsed time 55 is large), the top record 201 is extracted.

ログ収集指示手段35は、検索結果に基づいて、問い合わせのあったログ登録サーバ11−1、11−2、…、に対してログ収集の指示を行う(ステップ2005)。即ち、ログ収集指示手段35は、レコード201に基づいて、ログ出力サーバ名45「ウェブサーバ7−1」、ログファイル種別47「PRICE11」、最終取込ログファイル名53「1120−price11−005.log」の情報を問い合わせのあったログ登録サーバ11−1、11−2、…、に送る。当該ログ登録サーバ11−1、11−2、…、は、指示に従って、ログ出力サーバ名45「ウェブサーバ7−1」にアクセスし、ログファイル種別47「PRICE11」の最終取込ログファイル名53「1120−price11−005.log」の次のログファイルからログの収集を行う。   Based on the search result, the log collection instructing unit 35 instructs the log registration servers 11-1, 11-2,... That is, the log collection instructing means 35, based on the record 201, logs output server name 45 “Web server 7-1”, log file type 47 “PRICE11”, last captured log file name 53 “1120-price11-005. log "information is sent to the log registration servers 11-1, 11-2,. The log registration servers 11-1, 11-2,... Access the log output server name 45 “Web server 7-1” according to the instruction, and the final captured log file name 53 of the log file type 47 “PRICE 11”. Logs are collected from the log file next to “1120-price11-005.log”.

ログ収集指示手段35は、さらに、いずれかのログ登録サーバ11−1、11−2、…、から問い合わせがあると、処理状態51「成功」で、更新時間49が最古のレコード順にログ収集の指示を行い、ステップ2001〜ステップ2005の処理を繰り返す。   When there is an inquiry from any of the log registration servers 11-1, 11-2,..., The log collection instructing means 35 collects logs in order of records with the processing state 51 “successful” and the update time 49 being the oldest. Is repeated, and the processing from step 2001 to step 2005 is repeated.

図12は、ログ検索テーブル59−2を示す図である。
処理状態51「成功」のレコードがなくなると(ステップ2002のNO)、図12に示すように、全てのレコードについてログ検索テーブル59−2の処理状態51は「失敗」となる。
FIG. 12 is a diagram showing the log search table 59-2.
When there is no record of the processing state 51 “success” (NO in step 2002), as shown in FIG. 12, the processing state 51 of the log search table 59-2 is “failure” for all records.

ログ収集指示手段35は、処理状態51「失敗」、かつ、経過時間55が所定時間(Y)以上であるレコードがあれば(ステップ2006のYES)、該当するレコードを抽出する(ステップ2007)。所定時間(Y)を3分とすると、ログ検索テーブル59−2(図12)の上位4つのレコード206、208、203、204が抽出され、経過時間55が3分以上のレコードの収集可否57の項目には「OK」が格納され、その他のレコードの収集可否57の項目には「NG」が格納される。   If there is a record in which the processing state 51 is “failure” and the elapsed time 55 is equal to or longer than the predetermined time (Y) (YES in step 2006), the log collection instructing unit 35 extracts the corresponding record (step 2007). If the predetermined time (Y) is 3 minutes, the top four records 206, 208, 203, 204 of the log search table 59-2 (FIG. 12) are extracted, and whether or not to collect records whose elapsed time 55 is 3 minutes or more 57 “OK” is stored in the item of “No.”, and “NG” is stored in the item of availability 57 of collecting other records.

次にログ収集指示手段35は、抽出したレコードの中から最古のレコードを検索する(ステップ2008)。ログ検索テーブル59−2の最上位のレコード206が抽出される。   Next, the log collection instruction unit 35 searches for the oldest record from the extracted records (step 2008). The highest record 206 in the log search table 59-2 is extracted.

ログ収集指示手段35は、検索結果に基づいて、問い合わせのあったログ登録サーバ11−1、11−2、…、に対してログ収集の指示を行う(ステップ2005)。即ち、ログ収集指示手段35は、レコード206に基づいて、ログ出力サーバ名45「ウェブサーバ7−2」、ログファイル種別47「ORDER25」、最終取込ログファイル名53「1120−order25−003.log」の情報を問い合わせのあったログ登録サーバ11−1、11−2、…、に送る。当該ログ登録サーバ11−1、11−2、…、は、指示に従って、ログ出力サーバ名45「ウェブサーバ7−2」にアクセスし、ログファイル種別47「ORDER25」の最終取込ログファイル名53「1120−order25−003.log」の次のログファイルからログの収集を行う。   Based on the search result, the log collection instructing unit 35 instructs the log registration servers 11-1, 11-2,... That is, based on the record 206, the log collection instructing means 35 uses the log output server name 45 “Web server 7-2”, the log file type 47 “ORDER25”, and the final captured log file name 53 “1120-order25-003. log "information is sent to the log registration servers 11-1, 11-2,. The log registration servers 11-1, 11-2,... Access the log output server name 45 “Web server 7-2” according to the instruction, and the final captured log file name 53 of the log file type 47 “ORDER25”. Logs are collected from the log file next to “1120-order25-003.log”.

ログ収集指示手段35は、さらに、いずれかのログ登録サーバ11−1、11−2、…、から問い合わせがあると、ステップ2001〜ステップ2005の処理、またはステップ2001〜ステップ2002→ステップ2006〜ステップ2008→ステップ2005の処理を繰り返す。   When there is an inquiry from any of the log registration servers 11-1, 11-2,..., The log collection instructing unit 35 performs the processing of Step 2001 to Step 2005 or Step 2001 to Step 2002 → Step 2006 to Step. 2008 → Step 2005 is repeated.

図13は、ログ検索テーブル59−3を示す図である。
ステップ2006において、処理状態51「失敗」、かつ、経過時間55が所定時間(Y)(3分)以上のレコードがなくなると(ステップ2006のNO)、図13に示すように、全てのレコードについてログ検索テーブル59−3の経過時間55は3分未満となり、収集可否57の項目には全て「NG」が格納される。
FIG. 13 is a diagram showing the log search table 59-3.
In step 2006, when there is no record in which the processing state 51 is “failure” and the elapsed time 55 is equal to or longer than the predetermined time (Y) (3 minutes) (NO in step 2006), as shown in FIG. The elapsed time 55 of the log search table 59-3 is less than 3 minutes, and “NG” is stored in all items of the collection availability 57.

ログ収集指示手段35は、問い合わせのあったログ登録サーバ11−1、11−2、…、に対して待機の指示を行う(ステップ2009)。「待機」については後述する。   The log collection instructing unit 35 issues a standby instruction to the inquired log registration servers 11-1, 11-2,... (Step 2009). “Standby” will be described later.

以上の過程を経て、ログ格納サーバ13は、ログ収集履歴テーブル43又はログ検索テーブル59の「ログ取得成功」、かつ、最も経過時間55が長いレコードのログに関して、問い合わせ元のログ登録サーバ11−1、11−2、…、にログ収集指示を行う。また、ログ格納サーバ13は、ログ収集履歴テーブル43又はログ検索テーブル59の全レコードが「ログ取得失敗」の場合、経過時間55が所定時間(Y)以上で、かつ、最も経過時間55が長いレコードのログに関して、問い合わせ元のログ登録サーバ11−1、11−2、…、にログ収集指示を行う。また、ログ格納サーバ13は、ログ収集履歴テーブル43又はログ検索テーブル59の全レコードが「ログ取得失敗」、かつ、全レコードの経過時間55が所定時間(Y)未満の場合、問い合わせ元のログ登録サーバ11−1、11−2、…、に待機指示を行う。   Through the above-described process, the log storage server 13 relates to the log of the record having the longest elapsed time 55 in the log collection history table 43 or the log search table 59 and the log having the longest elapsed time 55. 1, 11-2,... Further, when all the records in the log collection history table 43 or the log search table 59 are “log acquisition failure”, the log storage server 13 has an elapsed time 55 that is equal to or longer than a predetermined time (Y) and the longest elapsed time 55. Regarding the log of the record, a log collection instruction is given to the log registration servers 11-1, 11-2,. In addition, the log storage server 13 determines the log of the inquiry source when all records in the log collection history table 43 or the log search table 59 are “log acquisition failure” and the elapsed time 55 of all records is less than a predetermined time (Y). A standby instruction is issued to the registration servers 11-1, 11-2,.

このように、ログ格納サーバ13は、ログ登録サーバ11−1、11−2、…、からのランダムな問い合わせに対して的確にログ収集の優先順位を決定し、収集すべきログを特定するための情報について効率的に指示を行うことができる。   As described above, the log storage server 13 accurately determines the priority of log collection in response to a random inquiry from the log registration servers 11-1, 11-2,. It is possible to efficiently instruct the information.

また、ログ登録サーバ11−1、11−2、…、は、ウェブサーバ7−1、7−2、…、からのログ収集負荷を、それぞれのログ登録サーバ11−1、11−2、…、の性能に応じて分担することができるのでログ管理装置9の安定性と信頼性を確保することができる。   Further, the log registration servers 11-1, 11-2,... Represent the log collection loads from the web servers 7-1, 7-2,. Therefore, it is possible to ensure the stability and reliability of the log management device 9.

尚、ログ格納サーバ13のログ収集指示手段35は、検索処理開始時にログ検索テーブル59を作成するとして説明したが、ログ収集指示手段35がログ収集履歴テーブル43(図7)のレコードを、処理状態51と経過時間55に基づいて必要に応じて事前に検索し、ログ収集指示を行うレコードを抽出するようにしてもよい。   The log collection instruction unit 35 of the log storage server 13 has been described as creating the log search table 59 at the start of the search process. However, the log collection instruction unit 35 processes the records in the log collection history table 43 (FIG. 7). Based on the state 51 and the elapsed time 55, a search may be performed in advance as necessary, and a record for instructing log collection may be extracted.

(6.ログ収集処理の待機)
次に、図8〜図10および図13を参照しながら、ログ登録サーバ11−1、11−2、…、のログ収集の待機処理(図9のステップ2009に関する処理)について説明する。
図10は、ログ登録サーバ11−1の待機処理を示すフローチャートである。 図10は、ログ登録サーバ11−1及びログ格納サーバ13の動作を示す。尚、他のログ登録サーバ11−2、11−3、…、もログ登録サーバ11−1と同様の動作を行う。
(6. Standby for log collection processing)
Next, the log collection standby processing (processing related to step 2009 in FIG. 9) of the log registration servers 11-1, 11-2,... Will be described with reference to FIGS.
FIG. 10 is a flowchart showing standby processing of the log registration server 11-1. FIG. 10 shows operations of the log registration server 11-1 and the log storage server 13. The other log registration servers 11-2, 11-3,... Perform the same operation as the log registration server 11-1.

ログ登録サーバ11−1は、ログ格納サーバ13に収集すべきログを特定するための情報について問い合わせる(図8:ステップ1002)。ログ格納サーバ13はログ収集履歴テーブル43を検索し(図8:ステップ1003)、検索開始時(図9:ステップ2001)にログ検索テーブル59−3(図13)を得る。   The log registration server 11-1 inquires of the log storage server 13 about information for specifying a log to be collected (FIG. 8: Step 1002). The log storage server 13 searches the log collection history table 43 (FIG. 8: Step 1003) and obtains the log search table 59-3 (FIG. 13) at the start of the search (FIG. 9: Step 2001).

ログ検索テーブル59−3では、全てのレコードが処理状態51「失敗」であり、かつ、経過時間55が所定時間(Y)以上のレコードがない(図9:ステップ2002及びステップ2006のNO)。
ログ格納サーバ13は、問い合わせのあったログ登録サーバ11−1に対して所定時間(Z)(例えば、5分)の待機指示を行う(図9及び図10:ステップ2009)。
In the log search table 59-3, all the records are in the processing state 51 “failure” and there is no record whose elapsed time 55 is equal to or longer than the predetermined time (Y) (FIG. 9: NO in step 2002 and step 2006).
The log storage server 13 issues a standby instruction for a predetermined time (Z) (for example, 5 minutes) to the inquired log registration server 11-1 (FIG. 9 and FIG. 10: Step 2009).

ログ登録サーバ11−1は、ログ格納サーバ13から待機の指示を受けると、ウェブサーバ7−1、7−2、…、に対するログ収集処理及びログ格納サーバ13に対する問い合わせ処理を中止して待機する(ステップ2010)。所定時間(Z)が経過するまでログ登録サーバ11−1は待機を継続する(ステップ2011のNO、ステップ2010)。所定時間(Z)が経過すると(ステップ2011のYES)、ログ登録サーバ11−1は待機を解除し、再び収集すべきログを特定するための情報についてログ格納サーバ13に問い合わせる(ステップ2012)。   When the log registration server 11-1 receives a standby instruction from the log storage server 13, the log registration server 11-1 stops the log collection processing for the web servers 7-1, 7-2,. (Step 2010). The log registration server 11-1 continues to stand by until the predetermined time (Z) elapses (NO in step 2011, step 2010). When the predetermined time (Z) has elapsed (YES in step 2011), the log registration server 11-1 cancels the standby, and inquires the log storage server 13 about information for specifying the log to be collected again (step 2012).

尚、ログ登録サーバ11−1が待機している間に、時間が経過してログ検索テーブル59−3の経過時間55が所定時間(Y)(例えば、3分)以上になるレコードが生成されると、待機状態になっていない他のログ登録サーバ11−2、11−3、…、からの問い合わせに応じて、ログ格納サーバ13は優先順位順に当該他のログ登録サーバ11−2、11−3、…、にログ収集指示を行う。   While the log registration server 11-1 is waiting, a record is generated in which the elapsed time 55 of the log search table 59-3 is equal to or longer than a predetermined time (Y) (for example, 3 minutes) while waiting. Then, in response to an inquiry from the other log registration servers 11-2, 11-3,... That are not in the standby state, the log storage server 13 is in order of priority according to the other log registration servers 11-2, 11 -3,...

以上の過程を経て、収集すべきログが存在する可能性が高い収集先及びログ種別がない場合には、ログ格納サーバ13は、問い合わせ元のログ登録サーバ11−1に待機を指示し、待機指示を受けたログ登録サーバ11−1は、所定時間が経過するまで、ウェブサーバ7に対するログ収集処理及びログ格納サーバ13に対する問い合わせ処理を行わずに待機する。   Through the above process, when there is no collection destination and log type that are likely to contain logs to be collected, the log storage server 13 instructs the inquiry log registration server 11-1 to wait, and waits. The log registration server 11-1 that has received the instruction waits without performing log collection processing for the web server 7 and inquiry processing for the log storage server 13 until a predetermined time elapses.

このように、ログ収集を行う対象のレコードがない場合に、ログ登録サーバ11−1を待機状態にすることにより、ログ登録サーバ11−1がログ格納サーバ13へ無駄にアクセスすることを防ぎ、ログ管理装置9の通信の効率化を図ることができる。   As described above, when there is no record to be collected, the log registration server 11-1 is prevented from accessing the log storage server 13 wastefully by putting the log registration server 11-1 in a standby state. Communication efficiency of the log management device 9 can be improved.

また、前回アクセス時にログ収集を成功したレコードが無く、前回アクセス時にログ収集を失敗し、かつ、前回アクセス時からの経過時間が所定時間(Y)以上のレコードがない場合、収集すべきログが存在する可能性が低いとして、ログ登録装置に所定時間(Z)の待機を指示するようにしてもよい。また、所定時間(Z)は所定時間(Y)より大きいことが望ましい。これにより、待機指示の繰り返しを軽減させることができる。   In addition, if there is no record that has been successfully collected at the time of the previous access, log collection has failed at the time of the previous access, and there is no record whose elapsed time from the previous access is longer than the predetermined time (Y), the log to be collected The log registration apparatus may be instructed to wait for a predetermined time (Z), assuming that there is a low possibility of being present. Further, it is desirable that the predetermined time (Z) is longer than the predetermined time (Y). Thereby, the repetition of the standby instruction can be reduced.

ログ登録サーバ11−1は、ログ収集処理を終えると、通常はすぐにログ格納サーバ13に次の収集についての問合せを行い、ログ収集指示が得られるまでログ格納サーバ13への問い合わせを繰り返す。そこで、問い合わせを受けたログ格納サーバ13は、すぐに収集すべきログが存在する可能性が低い場合には、問い合わせ元のログ登録サーバ11−1にログ収集処理と問い合わせ処理を停止させる待機指示を行う。ログ登録サーバ11−1を待機させることで、ログ登録サーバ11−1の無駄な通信動作を軽減することができる。
即ち、収集すべきログが発生していないとき、ログ登録サーバ11−1のログ収集に関する動作を停止させることにより、通信負荷(トラフィック)の増大を抑えることができる。
When the log registration server 11-1 finishes the log collection processing, the log registration server 11-1 usually makes an inquiry about the next collection to the log storage server 13 immediately and repeats the inquiry to the log storage server 13 until a log collection instruction is obtained. Therefore, when it is unlikely that there is a log to be collected immediately, the log storage server 13 that has received the inquiry waits for the log registration server 11-1 as the inquiry source to stop the log collection process and the inquiry process. I do. By making the log registration server 11-1 stand by, the useless communication operation of the log registration server 11-1 can be reduced.
That is, when there is no log to be collected, an increase in communication load (traffic) can be suppressed by stopping the operation related to log collection of the log registration server 11-1.

(7.効果等)
以上詳細に説明したように、本発明の実施の形態に係るログ管理装置9では、各ログ登録サーバ11−1、11−2、…、は独立に動作するので、各ログ登録サーバ11−1、11−2、…、の性能に見合う作業を分担させることができる。従って各ログ登録サーバ11−1、11−2、…、を有効に活用することができる。
(7. Effects, etc.)
As described above in detail, in the log management apparatus 9 according to the embodiment of the present invention, the log registration servers 11-1, 11-2,. , 11-2,..., Can be shared with work corresponding to the performance. Therefore, each log registration server 11-1, 11-2,... Can be used effectively.

また、各ログ登録サーバ11−1、11−2、…、が独立に動作するので、いずれかのログ登録サーバ11−1、11−2、…、に障害が生じた場合でもログ管理装置9の機能へ及ぼす影響が小さく、保守管理を容易に行うことができる。   Further, since each log registration server 11-1, 11-2,... Operates independently, even if any of the log registration servers 11-1, 11-2,. The influence on the function of the system is small, and maintenance management can be performed easily.

また、ログ管理装置9は、各ログ登録サーバ11−1、11−2、…、がログ収集及びログ加工処理の処理負荷を分担するので、各ウェブサーバ7やログ格納サーバ13にログ収集に関する処理負荷をかけることなく安定したログ収集管理を行うことができる。   In addition, since each log registration server 11-1, 11-2,... Shares the processing load of log collection and log processing, the log management device 9 relates to log collection to each web server 7 or log storage server 13. Stable log collection and management can be performed without applying a processing load.

また、ログ管理装置9のログ格納サーバ13は、ログ収集処理が可能な状態になった各ログ登録サーバ11−1、11−2、…、に対して、順次ログ収集先のウェブサーバ7や収集すべきログの種別を割り当てる指示を行うので、特定のログ登録サーバ11−1、11−2、…、にログ収集に関する処理負荷をかけることなく、ログ収集の効率化を図ることができる。   Further, the log storage server 13 of the log management device 9 sequentially applies the log collection destination web server 7 to each log registration server 11-1, 11-2,. Since an instruction to assign the type of log to be collected is given, the efficiency of log collection can be improved without placing a processing load on log collection on specific log registration servers 11-1, 11-2,.

また、ログ格納サーバ13は、ログ収集を行うレコードがない場合は、問い合わせ元のログ登録サーバ11−1、11−2、…、を待機状態にするので、当該ログ登録サーバ11−1、11−2、…、がログ格納サーバ13へ無駄にアクセスすることを防ぎ、ログ管理装置9の通信の効率化を図ることができる。即ち、ログ管理装置9の通信負荷(トラフィック)の増大を抑えることができる。また、ログ登録サーバ11−1、11−2、…、における問い合わせ処理等の処理負荷を軽減することができる。   In addition, when there is no record for log collection, the log storage server 13 sets the log registration servers 11-1, 11-2,... ,... Can be prevented from accessing the log storage server 13 in vain and communication efficiency of the log management device 9 can be improved. That is, an increase in communication load (traffic) of the log management device 9 can be suppressed. Further, it is possible to reduce processing load such as inquiry processing in the log registration servers 11-1, 11-2,.

尚、ログ格納サーバ13は、ログ登録DB19に格納されたログファイル20の加工、集計、統計、作表等のいずれかの処理を行い、ログ登録DB19に保存してもよい。また、ログ照会サーバ17から、ログ管理装置9に各種データの照会があった場合に、ログ格納サーバ13のログ照会出力手段41はログ登録DB19に登録された各種データを取得して提供するようにしてもよい。   Note that the log storage server 13 may perform any processing such as processing, aggregation, statistics, tabulation, and the like of the log file 20 stored in the log registration DB 19 and store it in the log registration DB 19. In addition, when various types of data are inquired from the log inquiry server 17 to the log management device 9, the log inquiry output means 41 of the log storage server 13 acquires and provides various types of data registered in the log registration DB 19. It may be.

また、上述の実施形態では、ログ格納サーバ13が、最終取込ログファイル名53を基にしてログ登録サーバ11−1、11−2、…、に収集すべきログを指示するものとして説明したが、ログ格納サーバ13は、収集すべきログの位置をポインタで指示するようにしてもよい。即ち、収集すべきログが1つのファイルであり、ログが作成される都度、そのファイルに追加されていく形式の場合には、ログ格納サーバ13は取得済みのログのファイル内の位置(ポインタ)を記録しておき、ポインタを基にして次に収集すべきログを指示すればよい。
また、上述の実施形態では、ログ登録サーバ11は、ログ格納サーバ13に問い合わせて、収集すべきログを特定するための情報を取得するものとして説明した。ここで、収集すべきログに関しては、ログ格納サーバ13が前回収集したログに関する情報をログ登録サーバ11に送り、ログ登録サーバ11側で次回収集すべきログを判断してもよい。あるいは、ログ格納サーバ13側で次回収集すべきログを判断して直接ログ登録サーバ11に指示してもよい。
In the above-described embodiment, the log storage server 13 has been described as instructing the logs to be collected to the log registration servers 11-1, 11-2,... Based on the final captured log file name 53. However, the log storage server 13 may indicate the position of the log to be collected with a pointer. That is, if the log to be collected is a single file and is added to the file each time the log is created, the log storage server 13 positions the acquired log in the file (pointer). Is recorded, and the next log to be collected may be indicated based on the pointer.
Further, in the above-described embodiment, the log registration server 11 has been described as inquiring the log storage server 13 to acquire information for specifying a log to be collected. Here, regarding the log to be collected, the log storage server 13 may send information about the log collected last time to the log registration server 11, and the log registration server 11 may determine the log to be collected next time. Alternatively, the log storage server 13 may determine the log to be collected next time and directly instruct the log registration server 11.

以上、添付図面を参照しながら、本発明にかかるログ管理装置の好適な実施形態について説明したが、本発明はかかる例に限定されない。当業者であれば、本願で開示した技術的思想の範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   The preferred embodiments of the log management apparatus according to the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to such examples. It will be apparent to those skilled in the art that various changes or modifications can be conceived within the scope of the technical idea disclosed in the present application, and these are naturally within the technical scope of the present invention. Understood.

ログ収集管理システム1の構成図Configuration diagram of log collection management system 1 ウェブサーバ7−1の構成図Configuration diagram of web server 7-1 ログ登録サーバ11−1の構成図Configuration diagram of log registration server 11-1 ログ格納サーバ13の構成図Configuration diagram of log storage server 13 ログ登録サーバ11−1、11−2、…、及びウェブサーバ7−1、7−2、…、及びログ格納サーバ13のハードウェア構成を示す図The log registration servers 11-1, 11-2,..., And the web servers 7-1, 7-2,. データベース15の構成を示す図The figure which shows the structure of the database 15 ログ収集履歴テーブル43を示す図The figure which shows the log collection log | history table 43 ログ収集管理システム1の動作を示すフローチャートFlow chart showing the operation of the log collection management system 1 ログ格納サーバ13の検索動作を示すフローチャートFlow chart showing search operation of log storage server 13 ログ登録サーバ11−1の待機を示すフローチャートFlow chart showing standby of log registration server 11-1 ログ検索テーブル59−1を示す図The figure which shows log search table 59-1 ログ検索テーブル59−2を示す図The figure which shows log search table 59-2 ログ検索テーブル59−3を示す図The figure which shows log search table 59-3

符号の説明Explanation of symbols

1………ログ収集管理システム
3………ネットワーク
5−1、5−2、…、………端末装置
7−1、7−2、…、………ウェブサーバ
9………ログ管理装置
11、11−1、11−2、…、………ログ登録サーバ
13………ログ格納サーバ
15………データベース
17………ログ照会サーバ
19………ログ登録DB
21………ログ管理DB
23………ログ収集問い合わせ手段
25………ログ収集手段
27………ログ加工手段
29………ログ送信手段
31………ログ作成手段
33………ログ出力手段
35………ログ収集指示手段
37………ログ受信手段
41………ログ照会出力手段
43………ログ収集履歴テーブル
45………ログ出力サーバ名
47………ログファイル種別
49………更新時間
51………処理状態
53………最終取込ログファイル名
55………経過時間
57………収集可否
101………CPU
103………メモリ
105………記憶部
107………表示部
109………入力部
111………出力部
113………通信部
115………システムバス
201〜209………レコード
DESCRIPTION OF SYMBOLS 1 ......... Log collection management system 3 ......... Network 5-1, 5-2, ..., ......... Terminal device 7-1, 7-2, ..., ... Web server 9 ......... Log management device 11, 11-1, 11-2,..., Log registration server 13, log storage server 15, database 17, log inquiry server 19, log registration DB
21 ... Log management DB
23 ......... Log collection inquiry means 25 ......... Log collection means 27 ......... Log processing means 29 ......... Log transmission means 31 ......... Log creation means 33 ......... Log output means 35 ......... Log collection instructions Means 37... Log receiving means 41... Log inquiry output means 43... Log collection history table 45... Log output server name 47... Log file type 49. Status 53 ......... Last capture log file name 55 ......... Elapsed time 57 ... …… Acceptability 101 ... …… CPU
103 ......... Memory 105 ......... Storage unit 107 ......... Display unit 109 ......... Input unit 111 ......... Output unit 113 ......... Communication unit 115 ......... System bus 201-209 ......... Record

Claims (8)

ログを出力する少なくとも1つのログ出力装置に接続され、前記ログ出力装置が出力するログを収集する少なくとも1つのログ登録装置と、前記ログ登録装置が収集したログを格納するログ格納装置と、を備えるログ管理装置であって、
前記ログ登録装置は、
前記ログ格納装置に対して、収集すべきログを特定するためのログ収集指示情報を問い合わせるログ収集問い合わせ手段と、
前記ログ格納装置から送られるログ収集指示情報に基づいて、前記ログ出力装置からログを収集するログ収集手段と、
前記収集されたログを加工するログ加工手段と、
前記加工されたログを前記ログ格納装置に送るログ送信手段と、を具備し、
前記ログ格納装置は、
前記ログの収集履歴に関するログ収集履歴情報を保持する保持手段と、
前記ログ登録装置から前記ログ収集指示情報の問い合わせを受けると、前記ログ収集履歴情報に基づいて、前記ログ収集指示情報を返すログ収集指示手段と、
前記ログ登録装置から送られるログを前記保持手段に格納するログ受信手段と、を具備し、
前記ログ収集指示手段は、収集すべきログが存在する可能性が低い前記ログ登録装置に対して、前記ログの収集に代えて所定時間(Z)の待機を指示することを特徴とするログ管理装置。
At least one log registration device that is connected to at least one log output device that outputs logs, and that collects logs output by the log output device; and a log storage device that stores logs collected by the log registration device; A log management device comprising:
The log registration device
Log collection inquiry means for making an inquiry to the log storage device for log collection instruction information for specifying a log to be collected;
Log collection means for collecting logs from the log output device based on log collection instruction information sent from the log storage device;
Log processing means for processing the collected logs;
Log transmission means for sending the processed log to the log storage device,
The log storage device
Holding means for holding log collection history information related to the log collection history;
A log collection instruction means for returning the log collection instruction information based on the log collection history information upon receiving an inquiry about the log collection instruction information from the log registration device;
Log receiving means for storing the log sent from the log registration device in the holding means,
The log collection instructing unit instructs the log registration device that is unlikely to have a log to be collected to wait for a predetermined time (Z) instead of collecting the log. apparatus.
前記ログ収集履歴情報は、前記ログ出力装置毎及びログ種別毎に前回収集されたログに関する情報を含み、
前記ログ格納装置のログ収集指示手段は、前記ログ収集指示情報として前回収集されたログに関する情報を前記ログ登録装置に送り、
前記ログ登録装置のログ収集手段は、前回収集されたログに関する情報に基づいて前記収集すべきログを特定することを特徴とする請求項1に記載のログ管理装置。
The log collection history information includes information on the log collected last time for each log output device and each log type,
The log collection instruction means of the log storage device sends information related to the log collected last time as the log collection instruction information to the log registration device,
The log management apparatus according to claim 1, wherein the log collection unit of the log registration apparatus specifies the log to be collected based on information on the previously collected log.
前記ログ収集問い合わせ手段は、前記所定時間(Z)の待機が終了するまで、前記ログ収集指示情報の問い合わせを行わないことを特徴とする請求項1または請求項2に記載のログ管理装置。   3. The log management apparatus according to claim 1, wherein the log collection inquiry unit does not make an inquiry about the log collection instruction information until waiting for the predetermined time (Z) is completed. 前記ログ収集履歴情報は、前記ログ出力装置毎及びログ種別毎に前回アクセス時におけるログ収集の成否に関する情報を含み、
前記ログ格納装置のログ収集指示手段は、前記前回アクセス時にログ収集を成功した前記ログ出力装置及びログ種別が存在せず、さらに、前記前回アクセス時にログ収集を失敗し、かつ、前記前回アクセス時からの経過時間が所定時間(Y)以上の前記ログ出力装置及びログ種別が存在しない場合、前記ログ登録装置に対して前記所定時間(Z)の待機を指示することを特徴とする請求項1から請求項3までのいずれかに記載のログ管理装置。
The log collection history information includes information on success or failure of log collection at the time of previous access for each log output device and each log type,
The log collection instructing means of the log storage device does not include the log output device and the log type that have succeeded in log collection at the previous access, and further fails to collect the log at the previous access, and at the time of the previous access 2. When the log output device and the log type with an elapsed time from a predetermined time (Y) or more are not present, the log registration device is instructed to wait for the predetermined time (Z). The log management device according to claim 3.
前記所定時間(Z)は、前記所定時間(Y)より大きいことを特徴とする請求項4に記載のログ管理装置。   The log management apparatus according to claim 4, wherein the predetermined time (Z) is longer than the predetermined time (Y). ログを出力する少なくとも1つのログ出力装置に接続され、前記ログ出力装置が出力するログを収集する少なくとも1つのログ登録装置と、前記ログ登録装置が収集したログを格納するログ格納装置と、を備えるログ管理装置によるログ管理方法であって、
前記ログ登録装置が実行する、
前記ログ格納装置に対して、収集すべきログを特定するためのログ収集指示情報を問い合わせるログ収集問い合わせステップと、
前記ログ格納装置から送られるログ収集指示情報に基づいて、前記ログ出力装置からログを収集するログ収集ステップと、
前記収集されたログを加工するログ加工ステップと、
前記加工されたログを前記ログ格納装置に送るログ送信ステップと、を具備し、
前記ログ格納装置が実行する、
前記ログの収集履歴に関するログ収集履歴情報を保持する保持ステップと、
前記ログ登録装置から前記ログ収集指示情報の問い合わせを受けると、前記ログ収集履歴情報に基づいて、前記ログ収集指示情報を返すログ収集指示ステップと、
前記ログ登録装置から送られるログを前記保持ステップに格納するログ受信ステップと、を具備し、
前記ログ収集指示ステップは、収集すべきログが存在する可能性が低い前記ログ登録装置に対して、前記ログの収集に代えて所定時間(Z)の待機を指示することを特徴とするログ管理方法。
At least one log registration device that is connected to at least one log output device that outputs logs, and that collects logs output by the log output device; and a log storage device that stores logs collected by the log registration device; A log management method by a log management device provided,
Executed by the log registration device;
A log collection inquiry step for inquiring log collection instruction information for specifying a log to be collected with respect to the log storage device;
A log collection step for collecting logs from the log output device based on log collection instruction information sent from the log storage device;
A log processing step for processing the collected logs;
A log transmission step of sending the processed log to the log storage device,
Executed by the log storage device;
A holding step for holding log collection history information related to the log collection history;
Upon receiving an inquiry about the log collection instruction information from the log registration device, a log collection instruction step for returning the log collection instruction information based on the log collection history information;
A log receiving step of storing the log sent from the log registration device in the holding step,
The log management instructing step instructs the log registration device that is unlikely to have a log to be collected to wait for a predetermined time (Z) instead of collecting the log. Method.
コンピュータを、請求項1から請求項5までのいずれかに記載のログ管理装置として機能させるプログラム。   A program for causing a computer to function as the log management apparatus according to any one of claims 1 to 5. コンピュータを、請求項1から請求項5までのいずれかに記載のログ管理装置として機能させるプログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium having recorded thereon a program that causes the computer to function as the log management device according to any one of claims 1 to 5.
JP2007036234A 2007-02-16 2007-02-16 Log management device, log management method, program, and recording medium Pending JP2008203942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007036234A JP2008203942A (en) 2007-02-16 2007-02-16 Log management device, log management method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007036234A JP2008203942A (en) 2007-02-16 2007-02-16 Log management device, log management method, program, and recording medium

Publications (1)

Publication Number Publication Date
JP2008203942A true JP2008203942A (en) 2008-09-04

Family

ID=39781422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007036234A Pending JP2008203942A (en) 2007-02-16 2007-02-16 Log management device, log management method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP2008203942A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013003950A (en) * 2011-06-20 2013-01-07 Nippon Telegr & Teleph Corp <Ntt> Decentralized processing system, log collection server, log collection method, and program
CN112912877A (en) * 2018-09-03 2021-06-04 松下电器产业株式会社 Log output device, log output method, and log output system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013003950A (en) * 2011-06-20 2013-01-07 Nippon Telegr & Teleph Corp <Ntt> Decentralized processing system, log collection server, log collection method, and program
CN112912877A (en) * 2018-09-03 2021-06-04 松下电器产业株式会社 Log output device, log output method, and log output system
CN112912877B (en) * 2018-09-03 2024-06-04 松下控股株式会社 Log output device, log output method, and log output system

Similar Documents

Publication Publication Date Title
EP1974529B1 (en) Method and apparatus for collecting data for characterizing http session workloads
US7979407B2 (en) Publication of informational messages to software applications in a computing environment
JP3980596B2 (en) Method and system for remotely and dynamically configuring a server
JP4881760B2 (en) Log management apparatus, log management method, program, and recording medium
US8099379B2 (en) Performance evaluating apparatus, performance evaluating method, and program
US7376953B2 (en) Apparatus and method for routing a transaction to a server
US7886295B2 (en) Connection manager, method, system and program product for centrally managing computer applications
JP2009519523A (en) Method, system, and computer program for monitoring the performance of a target virtual operating system within a virtual data center complex
US20070112951A1 (en) Automatic website workload management
EP1701265A1 (en) Cross-system activity logging in a distributed system environment
US20040268176A1 (en) System and method for testing servers and taking remedial action
CN115250233B (en) Gray scale routing control method, gray scale routing assembly and computer equipment
JP2008203942A (en) Log management device, log management method, program, and recording medium
US8438271B2 (en) Performing services in a network data processing system
CN111800511A (en) Processing method, system, equipment and readable storage medium for synchronous login state
JP2006301769A (en) Server device
JP4856949B2 (en) Failover method, failover program, and cluster system
CN108170561A (en) A kind of disaster-tolerant backup method, apparatus and system
CN113067878A (en) Information acquisition method, information acquisition device, information acquisition apparatus, information acquisition medium, and program product
US20020161893A1 (en) Switched session management using local persistence in an automated and distributed replication system
JP4451339B2 (en) Load balancing system and load balancing method
JP2009175828A (en) Log capture system, log capture method, program and recording medium
US11567800B2 (en) Early identification of problems in execution of background processes
JP2001005795A (en) Method for detecting abnormality in distributed system
JP2009175827A (en) Log capture system, log capture method, program and recording medium