JP6957396B2 - Management device, server device, log management method, management program and server program - Google Patents
Management device, server device, log management method, management program and server program Download PDFInfo
- Publication number
- JP6957396B2 JP6957396B2 JP2018056046A JP2018056046A JP6957396B2 JP 6957396 B2 JP6957396 B2 JP 6957396B2 JP 2018056046 A JP2018056046 A JP 2018056046A JP 2018056046 A JP2018056046 A JP 2018056046A JP 6957396 B2 JP6957396 B2 JP 6957396B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- server
- identifier
- management device
- server device
- 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.)
- Active
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、管理装置、サーバ装置、ログ管理方法、管理プログラムおよびサーバプログラムに関するものである。 The present invention relates to a management device, a server device, a log management method, a management program, and a server program.
特許文献1には、互いに連携して動作する複数のサーバのそれぞれがログを作成する技術が開示されている。
複数のサーバが連携するシステムの動作状況を判断する場合、各サーバで実行されたイベントの処理結果について、「送信」および「受信」等、対応するものを関連付けて把握する必要があるが、次のような理由により困難である。 When determining the operating status of a system in which multiple servers are linked, it is necessary to understand the processing results of events executed on each server by associating the corresponding ones such as "send" and "receive". It is difficult for such reasons.
各サーバはマルチタスクで動作するので、各種イベントのログが入り乱れて記録される上、各サーバのOS時刻はNTP等を用いてもミリ秒単位では一致しないため、ログに記録されたイベントの順序および発生日時等から関連付けを把握することは難しい。「OS」は、Operating Systemの略語である。「NTP」は、Network Time Protocolの略語である。 Since each server operates in multitasking, logs of various events are recorded in a mixed manner, and the OS time of each server does not match in milliseconds even if NTP etc. is used, so the order of the events recorded in the log. And it is difficult to grasp the association from the date and time of occurrence. "OS" is an abbreviation for Operating System. "NTP" is an abbreviation for Network Time Protocol.
特に、昨今のシステムを構成するサーバでは、オープン化の流れにより、Windows(登録商標)およびLinux(登録商標)といった様々なOSの上で、IIS、Tomcat、Oracle(登録商標)といった様々なソフトウェアが使用されている。「IIS」は、Internet Information Servicesの略語である。各サーバはそれぞれが閉じた世界で管理されており、他のサーバとの関連を把握するための機能は備わっていない。すべてのサーバにて共通で用いられ、動作の関連を把握するために使うことができる情報は、システム時刻しかないのが現状である。 In particular, in the servers that make up recent systems, various software such as IIS, Tomcat, and Oracle (registered trademark) are available on various OSs such as Windows (registered trademark) and Linux (registered trademark) due to the trend of openness. in use. "IIS" is an abbreviation for Internet Information Services. Each server is managed in a closed world, and there is no function to grasp the relationship with other servers. At present, the only information that is commonly used by all servers and can be used to understand the relationship between operations is the system time.
このような状況では、サーバ間の一連の動作の流れを把握しづらいため、障害発生時の問題箇所の把握が困難となる。サーバ間の動作を関連付ける際の助けとなるシステム時刻も、NTP等を用いてもミリ秒単位で合わせることは難しい上に、1秒間に多数のログを出力するサーバもあるため、関連付けを明確に判断するための情報としては不十分である。 In such a situation, it is difficult to grasp the flow of a series of operations between the servers, so that it is difficult to grasp the problematic part when a failure occurs. It is difficult to set the system time, which helps when associating operations between servers, in milliseconds even using NTP, etc., and some servers output a large number of logs per second, so the association is clear. It is insufficient as information for judgment.
本発明は、サーバ間で連携して実行される一連の処理を明確に関連付けることを目的とする。 An object of the present invention is to clearly associate a series of processes executed in cooperation between servers.
本発明の一態様に係る管理装置は、
互いに連携して個別の処理を実行する複数のサーバ装置から、各サーバ装置で実行される処理の種別をイベントとして通知する要求データを受信する受信部と、
メモリに記憶した設定情報において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータが前記要求データとして前記受信部により受信された場合に、識別子を付与し、付与した識別子を含む第1応答データを前記要求データの送信元のサーバ装置に送信する第1送信部と、
前記一連のイベントのうち、2番目以降のイベントを通知するデータが前記要求データとして前記受信部により受信された場合に、前記第1送信部により付与済の識別子を利用するよう指示する第2応答データを前記要求データの送信元のサーバ装置に送信する第2送信部と
を備える。
The management device according to one aspect of the present invention is
A receiver that receives request data that notifies the type of processing executed by each server device as an event from multiple server devices that execute individual processes in cooperation with each other.
When the data for notifying the first event of a series of events classified into the same group in the setting information stored in the memory and the order in the corresponding group is defined is received by the receiving unit as the request data. A first transmission unit that assigns an identifier to the server and transmits the first response data including the assigned identifier to the server device that is the source of the request data.
When the data notifying the second and subsequent events in the series of events is received by the receiving unit as the request data, the second response instructing to use the identifier given by the first transmitting unit. It includes a second transmission unit that transmits data to the server device that transmits the request data.
前記第1送信部は、付与した識別子を含むとともに、付与した識別子を、前記要求データの送信元のサーバ装置で実行される処理の次の処理を実行する他のサーバ装置に通知するよう指示するデータを前記第1応答データとして送信し、
前記第2送信部は、前記要求データの送信元のサーバ装置で実行される処理の前の処理を実行する他のサーバ装置から通知される識別子を利用するよう指示するデータを前記第2応答データとして送信する。
The first transmission unit includes the assigned identifier, and instructs other server devices that execute the next process of the process executed by the server device that transmits the request data to notify the assigned identifier. The data is transmitted as the first response data,
The second response data is data instructing the second transmission unit to use an identifier notified from another server device that executes a process before the process executed by the server device that is the source of the request data. Send as.
前記第2送信部は、前記一連のイベントのうち、2番目以降で最後以外のイベントを通知するデータが前記要求データとして前記受信部により受信された場合は、前記要求データの送信元のサーバ装置で実行される処理の前の処理を実行する他のサーバ装置から通知される識別子を利用するよう指示するとともに、通知される識別子を、前記要求データの送信元のサーバ装置で実行される処理の次の処理を実行する他のサーバ装置に通知するよう指示するデータを前記第2応答データとして送信する。 When the data for notifying the second and subsequent events other than the last of the series of events is received by the receiving unit as the request data, the second transmitting unit is the server device of the source of the request data. Instructs to use the identifier notified from the other server device that executes the process before the process executed in, and the notified identifier is the process executed by the server device that sends the request data. The data instructing the other server device that executes the next process to be notified is transmitted as the second response data.
前記第1送信部は、識別子を付与する日時の情報を、付与する識別子に含める。 The first transmission unit includes information on the date and time when the identifier is given in the identifier to be given.
前記第1送信部は、前記メモリに記憶したカウント番号を、付与する識別子に含めてから、前記メモリに記憶したカウント番号をインクリメントする。 The first transmission unit includes the count number stored in the memory in the identifier to be assigned, and then increments the count number stored in the memory.
前記第1送信部は、日付が変わるときに、前記メモリに記憶したカウント番号を初期値にリセットする。 When the date changes, the first transmission unit resets the count number stored in the memory to an initial value.
前記第1送信部は、前記メモリに記憶したカウント番号とともに、前記メモリに記憶したリセット番号を、付与する識別子に含め、前記メモリに記憶したカウント番号が最大値に達している場合は、前記メモリに記憶したカウント番号をインクリメントする代わりに初期値にリセットするとともに、前記メモリに記憶したリセット番号をインクリメントする。 The first transmission unit includes the count number stored in the memory and the reset number stored in the memory in the identifier to be assigned, and when the count number stored in the memory reaches the maximum value, the memory Instead of incrementing the count number stored in, the initial value is reset, and the reset number stored in the memory is incremented.
前記第1送信部は、日付が変わるときに、前記メモリに記憶したリセット番号を初期値にリセットする。 When the date changes, the first transmission unit resets the reset number stored in the memory to the initial value.
本発明の一態様に係る、他のサーバ装置と連携して処理を実行するサーバ装置は、
前記処理の種別をイベントとして通知する要求データを、識別子を付与する管理装置に送信する送信部と、
同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータが前記要求データとして前記送信部により送信された場合に、前記管理装置から、前記管理装置により付与された識別子を含む第1応答データを受信する第1受信部と、
前記一連のイベントのうち、2番目以降のイベントを通知するデータが前記要求データとして前記送信部により送信された場合に、前記管理装置から、前記管理装置により付与済の識別子を利用するよう指示する第2応答データを受信するとともに、前記処理の前の処理を実行する他のサーバ装置から、前記管理装置により付与済の識別子を通知する呼出しデータを受信する第2受信部と、
前記第1応答データが前記第1受信部により受信された場合は、前記処理を実行するとともに、前記第1応答データに含まれる識別子を記録したログを出力し、前記第2応答データが前記第2受信部により受信された場合は、前記処理を実行するとともに、前記呼出しデータによって通知された識別子を記録したログを出力する実行部と
を備える。
A server device that executes processing in cooperation with another server device according to one aspect of the present invention is
A transmission unit that transmits request data for notifying the type of processing as an event to a management device to which an identifier is assigned.
When the data for notifying the first event of a series of events classified into the same group and the order in the corresponding group is defined is transmitted as the request data by the transmission unit, the management device can display the data. A first receiving unit that receives the first response data including the identifier given by the management device, and
When the data notifying the second and subsequent events in the series of events is transmitted by the transmission unit as the request data, the management device instructs the management device to use the identifier given by the management device. A second receiving unit that receives the second response data and also receives the call data notifying the identifier assigned by the management device from another server device that executes the process before the process.
When the first response data is received by the first receiving unit, the process is executed and a log recording an identifier included in the first response data is output, and the second response data is the second response data. (2) When received by the receiving unit, it includes an executing unit that executes the processing and outputs a log recording the identifier notified by the calling data.
前記第1受信部は、前記管理装置により付与された識別子を含むとともに、付与された識別子を、前記処理の次の処理を実行する他のサーバ装置に通知するよう指示するデータを前記第1応答データとして受信し、
前記送信部は、前記第1応答データが前記第1受信部により受信された場合は、前記第1応答データに含まれる識別子を通知する呼出しデータを、前記処理の次の処理を実行する他のサーバ装置に送信する。
The first receiving unit includes the identifier given by the management device, and sends data instructing the other server device that executes the next process of the process to notify the assigned identifier to the first response. Received as data
When the first response data is received by the first receiving unit, the transmitting unit executes the call data notifying the identifier included in the first response data to the next processing of the processing. Send to the server device.
前記送信部は、前記第2応答データが前記第2受信部により受信された場合は、前記処理の次の処理があれば、前記呼出しデータによって通知された識別子を通知する別の呼出しデータを生成し、生成した呼出しデータを、前記処理の次の処理を実行する他のサーバ装置に送信する。 When the second response data is received by the second receiving unit, the transmitting unit generates another calling data notifying the identifier notified by the calling data if there is a next processing of the processing. Then, the generated call data is transmitted to another server device that executes the next process of the process.
本発明の一態様に係るログ管理方法では、
互いに連携して個別の処理を実行する複数のサーバ装置が、各サーバ装置で実行される処理の種別をイベントとして通知する要求データを、識別子を付与する管理装置に送信し、
前記管理装置が、同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータを前記要求データとして受信した場合に、識別子を付与し、付与した識別子を含む第1応答データを前記要求データの送信元のサーバ装置に送信し、
各サーバ装置が、前記第1応答データを受信した場合に、各サーバ装置の処理を実行するとともに、前記第1応答データに含まれる識別子を記録したログを出力し、
前記管理装置が、前記一連のイベントのうち、2番目以降のイベントを通知するデータを前記要求データとして受信した場合に、前記管理装置により付与済の識別子を利用するよう指示する第2応答データを前記要求データの送信元のサーバ装置に送信し、
各サーバ装置が、前記第2応答データを受信した場合に、各サーバ装置の処理の前の処理を実行する他のサーバ装置から、前記管理装置により付与済の識別子を通知する呼出しデータを受信し、各サーバ装置の処理を実行するとともに、前記呼出しデータによって通知された識別子を記録したログを出力する。
In the log management method according to one aspect of the present invention,
Multiple server devices that execute individual processes in cooperation with each other send request data that notifies the type of process executed by each server device as an event to the management device that assigns an identifier.
When the management device receives data notifying the first event of a series of events classified into the same group and whose order is defined in the group as the request data, an identifier is assigned. The first response data including the assigned identifier is transmitted to the server device that is the source of the request data, and the data is transmitted.
When each server device receives the first response data, the processing of each server device is executed, and a log recording the identifier included in the first response data is output.
When the management device receives data notifying the second and subsequent events in the series of events as the request data, the second response data instructing the management device to use the identifier assigned by the management device is provided. It is transmitted to the server device that is the source of the request data, and
When each server device receives the second response data, it receives call data notifying the identifier assigned by the management device from another server device that executes the processing before the processing of each server device. , The processing of each server device is executed, and the log recording the identifier notified by the call data is output.
本発明の一態様に係る管理プログラムは、
コンピュータに、
互いに連携して個別の処理を実行する複数のサーバ装置から、各サーバ装置で実行される処理の種別をイベントとして通知する要求データを受信する受信手順と、
メモリに記憶した設定情報において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータが前記要求データとして前記受信手順により受信された場合に、識別子を付与し、付与した識別子を含む第1応答データを前記要求データの送信元のサーバ装置に送信する第1送信手順と、
前記一連のイベントのうち、2番目以降のイベントを通知するデータが前記要求データとして前記受信手順により受信された場合に、前記第1送信手順により付与済の識別子を利用するよう指示する第2応答データを前記要求データの送信元のサーバ装置に送信する第2送信手順と
を実行させる。
The management program according to one aspect of the present invention is
On the computer
A reception procedure for receiving request data that notifies the type of processing executed by each server device as an event from multiple server devices that execute individual processes in cooperation with each other.
When the data notifying the first event of a series of events classified into the same group in the setting information stored in the memory and the order in the corresponding group is defined is received as the request data by the reception procedure. The first transmission procedure of assigning an identifier to the server and transmitting the first response data including the assigned identifier to the server device that is the source of the request data.
When the data notifying the second and subsequent events in the series of events is received as the request data by the receiving procedure, the second response instructing to use the identifier given by the first transmitting procedure. The second transmission procedure of transmitting the data to the server device that transmits the request data is executed.
本発明の一態様に係るサーバプログラムは、
他のサーバ装置と連携して処理を実行するサーバ装置であるコンピュータに、
前記処理の種別をイベントとして通知する要求データを、識別子を付与する管理装置に送信する送信手順と、
同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータが前記要求データとして前記送信手順により送信された場合に、前記管理装置から、前記管理装置により付与された識別子を含む第1応答データを受信する第1受信手順と、
前記一連のイベントのうち、2番目以降のイベントを通知するデータが前記要求データとして前記送信手順により送信された場合に、前記管理装置から、前記管理装置により付与済の識別子を利用するよう指示する第2応答データを受信するとともに、前記処理の前の処理を実行する他のサーバ装置から、前記管理装置により付与済の識別子を通知する呼出しデータを受信する第2受信手順と、
前記第1応答データが前記第1受信手順により受信された場合は、前記処理を実行するとともに、前記第1応答データに含まれる識別子を記録したログを出力し、前記第2応答データが前記第2受信手順により受信された場合は、前記処理を実行するとともに、前記呼出しデータによって通知された識別子を記録したログを出力する実行手順と
を実行させる。
The server program according to one aspect of the present invention
To a computer that is a server device that executes processing in cooperation with other server devices
A transmission procedure for transmitting request data for notifying the type of processing as an event to a management device to which an identifier is assigned, and
When the data notifying the first event of a series of events classified into the same group and the order in the corresponding group is defined is transmitted as the request data by the transmission procedure, the management device can display the data. The first receiving procedure for receiving the first response data including the identifier given by the management device, and
When the data notifying the second and subsequent events in the series of events is transmitted as the request data by the transmission procedure, the management device instructs the management device to use the identifier given by the management device. A second reception procedure for receiving the second response data and receiving call data notifying the identifier assigned by the management device from another server device that executes the process before the process.
When the first response data is received by the first reception procedure, the process is executed and a log recording the identifier included in the first response data is output, and the second response data is the first response data. (2) When the data is received by the receiving procedure, the processing is executed and the execution procedure of outputting the log recording the identifier notified by the calling data is executed.
本発明では、サーバ間で連携して実行される一連の処理が識別子によってグループ化される。そのため、本発明によれば、これら一連の処理を明確に関連付けることができる。 In the present invention, a series of processes executed in cooperation between servers are grouped by an identifier. Therefore, according to the present invention, these series of processes can be clearly related.
以下、本発明の実施の形態について、図を用いて説明する。各図中、同一または相当する部分には、同一符号を付している。実施の形態の説明において、同一または相当する部分については、説明を適宜省略または簡略化する。なお、本発明は、以下に説明する実施の形態に限定されるものではなく、必要に応じて種々の変更が可能である。例えば、以下に説明する実施の形態は、部分的に実施されても構わない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In each figure, the same or corresponding parts are designated by the same reference numerals. In the description of the embodiment, the description will be omitted or simplified as appropriate for the same or corresponding parts. The present invention is not limited to the embodiments described below, and various modifications can be made as needed. For example, the embodiments described below may be partially implemented.
実施の形態1.
本実施の形態について、図1から図5を用いて説明する。
The present embodiment will be described with reference to FIGS. 1 to 5.
***構成の説明***
図1を参照して、本実施の形態に係るログ管理システム100の構成を説明する。
*** Explanation of configuration ***
The configuration of the
ログ管理システム100は、識別子をグループIDとして付与する管理装置200と、互いに連携して個別の処理を実行する複数のサーバ装置300とを備える。「ID」は、Identifierの略語である。
The
管理装置200と各サーバ装置300とは、図示していないインターネット等のネットワークを介して互いに通信を行う。サーバ装置300同士は、図示していないLAN等のネットワークを介して互いに通信を行う。「LAN」は、Local Area Networkの略語である。
The
図2を参照して、本実施の形態に係る管理装置200の構成を説明する。
The configuration of the
管理装置200は、コンピュータである。管理装置200は、具体的には、クラウドサーバ等のサーバコンピュータである。管理装置200は、プロセッサ201を備えるとともに、メモリ202および通信デバイス203といった他のハードウェアを備える。プロセッサ201は、信号線を介して他のハードウェアと接続され、これら他のハードウェアを制御する。
The
管理装置200は、機能要素として、受信部210と、第1送信部211と、第2送信部212とを備える。受信部210、第1送信部211および第2送信部212の機能は、ソフトウェアにより実現される。具体的には、受信部210、第1送信部211および第2送信部212の機能は、管理プログラムにより実現される。管理プログラムは、受信部210、第1送信部211および第2送信部212により行われる手順をそれぞれ受信手順、第1送信手順および第2送信手順としてコンピュータに実行させるプログラムである。管理プログラムは、コンピュータ読取可能な媒体に記録されて提供されてもよいし、記録媒体に格納されて提供されてもよいし、プログラムプロダクトとして提供されてもよい。
The
プロセッサ201は、管理プログラムを実行する装置である。プロセッサ201は、例えば、CPUである。「CPU」は、Central Processing Unitの略語である。
The
メモリ202は、管理プログラムをあらかじめまたは一時的に記憶する装置である。メモリ202は、例えば、RAM、フラッシュメモリまたはこれらの組み合わせである。「RAM」は、Random Access Memoryの略語である。
The
通信デバイス203は、管理プログラムに入力されるデータを受信するレシーバと、管理プログラムから出力されるデータを送信するトランスミッタとを備える。通信デバイス203は、例えば、通信チップまたはNICである。「NIC」は、Network Interface Cardの略語である。
The
管理装置200は、ハードウェアとして、入力機器およびディスプレイを備えていてもよい。
The
入力機器は、管理プログラムへのデータの入力のためにユーザにより操作される機器である。入力機器は、例えば、マウス、キーボード、タッチパネル、または、これらのうちいくつか、もしくは、すべての組み合わせである。 An input device is a device operated by a user to input data into a management program. The input device is, for example, a mouse, a keyboard, a touch panel, or a combination of some or all of them.
ディスプレイは、管理プログラムから出力されるデータを画面に表示する機器である。ディスプレイは、例えば、LCDである。「LCD」は、Liquid Crystal Displayの略語である。 A display is a device that displays data output from a management program on a screen. The display is, for example, an LCD. "LCD" is an abbreviation for Liquid Crystal Display.
管理プログラムは、メモリ202からプロセッサ201に読み込まれ、プロセッサ201によって実行される。メモリ202には、管理プログラムだけでなく、OSも記憶されている。プロセッサ201は、OSを実行しながら、管理プログラムを実行する。なお、管理プログラムの一部または全部がOSに組み込まれていてもよい。
The management program is read from the
管理プログラムおよびOSは、補助記憶装置に記憶されていてもよい。補助記憶装置は、例えば、HDD、フラッシュメモリまたはこれらの組み合わせである。「HDD」は、Hard Disk Driveの略語である。管理プログラムおよびOSは、補助記憶装置に記憶されている場合、メモリ202にロードされ、プロセッサ201によって実行される。
The management program and the OS may be stored in the auxiliary storage device. The auxiliary storage device is, for example, an HDD, a flash memory, or a combination thereof. "HDD" is an abbreviation for Hard Disk Drive. When stored in the auxiliary storage device, the management program and the OS are loaded into the
管理装置200は、プロセッサ201を代替する複数のプロセッサを備えていてもよい。これら複数のプロセッサは、管理プログラムの実行を分担する。それぞれのプロセッサは、例えば、CPUである。
The
管理プログラムにより利用、処理または出力されるデータ、情報、信号値および変数値は、メモリ202、補助記憶装置、または、プロセッサ201内のレジスタまたはキャッシュメモリに記憶される。本実施の形態では、少なくとも関連イベント設定ファイル220、カウント番号221およびリセット番号222がメモリ202に記憶される。
Data, information, signal values and variable values used, processed or output by the management program are stored in the
管理装置200は、1台のコンピュータで構成されていてもよいし、複数台のコンピュータで構成されていてもよい。管理装置200が複数台のコンピュータで構成されている場合は、受信部210、第1送信部211および第2送信部212の機能が、各コンピュータに分散されて実現されてもよい。
The
図3を参照して、本実施の形態に係るサーバ装置300の構成を説明する。
The configuration of the
サーバ装置300は、コンピュータである。サーバ装置300は、具体的には、ウェブサーバ、アプリケーションサーバ、データベースサーバ等のサーバコンピュータである。サーバ装置300は、プロセッサ301を備えるとともに、メモリ302および通信デバイス303といった他のハードウェアを備える。プロセッサ301は、信号線を介して他のハードウェアと接続され、これら他のハードウェアを制御する。
The
サーバ装置300は、機能要素として、送信部310と、第1受信部311と、第2受信部312と、実行部313とを備える。送信部310、第1受信部311、第2受信部312および実行部313の機能は、ソフトウェアにより実現される。具体的には、送信部310、第1受信部311、第2受信部312および実行部313の機能は、サーバプログラムにより実現される。サーバプログラムは、送信部310、第1受信部311、第2受信部312および実行部313により行われる手順をそれぞれ受信手順、第1送信手順および第2送信手順としてコンピュータに実行させるプログラムである。サーバプログラムは、コンピュータ読取可能な媒体に記録されて提供されてもよいし、記録媒体に格納されて提供されてもよいし、プログラムプロダクトとして提供されてもよい。
The
プロセッサ301は、サーバプログラムを実行する装置である。プロセッサ301は、例えば、CPUである。
The
メモリ302は、サーバプログラムをあらかじめまたは一時的に記憶する装置である。メモリ302は、例えば、RAM、フラッシュメモリまたはこれらの組み合わせである。
The
通信デバイス303は、サーバプログラムに入力されるデータを受信するレシーバと、サーバプログラムから出力されるデータを送信するトランスミッタとを備える。通信デバイス303は、例えば、通信チップまたはNICである。
The
サーバ装置300は、ハードウェアとして、入力機器およびディスプレイを備えていてもよい。
The
入力機器は、サーバプログラムへのデータの入力のためにユーザにより操作される機器である。入力機器は、例えば、マウス、キーボード、タッチパネル、または、これらのうちいくつか、もしくは、すべての組み合わせである。 An input device is a device operated by a user to input data into a server program. The input device is, for example, a mouse, a keyboard, a touch panel, or a combination of some or all of them.
ディスプレイは、サーバプログラムから出力されるデータを画面に表示する機器である。ディスプレイは、例えば、LCDである。 A display is a device that displays data output from a server program on a screen. The display is, for example, an LCD.
サーバプログラムは、メモリ302からプロセッサ301に読み込まれ、プロセッサ301によって実行される。メモリ302には、サーバプログラムだけでなく、OSも記憶されている。プロセッサ301は、OSを実行しながら、サーバプログラムを実行する。なお、サーバプログラムの一部または全部がOSに組み込まれていてもよい。
The server program is read from
サーバプログラムおよびOSは、補助記憶装置に記憶されていてもよい。補助記憶装置は、例えば、HDD、フラッシュメモリまたはこれらの組み合わせである。サーバプログラムおよびOSは、補助記憶装置に記憶されている場合、メモリ302にロードされ、プロセッサ301によって実行される。
The server program and the OS may be stored in the auxiliary storage device. The auxiliary storage device is, for example, an HDD, a flash memory, or a combination thereof. When stored in the auxiliary storage device, the server program and the OS are loaded into the
サーバ装置300は、プロセッサ301を代替する複数のプロセッサを備えていてもよい。これら複数のプロセッサは、サーバプログラムの実行を分担する。それぞれのプロセッサは、例えば、CPUである。
The
サーバプログラムにより利用、処理または出力されるデータ、情報、信号値および変数値は、メモリ302、補助記憶装置、または、プロセッサ301内のレジスタまたはキャッシュメモリに記憶される。本実施の形態では、少なくともログファイル320がメモリ302に記憶される。
Data, information, signal values and variable values used, processed or output by the server program are stored in the
サーバ装置300は、1台のコンピュータで構成されていてもよいし、複数台のコンピュータで構成されていてもよい。サーバ装置300が複数台のコンピュータで構成されている場合は、送信部310、第1受信部311、第2受信部312および実行部313の機能が、各コンピュータに分散されて実現されてもよい。
The
***動作の説明***
図1を参照して、本実施の形態に係るログ管理システム100の動作を説明する。ログ管理システム100の動作は、本実施の形態に係るログ管理方法に相当する。
*** Explanation of operation ***
The operation of the
本実施の形態は、複数のサーバ装置300が連携して動作するシステムにおいて、各サーバ装置300で実行される「送信」および「受信」等の関連するイベントをグループ化するものである。関連するイベントには、同一のグループIDが付与される。
In this embodiment, in a system in which a plurality of
グループIDを付与するためのサーバとして、管理装置200が配置される。管理装置200は、各サーバ装置300からの要求を受けてグループIDを返す。管理装置200は、グループに含まれる関連イベントの名称および順序の設定情報を関連イベント設定ファイル220として保持しており、各サーバ装置300に対してグループIDを付与すると同時にその伝達も指示する。
The
グループIDの付与とサーバ装置300間の伝達は、以下のような手順で実現する。
The assignment of the group ID and the transmission between the
手順は、実行するイベントの関連グループ内での位置が最初であるか、途中であるか、最後であるかによって異なる。 The procedure depends on whether the event to be executed is first, middle, or last in the related group.
3つの関連イベント「start」、「cmd1」および「cmd2」を実行する場合を例に説明する。 The case of executing the three related events "start", "cmd1", and "cmd2" will be described as an example.
ステップS11において、最初の処理Aを実行するサーバ装置300であるサーバAは、管理装置200に対し、グループIDを要求する。その際、サーバAは、付与対象のイベント名も通知する。ここでは、例として「start」が通知される。なお、サーバAは、実行する処理の種別とイベントの名称との対応関係を定義するファイルをあらかじめ保持しており、グループIDを要求する際に、このファイルを参照して、通知すべきイベント名「start」を得るものとする。
In step S11, the server A, which is the
ステップS12において、管理装置200は、関連イベント設定ファイル220を参照し、グループIDの付与を要求されたイベントがグループとして登録されているか、また、何番目に実行されるイベントかを調べる。管理装置200は、イベント「start」は「Group1」として登録されており、最初に実行され、次のイベントがあることを認識する。
In step S12, the
ステップS13において、イベント「start」が最初に実行され、次のイベントがあるため、管理装置200はグループIDおよび「next」をサーバAに返す。
In step S13, since the event "start" is executed first and there is the next event, the
ステップS14において、サーバAは「next」を受け、次のサーバ装置300であるサーバBへのコマンド「cmd1」に埋め込む形でグループIDを伝達する。
In step S14, the server A receives the "next" and transmits the group ID in the form of being embedded in the command "cmd1" to the server B which is the
ステップS15において、途中の処理Bを実行するサーバ装置300であるサーバBは、管理装置200に対し、グループIDを要求する。その際、サーバBは、付与対象のイベント名も通知する。ここでは、例として「cmd1」が通知される。なお、サーバBは、実行する処理の種別とイベントの名称との対応関係を定義するファイルをあらかじめ保持しており、グループIDを要求する際に、このファイルを参照して、通知すべきイベント名「cmd1」を得るものとする。
In step S15, the server B, which is the
ステップS16において、管理装置200は、関連イベント設定ファイル220を参照し、イベント「cmd1」は「Group1」として登録されており、2番目に実行され、次のイベントがあることを認識する。
In step S16, the
ステップS17において、イベント「cmd1」が最初のイベントではなく、次のイベントがあるため、管理装置200は「prev」および「next」をサーバBに返す。サーバBは「prev」を受け、直前のサーバ装置300であるサーバAからのコマンド「cmd1」からグループIDを取得する。
In step S17, the
ステップS18において、サーバBは「next」を受け、次のサーバ装置300であるサーバCへのコマンド「cmd2」に埋め込む形でグループIDを伝達する。なお、サーバCを動作させる必要がない状況では、サーバBは「next」を無視してもよい。すなわち、サーバBは「next」を受けたとしても、サーバCにグループIDを伝達するかどうかは独自に判断してよい。
In step S18, the server B receives the "next" and transmits the group ID in the form of being embedded in the command "cmd2" to the server C which is the
ステップS19において、最後の処理Cを実行するサーバ装置300であるサーバCは、管理装置200に対し、グループIDを要求する。その際、サーバCは、付与対象のイベント名も通知する。ここでは、例として「cmd2」が通知される。なお、サーバCは、実行する処理の種別とイベントの名称との対応関係を定義するファイルをあらかじめ保持しており、グループIDを要求する際に、このファイルを参照して、通知すべきイベント名「cmd2」を得るものとする。
In step S19, the server C, which is the
ステップS20において、管理装置200は、関連イベント設定ファイル220を参照し、イベント「cmd2」は「Group1」として登録されており、3番目に実行され、次のイベントがないことを認識する。
In step S20, the
ステップS21において、イベント「cmd2」が最初のイベントではなく、次のイベントがないため、管理装置200は「prev」および「none」をサーバCに返す。サーバCは「prev」を受け、直前のサーバ装置300であるサーバBからのコマンド「cmd2」からグループIDを取得する。
In step S21, the
図4を参照して、管理装置200の処理手順を説明する。
The processing procedure of the
ステップS31において、管理装置200は、関連イベント設定ファイル220を読み込む。
In step S31, the
ステップS32において、管理装置200は、グループID要求を受信する。
In step S32, the
ステップS33において、管理装置200は、返却値を決定する。
In step S33, the
ステップS34において、管理装置200は、要求元のサーバ装置300に返却値を送信する。
In step S34, the
返却値としては、値1および値2がある。
There are a
値1は、グループID要求で通知されたイベントが最初のイベントなら、そのイベントに対して新たに採番されたグループIDとなり、最初のイベント以外なら、直前のサーバ装置300から伝達されたグループIDを使うよう指示する「prev」となる。グループIDの採番については後述する。
The
値2は、グループID要求で通知されたイベントが最後のイベントなら、次のサーバ装置300へグループIDを伝達しないよう指示する「none」となり、最後のイベント以外なら、次のサーバ装置300へグループIDを伝達するよう指示する「next」となる。
The value 2 is "none" instructing the
本実施の形態では、図5に示すような年月日、リセット番号222およびカウント番号221を並べた数値がグループIDとして使用される。例として、年月日が「2018年2月14日」、リセット番号222が「0」、カウント番号221が「1」であれば、グループIDは「2018021400001」となる。
In the present embodiment, a numerical value in which the date, the reset number 222, and the
グループIDは、値が無限に大きくなることを防ぐため、先頭が年月日であり、24時間ごとにカウント番号221が「0」に戻される。管理装置200にて障害が起きた場合およびカウント番号221が最大値に達した場合を想定してリセット番号222の桁が設けられ、同じ日にカウント番号221をリセットしてもグループIDが重複しない仕組みが採用される。リセット番号222は管理装置200内のファイルに記録され、管理装置200を再起動しても引き継がれるが、日が変わると「0」に戻る。カウント番号221は既定で4桁だが、各サーバ装置300で発生するログが多い場合は桁数を増やしてもよい。
The group ID starts with the date and the
各サーバ装置300で共通のグループIDを使用するため、サーバ装置300間でグループIDを伝達する必要がある。本実施の形態では、グループIDは、次のサーバ装置300へのイベント命令に埋め込む形で伝達される。具体的には、グループIDは、Tomcat等のアプリケーションサーバに伝達される場合は、URLの引数として埋め込まれる。「URL」は、Uniform Resource Locatorの略語である。グループIDは、Oracle(登録商標)等のデータベースサーバに伝達される場合は、SQLのコメントとして埋め込まれる。
Since a common group ID is used by each
図1から図3を参照して、管理装置200およびサーバ装置300の各部の動作を説明する。
The operation of each part of the
ステップS11において、サーバBおよびサーバCといった他のサーバ装置300と連携して処理Aを実行するサーバ装置300であるサーバAの送信部310は、処理Aの種別をイベント「start」として通知する要求データ400を管理装置200に送信する。
In step S11, the
ステップS12において、管理装置200の受信部210は、サーバAから、サーバAで実行される処理Aの種別をイベント「start」として通知する要求データ400を受信する。管理装置200の第1送信部211は、メモリ202に記憶した関連イベント設定ファイル220において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベント「start」を通知するデータが要求データ400として受信部210により受信されたことを認識する。
In step S12, the receiving
ステップS13において、管理装置200の第1送信部211は、グループIDを付与し、付与したグループIDを含む第1応答データ401を要求データ400の送信元のサーバ装置300であるサーバAに送信する。本実施の形態では、第1送信部211は、付与したグループIDを含むとともに、付与したグループIDを、サーバAで実行される処理Aの次の処理Bを実行する他のサーバ装置300であるサーバBに通知するよう指示する、すなわち、「next」を含むデータを第1応答データ401として送信する。
In step S13, the
グループIDを付与する際に、第1送信部211は、グループIDを付与する日時の情報を、付与するグループIDに含める。具体的には、第1送信部211は、年月日を、付与するグループIDの先頭に配置する。また、第1送信部211は、メモリ202に記憶したカウント番号221を、付与するグループIDに含めてから、メモリ202に記憶したカウント番号221をインクリメントする。具体的には、第1送信部211は、メモリ202に記憶したカウント番号221を、付与するグループIDの最後尾に配置し、その後、メモリ202に記憶したカウント番号221を1インクリメントする。また、第1送信部211は、メモリ202に記憶したリセット番号222を、付与するグループIDに含める。具体的には、第1送信部211は、メモリ202に記憶したリセット番号222を、付与するグループIDの年月日とカウント番号221との間に配置する。第1送信部211は、メモリ202に記憶したカウント番号221が最大値に達している場合は、メモリ202に記憶したカウント番号221をインクリメントする代わりに初期値にリセットするとともに、メモリ202に記憶したリセット番号222をインクリメントする。具体的には、第1送信部211は、メモリ202に記憶したカウント番号221が「9999」に達している場合は、メモリ202に記憶したカウント番号221を1インクリメントする代わりに「0」にリセットするとともに、メモリ202に記憶したリセット番号222を1インクリメントする。
When assigning the group ID, the
なお、第1送信部211は、日付が変わるときに、メモリ202に記憶したカウント番号221およびリセット番号222を初期値にリセットする。具体的には、第1送信部211は、日付が変わるときに、メモリ202に記憶したカウント番号221およびリセット番号222を「0」にリセットする。
The
ステップS14において、サーバAの第1受信部311は、管理装置200から、管理装置200により付与されたグループIDを含む第1応答データ401を受信する。本実施の形態では、第1受信部311は、管理装置200により付与されたグループIDを含むとともに、付与されたグループIDをサーバBに通知するよう指示する、すなわち、「next」を含むデータを第1応答データ401として受信する。そのため、サーバAの送信部310は、第1応答データ401に含まれるグループIDを通知する呼出しデータ403をサーバBに送信する。
In step S14, the
サーバAの実行部313は、処理Aを実行するとともに、第1応答データ401に含まれるグループIDを記録したログをログファイル320に出力する。
The
ステップS15において、サーバAおよびサーバCといった他のサーバ装置300と連携して処理Bを実行するサーバ装置300であるサーバBの送信部310は、処理Bの種別をイベント「cmd1」として通知する要求データ400を管理装置200に送信する。
In step S15, the
ステップS16において、管理装置200の受信部210は、サーバBから、サーバBで実行される処理Bの種別をイベント「cmd1」として通知する要求データ400を受信する。管理装置200の第2送信部212は、メモリ202に記憶した関連イベント設定ファイル220において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、2番目以降のイベント「cmd1」を通知するデータが要求データ400として受信部210により受信されたことを認識する。本実施の形態では、第2送信部212は、メモリ202に記憶した関連イベント設定ファイル220において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、2番目以降で最後以外のイベント「cmd1」を通知するデータが要求データ400として受信部210により受信されたことを認識する。
In step S16, the receiving
ステップS17において、管理装置200の第2送信部212は、第1送信部211により付与済のグループIDを利用するよう指示する第2応答データ402を要求データ400の送信元のサーバ装置300であるサーバBに送信する。具体的には、第2送信部212は、サーバBで実行される処理Bの前の処理Aを実行する他のサーバ装置300であるサーバAから通知されるグループIDを利用するよう指示する、すなわち、「prev」を含むデータを第2応答データ402として送信する。本実施の形態では、第2送信部212は、サーバAから通知されるグループIDを利用するよう指示するとともに、通知されるグループIDを、サーバBで実行される処理Bの次の処理Cを実行する他のサーバ装置300であるサーバCに通知するよう指示する、すなわち、「next」を含むデータを第2応答データ402として送信する。
In step S17, the
ステップS18において、サーバBの第2受信部312は、管理装置200から、管理装置200により付与済のグループIDを利用するよう指示する第2応答データ402を受信するとともに、サーバAから、管理装置200により付与済のグループIDを通知する呼出しデータ403を受信する。本実施の形態では、第2受信部312は、サーバAから通知されるグループIDを利用するよう指示する、すなわち、「prev」を含むとともに、通知されるグループIDをサーバCに通知するよう指示する、すなわち、「next」を含むデータを第2応答データ402として受信する。そのため、サーバBの送信部310は、サーバAからの呼出しデータ403によって通知されたグループIDを通知する別の呼出しデータ403を生成し、生成した呼出しデータ403をサーバCに送信する。なお、処理Bの次の処理がなければ、送信部310は、呼出しデータ403を生成したり、送信したりしなくてよい。
In step S18, the
サーバBの実行部313は、処理Bを実行するとともに、呼出しデータ403によって通知されたグループIDを記録したログをログファイル320に出力する。
The
ステップS19において、サーバAおよびサーバBといった他のサーバ装置300と連携して処理Cを実行するサーバ装置300であるサーバCの送信部310は、処理Cの種別をイベント「cmd2」として通知する要求データ400を管理装置200に送信する。
In step S19, the
ステップS20において、管理装置200の受信部210は、サーバCから、サーバCで実行される処理Cの種別をイベント「cmd2」として通知する要求データ400を受信する。管理装置200の第2送信部212は、メモリ202に記憶した関連イベント設定ファイル220において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、2番目以降のイベント「cmd2」を通知するデータが要求データ400として受信部210により受信されたことを認識する。本実施の形態では、第2送信部212は、メモリ202に記憶した関連イベント設定ファイル220において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、最後のイベント「cmd2」を通知するデータが要求データ400として受信部210により受信されたことを認識する。
In step S20, the receiving
ステップS21において、管理装置200の第2送信部212は、第1送信部211により付与済のグループIDを利用するよう指示する第2応答データ402を要求データ400の送信元のサーバ装置300であるサーバCに送信する。具体的には、第2送信部212は、サーバCで実行される処理Cの前の処理Bを実行する他のサーバ装置300であるサーバBから通知されるグループIDを利用するよう指示する、すなわち、「prev」を含むデータを第2応答データ402として送信する。本実施の形態では、第2送信部212は、サーバBから通知されるグループIDを利用するよう指示するとともに、通知されるグループIDを他のサーバ装置300に通知しなくてよいことを通知する、すなわち、「none」を含むデータを第2応答データ402として送信する。
In step S21, the
サーバCの第2受信部312は、管理装置200から、管理装置200により付与済のグループIDを利用するよう指示する第2応答データ402を受信するとともに、サーバBから、管理装置200により付与済のグループIDを通知する呼出しデータ403を受信する。本実施の形態では、第2受信部312は、サーバBから通知されるグループIDを利用するよう指示する、すなわち、「prev」を含むとともに、通知されるグループIDを通知しなくてよいことを通知する、すなわち、「none」を含むデータを第2応答データ402として受信する。
The
サーバCの実行部313は、処理Cを実行するとともに、呼出しデータ403によって通知されたグループIDを記録したログをログファイル320に出力する。
The
なお、グループIDは、一連のイベントを1つのグループとして識別できれば、任意の形式でよく、変形例として、年月日、リセット番号222またはそれらの両方が含まれていなくてもよい。 The group ID may be in any format as long as a series of events can be identified as one group, and the date, reset number 222, or both of them may not be included as a modification.
図6および図7を参照して、本実施の形態の適用例を説明する。 An application example of this embodiment will be described with reference to FIGS. 6 and 7.
イベントのグループ化について、サーバ装置300として、Apache(登録商標)等のウェブサーバ、Tomcat等のアプリケーションサーバおよびOracle(登録商標)等のデータベースサーバが組み合わされたログ管理システム100を例に説明する。
The event grouping will be described by taking as an example a
この例において、ウェブクライアントは、ウェブサーバにアクセスする。ウェブサーバは、アプリケーションサーバ上のJava(登録商標)等のアプリケーションを呼び出す。アプリケーションサーバは、アプリケーションを実行し、アプリケーションがデータベースサーバを呼び出す。データベースサーバは、検索を実行し、検索結果をアプリケーションサーバに返す。各サーバ装置300は、管理装置200に対しグループIDを要求する。
In this example, the web client accesses the web server. The web server calls an application such as Java® on the application server. The application server runs the application and the application calls the database server. The database server performs the search and returns the search results to the application server. Each
管理装置200上の関連イベント設定ファイル220では、「Group1=WebAccess,AppExec,DBSearch」が設定されている。
In the related
ステップS41において、ウェブクライアントが、ウェブサーバを参照する。ステップS42において、ウェブサーバが、管理装置200に対し「ウェブアクセス」のグループIDを要求する。ステップS43において、管理装置200が、関連イベント設定ファイル220を参照し、「ウェブアクセス」のイベント名「WebAccess」がグループ内の処理として登録されており、1番目に実行される処理で、かつ、次の処理があるので、グループID「2018021400001」を生成し、「GID=2018021400001,next」を返す。ステップS44において、ウェブサーバが、グループID「2018021400001」を含むログをログファイル320に出力する。ステップS45において、ウェブサーバが、アプリケーションサーバに対しアプリケーション実行命令を送信する。このとき、ウェブサーバは、管理装置200のnext指示を受け、命令にグループID「2018021400001」を埋め込む。
In step S41, the web client refers to the web server. In step S42, the web server requests the
ステップS46において、アプリケーションサーバが、アプリケーションを実行する。ステップS47において、アプリケーションサーバが、管理装置200に対し「アプリケーション実行」のグループIDを要求する。ステップS48において、管理装置200が、関連イベント設定ファイル220を参照し、「アプリケーション実行」のイベント名「AppExec」がグループ内の処理として登録されており、2番目に実行される処理で、かつ、次の処理があるので、「GID=prev,next」を返す。ステップS49において、アプリケーションサーバが、prev指示を受け、アプリケーション実行命令からグループID「2018021400001」を取得する。ステップS50において、アプリケーションサーバが、グループID「2018021400001」を含むログをログファイル320に出力する。ステップS51において、アプリケーションサーバが、データベースサーバに対しデータベース検索命令を送信する。このとき、アプリケーションサーバは、管理装置200のnext指示を受け、命令にグループID「2018021400001」を埋め込む。
In step S46, the application server executes the application. In step S47, the application server requests the
ステップS52において、データベースサーバが、検索を実行する。ステップS53において、データベースサーバが、管理装置200に対し「データベース検索」のグループIDを要求する。ステップS54において、管理装置200が、関連イベント設定ファイル220を参照し、「データベース検索」のイベント名「DBSearch」がグループ内の処理として登録されており、3番目に実行される処理で、かつ、次の処理がないので、「GID=prev,none」を返す。ステップS55において、データベースサーバが、prev指示を受け、データベース検索命令からグループID「2018021400001」を取得する。ステップS56において、データベースサーバが、グループID「2018021400001」を含むログをログファイル320に出力する。ステップS57において、データベースサーバが、データベース検索結果をアプリケーションに返す。ステップS58において、アプリケーションサーバが、アプリケーション実行結果をウェブサーバに返す。ステップS59において、ウェブサーバが、ウェブ画面データをウェブクライアントに返す。
In step S52, the database server performs the search. In step S53, the database server requests the
***実施の形態の効果の説明***
本実施の形態では、サーバ間で連携して実行される一連の処理が識別子によってグループ化される。そのため、本実施の形態によれば、これら一連の処理を明確に関連付けることができる。
*** Explanation of the effect of the embodiment ***
In the present embodiment, a series of processes executed in cooperation between the servers are grouped by an identifier. Therefore, according to the present embodiment, these series of processes can be clearly associated with each other.
本実施の形態では、各サーバ装置300で発生するイベントをグループ化することにより、一連の処理の関連付けを把握可能となる。すなわち、本実施の形態では、「グループID」という概念を導入し、管理装置200から各サーバ装置300に対してグループIDを付与し、関連するイベントをグループ化することで、システム時刻とは別の情報を、全サーバで共通に使用でき、サーバ装置300間で実行される一連の動作を明確に関連付けることが可能となる。
In the present embodiment, by grouping the events that occur in each
具体例として、サーバ間の一連の動作の関連および順序が明確になり、障害発生時の問題箇所の特定が容易になる。従来は、障害解決のために一連の動作の処理結果を確認したい場合、実行時刻を頼りに、各サーバのログを順番に追っていく必要があるが、本実施の形態では、障害が起きた処理のグループIDが分かれば、後は任意のサーバのログを確認できる。 As a specific example, the relationship and order of a series of operations between servers will be clarified, and it will be easier to identify the problem area when a failure occurs. Conventionally, when it is desired to check the processing result of a series of operations for failure resolution, it is necessary to follow the log of each server in order depending on the execution time, but in the present embodiment, the processing in which the failure has occurred. If you know the group ID of, you can check the log of any server.
また、システム時刻にズレがあっても、各動作の順序および関連が明確であるため、混乱が起きない。従来は、各サーバのシステム時刻のズレを考慮しつつログを確認する必要があり、判断ミスが起きやすいが、本実施の形態では、同一のグループIDのログを確認するだけでよいので、判断ミスが起きにくい。 Moreover, even if the system time deviates, confusion does not occur because the order and relationship of each operation is clear. Conventionally, it is necessary to check the log while considering the deviation of the system time of each server, and a judgment error is likely to occur. However, in the present embodiment, it is sufficient to check the log of the same group ID, so the judgment is made. It is hard to make mistakes.
また、2つのサーバで開始された処理の実行順序の判断が容易になる。従来は、システム時刻のズレを考慮しつつ、各サーバでの実行時刻を比較する必要があり、2つのサーバでほぼ同時に処理が実行された場合、実行時刻が同一になり実行順序を判断できないが、本実施の形態では、付与されたグループIDの大小がそのまま実行順序なので、グループIDの大きさを比較するだけでよい。ほぼ同時に処理が実行された場合でも、個別のグループIDが付与されるので実行順序を判断できる。 In addition, it becomes easy to determine the execution order of the processes started on the two servers. In the past, it was necessary to compare the execution times on each server while considering the difference in system time, and if the processes were executed on the two servers at almost the same time, the execution times would be the same and the execution order could not be determined. In the present embodiment, the magnitude of the assigned group ID is the execution order as it is, so it is only necessary to compare the sizes of the group ID. Even when the processes are executed almost at the same time, the execution order can be determined because the individual group IDs are assigned.
***他の構成***
本実施の形態では、管理装置200の受信部210、第1送信部211および第2送信部212の機能がソフトウェアにより実現されるが、変形例として、受信部210、第1送信部211および第2送信部212の機能が専用のハードウェアにより実現されてもよい。あるいは、別の変形例として、受信部210、第1送信部211および第2送信部212の機能がソフトウェアとハードウェアとの組み合わせにより実現されてもよい。すなわち、受信部210、第1送信部211および第2送信部212の機能の一部が専用のハードウェアにより実現され、残りがソフトウェアにより実現されてもよい。
*** Other configurations ***
In the present embodiment, the functions of the receiving
専用のハードウェアは、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ロジックIC、GA、FPGA、ASIC、または、これらのうちいくつか、もしくは、すべての組み合わせである。「IC」は、Integrated Circuitの略語である。「GA」は、Gate Arrayの略語である。「FPGA」は、Field−Programmable Gate Arrayの略語である。「ASIC」は、Application Specific Integrated Circuitの略語である。 Dedicated hardware is, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a logic IC, a GA, an FPGA, an ASIC, or some or a combination of all of these. .. "IC" is an abbreviation for Integrated Circuit. "GA" is an abbreviation for Gate Array. "FPGA" is an abbreviation for Field-Programmable Gate Array. "ASIC" is an abbreviation for Application Special Integrated Circuit.
プロセッサ201および専用のハードウェアは、いずれも処理回路である。すなわち、受信部210、第1送信部211および第2送信部212の機能がソフトウェアにより実現されるか、ハードウェアにより実現されるか、ソフトウェアとハードウェアとの組み合わせにより実現されるかに関わらず、受信部210、第1送信部211および第2送信部212の動作は、処理回路により行われる。
Both the
本実施の形態では、サーバ装置300の送信部310、第1受信部311、第2受信部312および実行部313の機能がソフトウェアにより実現されるが、変形例として、送信部310、第1受信部311、第2受信部312および実行部313の機能が専用のハードウェアにより実現されてもよい。あるいは、別の変形例として、送信部310、第1受信部311、第2受信部312および実行部313の機能がソフトウェアとハードウェアとの組み合わせにより実現されてもよい。すなわち、送信部310、第1受信部311、第2受信部312および実行部313の機能の一部が専用のハードウェアにより実現され、残りがソフトウェアにより実現されてもよい。
In the present embodiment, the functions of the
専用のハードウェアは、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ロジックIC、GA、FPGA、ASIC、または、これらのうちいくつか、もしくは、すべての組み合わせである。 Dedicated hardware is, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a logic IC, a GA, an FPGA, an ASIC, or some or a combination of all of these. ..
プロセッサ301および専用のハードウェアは、いずれも処理回路である。すなわち、送信部310、第1受信部311、第2受信部312および実行部313の機能がソフトウェアにより実現されるか、ハードウェアにより実現されるか、ソフトウェアとハードウェアとの組み合わせにより実現されるかに関わらず、送信部310、第1受信部311、第2受信部312および実行部313の動作は、処理回路により行われる。
Both the
100 ログ管理システム、200 管理装置、201 プロセッサ、202 メモリ、203 通信デバイス、210 受信部、211 第1送信部、212 第2送信部、220 関連イベント設定ファイル、221 カウント番号、222 リセット番号、300 サーバ装置、301 プロセッサ、302 メモリ、303 通信デバイス、310 送信部、311 第1受信部、312 第2受信部、313 実行部、320 ログファイル、400 要求データ、401 第1応答データ、402 第2応答データ、403 呼出しデータ。 100 log management system, 200 management device, 201 processor, 202 memory, 203 communication device, 210 receiver, 211 first transmitter, 212 second transmitter, 220 related event setting file, 221 count number, 222 reset number, 300 Server device, 301 processor, 302 memory, 303 communication device, 310 transmitter, 311 first receiver, 312 second receiver, 313 execution unit, 320 log file, 400 request data, 401 first response data, 402 second Response data, 403 call data.
Claims (14)
メモリに記憶した設定情報において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータが前記要求データとして前記受信部により受信された場合に、識別子を付与し、付与した識別子を含む第1応答データを前記要求データの送信元のサーバ装置に送信する第1送信部と、
前記一連のイベントのうち、2番目以降のイベントを通知するデータが前記要求データとして前記受信部により受信された場合に、前記第1送信部により付与済の識別子を利用するよう指示する第2応答データを前記要求データの送信元のサーバ装置に送信する第2送信部と
を備える管理装置。 A receiver that receives request data that notifies the type of processing executed by each server device as an event from multiple server devices that execute individual processes in cooperation with each other.
When the data for notifying the first event of a series of events classified into the same group in the setting information stored in the memory and the order in the corresponding group is defined is received by the receiving unit as the request data. A first transmission unit that assigns an identifier to the server and transmits the first response data including the assigned identifier to the server device that is the source of the request data.
When the data notifying the second and subsequent events in the series of events is received by the receiving unit as the request data, the second response instructing to use the identifier given by the first transmitting unit. A management device including a second transmission unit that transmits data to a server device that transmits the request data.
前記第2送信部は、前記要求データの送信元のサーバ装置で実行される処理の前の処理を実行する他のサーバ装置から通知される識別子を利用するよう指示するデータを前記第2応答データとして送信する請求項1に記載の管理装置。 The first transmission unit includes the assigned identifier, and instructs other server devices that execute the next process of the process executed by the server device that transmits the request data to notify the assigned identifier. The data is transmitted as the first response data,
The second response data is data instructing the second transmission unit to use an identifier notified from another server device that executes a process before the process executed by the server device that is the source of the request data. The management device according to claim 1, which is transmitted as.
前記処理の種別をイベントとして通知する要求データを、識別子を付与する管理装置に送信する送信部と、
同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータが前記要求データとして前記送信部により送信された場合に、前記管理装置から、前記管理装置により付与された識別子を含む第1応答データを受信する第1受信部と、
前記一連のイベントのうち、2番目以降のイベントを通知するデータが前記要求データとして前記送信部により送信された場合に、前記管理装置から、前記管理装置により付与済の識別子を利用するよう指示する第2応答データを受信するとともに、前記処理の前の処理を実行する他のサーバ装置から、前記管理装置により付与済の識別子を通知する呼出しデータを受信する第2受信部と、
前記第1応答データが前記第1受信部により受信された場合は、前記処理を実行するとともに、前記第1応答データに含まれる識別子を記録したログを出力し、前記第2応答データが前記第2受信部により受信された場合は、前記処理を実行するとともに、前記呼出しデータによって通知された識別子を記録したログを出力する実行部と
を備えるサーバ装置。 In a server device that executes processing in cooperation with other server devices
A transmission unit that transmits request data for notifying the type of processing as an event to a management device to which an identifier is assigned.
When the data for notifying the first event of a series of events classified into the same group and the order in the corresponding group is defined is transmitted as the request data by the transmission unit, the management device can display the data. A first receiving unit that receives the first response data including the identifier given by the management device, and
When the data notifying the second and subsequent events in the series of events is transmitted by the transmission unit as the request data, the management device instructs the management device to use the identifier given by the management device. A second receiving unit that receives the second response data and also receives the call data notifying the identifier assigned by the management device from another server device that executes the process before the process.
When the first response data is received by the first receiving unit, the process is executed and a log recording an identifier included in the first response data is output, and the second response data is the second response data. (2) A server device including an execution unit that executes the process and outputs a log recording an identifier notified by the call data when the data is received by the reception unit.
前記送信部は、前記第1応答データが前記第1受信部により受信された場合は、前記第1応答データに含まれる識別子を通知する呼出しデータを、前記処理の次の処理を実行する他のサーバ装置に送信する請求項9に記載のサーバ装置。 The first receiving unit includes the identifier given by the management device, and sends data instructing the other server device that executes the next process of the process to notify the assigned identifier to the first response. Received as data
When the first response data is received by the first receiving unit, the transmitting unit executes the call data notifying the identifier included in the first response data to the next processing of the processing. The server device according to claim 9, which is transmitted to the server device.
前記管理装置が、同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータを前記要求データとして受信した場合に、識別子を付与し、付与した識別子を含む第1応答データを前記要求データの送信元のサーバ装置に送信し、
各サーバ装置が、前記第1応答データを受信した場合に、各サーバ装置の処理を実行するとともに、前記第1応答データに含まれる識別子を記録したログを出力し、
前記管理装置が、前記一連のイベントのうち、2番目以降のイベントを通知するデータを前記要求データとして受信した場合に、前記管理装置により付与済の識別子を利用するよう指示する第2応答データを前記要求データの送信元のサーバ装置に送信し、
各サーバ装置が、前記第2応答データを受信した場合に、各サーバ装置の処理の前の処理を実行する他のサーバ装置から、前記管理装置により付与済の識別子を通知する呼出しデータを受信し、各サーバ装置の処理を実行するとともに、前記呼出しデータによって通知された識別子を記録したログを出力するログ管理方法。 Multiple server devices that execute individual processes in cooperation with each other send request data that notifies the type of process executed by each server device as an event to the management device that assigns an identifier.
When the management device receives data notifying the first event of a series of events classified into the same group and whose order is defined in the group as the request data, an identifier is assigned. The first response data including the assigned identifier is transmitted to the server device that is the source of the request data, and the data is transmitted.
When each server device receives the first response data, the processing of each server device is executed, and a log recording the identifier included in the first response data is output.
When the management device receives data notifying the second and subsequent events in the series of events as the request data, the second response data instructing the management device to use the identifier assigned by the management device is provided. It is transmitted to the server device that is the source of the request data, and
When each server device receives the second response data, it receives call data notifying the identifier given by the management device from another server device that executes the processing before the processing of each server device. , A log management method that executes the processing of each server device and outputs a log recording the identifier notified by the call data.
互いに連携して個別の処理を実行する複数のサーバ装置から、各サーバ装置で実行される処理の種別をイベントとして通知する要求データを受信する受信手順と、
メモリに記憶した設定情報において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータが前記要求データとして前記受信手順により受信された場合に、識別子を付与し、付与した識別子を含む第1応答データを前記要求データの送信元のサーバ装置に送信する第1送信手順と、
前記一連のイベントのうち、2番目以降のイベントを通知するデータが前記要求データとして前記受信手順により受信された場合に、前記第1送信手順により付与済の識別子を利用するよう指示する第2応答データを前記要求データの送信元のサーバ装置に送信する第2送信手順と
を実行させる管理プログラム。 On the computer
A reception procedure for receiving request data that notifies the type of processing executed by each server device as an event from multiple server devices that execute individual processes in cooperation with each other.
When the data notifying the first event of a series of events classified into the same group in the setting information stored in the memory and the order in the corresponding group is defined is received as the request data by the reception procedure. The first transmission procedure of assigning an identifier to the server and transmitting the first response data including the assigned identifier to the server device that is the source of the request data.
When the data notifying the second and subsequent events in the series of events is received as the request data by the receiving procedure, the second response instructing to use the identifier given by the first transmitting procedure. A management program that executes a second transmission procedure for transmitting data to a server device that transmits the request data.
前記処理の種別をイベントとして通知する要求データを、識別子を付与する管理装置に送信する送信手順と、
同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベントを通知するデータが前記要求データとして前記送信手順により送信された場合に、前記管理装置から、前記管理装置により付与された識別子を含む第1応答データを受信する第1受信手順と、
前記一連のイベントのうち、2番目以降のイベントを通知するデータが前記要求データとして前記送信手順により送信された場合に、前記管理装置から、前記管理装置により付与済の識別子を利用するよう指示する第2応答データを受信するとともに、前記処理の前の処理を実行する他のサーバ装置から、前記管理装置により付与済の識別子を通知する呼出しデータを受信する第2受信手順と、
前記第1応答データが前記第1受信手順により受信された場合は、前記処理を実行するとともに、前記第1応答データに含まれる識別子を記録したログを出力し、前記第2応答データが前記第2受信手順により受信された場合は、前記処理を実行するとともに、前記呼出しデータによって通知された識別子を記録したログを出力する実行手順と
を実行させるサーバプログラム。 To a computer that is a server device that executes processing in cooperation with other server devices
A transmission procedure for transmitting request data for notifying the type of processing as an event to a management device to which an identifier is assigned, and
When the data notifying the first event of a series of events classified into the same group and the order in the corresponding group is defined is transmitted as the request data by the transmission procedure, the management device can display the data. The first receiving procedure for receiving the first response data including the identifier given by the management device, and
When the data notifying the second and subsequent events in the series of events is transmitted as the request data by the transmission procedure, the management device instructs the management device to use the identifier given by the management device. A second reception procedure for receiving the second response data and receiving call data notifying the identifier assigned by the management device from another server device that executes the process before the process.
When the first response data is received by the first reception procedure, the process is executed and a log recording the identifier included in the first response data is output, and the second response data is the first response data. (2) A server program that, when received by the receiving procedure, executes the processing and also executes the execution procedure of outputting a log recording the identifier notified by the calling data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2018056046A JP6957396B2 (en) | 2018-03-23 | 2018-03-23 | Management device, server device, log management method, management program and server program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2018056046A JP6957396B2 (en) | 2018-03-23 | 2018-03-23 | Management device, server device, log management method, management program and server program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2019168918A JP2019168918A (en) | 2019-10-03 |
| JP6957396B2 true JP6957396B2 (en) | 2021-11-02 |
Family
ID=68106774
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2018056046A Active JP6957396B2 (en) | 2018-03-23 | 2018-03-23 | Management device, server device, log management method, management program and server program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6957396B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008226017A (en) * | 2007-03-14 | 2008-09-25 | Ns Solutions Corp | LOG INFORMATION GENERATION DEVICE, LOG INFORMATION MANAGEMENT DEVICE, LOG INFORMATION GENERATION METHOD, LOG INFORMATION MANAGEMENT METHOD, AND PROGRAM |
| JP4820900B2 (en) * | 2009-11-04 | 2011-11-24 | 日本電信電話株式会社 | Log management method, management system, and management program |
-
2018
- 2018-03-23 JP JP2018056046A patent/JP6957396B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2019168918A (en) | 2019-10-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20200401437A1 (en) | Methods and apparatus to manage virtual machines | |
| US11405328B2 (en) | Providing on-demand production of graph-based relationships in a cloud computing environment | |
| JP6793900B2 (en) | Data stream processing language for analyzing software with embedded instrumentation | |
| US9384114B2 (en) | Group server performance correction via actions to server subset | |
| CN107534570B (en) | Computer system, method and medium for virtualized network function monitoring | |
| US11711255B2 (en) | Systems and methods for data linkage and entity resolution of continuous and un-synchronized data streams | |
| US12105735B2 (en) | Asynchronous accounting method and apparatus for blockchain, medium and electronic device | |
| US10452469B2 (en) | Server performance correction using remote server actions | |
| TW202023224A (en) | Event-driven blockchain workflow processing | |
| CN108681777B (en) | A method and apparatus for running a machine learning program based on a distributed system | |
| US20120127512A1 (en) | Branch office direct printing | |
| US20200183714A1 (en) | Common service resource application method, related device, and system | |
| US10397053B2 (en) | Methods for managing storage virtual machine configuration changes in a distributed storage system and devices thereof | |
| WO2024066342A1 (en) | Task processing method and apparatus, electronic device, and storage medium | |
| CN108964904B (en) | Group key security management method, device, electronic device and storage medium | |
| JP6957396B2 (en) | Management device, server device, log management method, management program and server program | |
| CN115686813A (en) | Resource scheduling method and device, electronic equipment and storage medium | |
| CN108521342A (en) | A kind of management method and device of cluster | |
| US20250245042A1 (en) | Processing of queued tasks | |
| US11256575B2 (en) | Methods, electronic devices and computer program products for managing and performing data backup jobs | |
| CN118426947A (en) | A method and device for processing cluster resources | |
| US10476947B1 (en) | Methods for managing web applications and devices thereof | |
| JP5223428B2 (en) | Information processing system | |
| CN117076124A (en) | Resource management device, method, electronic equipment and storage medium | |
| CN113138722A (en) | Replicated snapshot method, system, and medium for distributed block storage system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20201005 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210927 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20211005 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20211006 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6957396 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |