Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6957396B2 - Management device, server device, log management method, management program and server program - Google Patents
[go: Go Back, main page]

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 PDF

Info

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
Application number
JP2018056046A
Other languages
Japanese (ja)
Other versions
JP2019168918A (en
Inventor
長谷川 浩一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Information Network Corp
Original Assignee
Mitsubishi Electric Information Network Corp
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 Mitsubishi Electric Information Network Corp filed Critical Mitsubishi Electric Information Network Corp
Priority to JP2018056046A priority Critical patent/JP6957396B2/en
Publication of JP2019168918A publication Critical patent/JP2019168918A/en
Application granted granted Critical
Publication of JP6957396B2 publication Critical patent/JP6957396B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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には、互いに連携して動作する複数のサーバのそれぞれがログを作成する技術が開示されている。 Patent Document 1 discloses a technique in which each of a plurality of servers operating in cooperation with each other creates a log.

特開2011−100228号公報Japanese Unexamined Patent Publication No. 2011-100228

複数のサーバが連携するシステムの動作状況を判断する場合、各サーバで実行されたイベントの処理結果について、「送信」および「受信」等、対応するものを関連付けて把握する必要があるが、次のような理由により困難である。 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.

実施の形態1に係るログ管理システムの構成を示すブロック図。The block diagram which shows the structure of the log management system which concerns on Embodiment 1. FIG. 実施の形態1に係る管理装置の構成を示すブロック図。The block diagram which shows the structure of the management apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係るサーバ装置の構成を示すブロック図。The block diagram which shows the structure of the server apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係る管理装置の動作を示すフローチャート。The flowchart which shows the operation of the management apparatus which concerns on Embodiment 1. 実施の形態1に係るグループIDの各数値の説明表。An explanatory table of each numerical value of the group ID according to the first embodiment. 実施の形態1の適用例に係るログ管理システムの構成を示すブロック図。The block diagram which shows the structure of the log management system which concerns on application example of Embodiment 1. 実施の形態1の適用例に係るログ管理システムの処理推移図。FIG. 3 is a processing transition diagram of a log management system according to an application example of the first embodiment.

以下、本発明の実施の形態について、図を用いて説明する。各図中、同一または相当する部分には、同一符号を付している。実施の形態の説明において、同一または相当する部分については、説明を適宜省略または簡略化する。なお、本発明は、以下に説明する実施の形態に限定されるものではなく、必要に応じて種々の変更が可能である。例えば、以下に説明する実施の形態は、部分的に実施されても構わない。 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を用いて説明する。
Embodiment 1.
The present embodiment will be described with reference to FIGS. 1 to 5.

***構成の説明***
図1を参照して、本実施の形態に係るログ管理システム100の構成を説明する。
*** Explanation of configuration ***
The configuration of the log management system 100 according to the present embodiment will be described with reference to FIG.

ログ管理システム100は、識別子をグループIDとして付与する管理装置200と、互いに連携して個別の処理を実行する複数のサーバ装置300とを備える。「ID」は、Identifierの略語である。 The log management system 100 includes a management device 200 that assigns an identifier as a group ID, and a plurality of server devices 300 that execute individual processes in cooperation with each other. "ID" is an abbreviation for Identifier.

管理装置200と各サーバ装置300とは、図示していないインターネット等のネットワークを介して互いに通信を行う。サーバ装置300同士は、図示していないLAN等のネットワークを介して互いに通信を行う。「LAN」は、Local Area Networkの略語である。 The management device 200 and each server device 300 communicate with each other via a network such as the Internet (not shown). The server devices 300 communicate with each other via a network such as a LAN (not shown). "LAN" is an abbreviation for Local Area Network.

図2を参照して、本実施の形態に係る管理装置200の構成を説明する。 The configuration of the management device 200 according to the present embodiment will be described with reference to FIG.

管理装置200は、コンピュータである。管理装置200は、具体的には、クラウドサーバ等のサーバコンピュータである。管理装置200は、プロセッサ201を備えるとともに、メモリ202および通信デバイス203といった他のハードウェアを備える。プロセッサ201は、信号線を介して他のハードウェアと接続され、これら他のハードウェアを制御する。 The management device 200 is a computer. Specifically, the management device 200 is a server computer such as a cloud server. The management device 200 includes a processor 201 and other hardware such as a memory 202 and a communication device 203. The processor 201 is connected to other hardware via a signal line and controls these other hardware.

管理装置200は、機能要素として、受信部210と、第1送信部211と、第2送信部212とを備える。受信部210、第1送信部211および第2送信部212の機能は、ソフトウェアにより実現される。具体的には、受信部210、第1送信部211および第2送信部212の機能は、管理プログラムにより実現される。管理プログラムは、受信部210、第1送信部211および第2送信部212により行われる手順をそれぞれ受信手順、第1送信手順および第2送信手順としてコンピュータに実行させるプログラムである。管理プログラムは、コンピュータ読取可能な媒体に記録されて提供されてもよいし、記録媒体に格納されて提供されてもよいし、プログラムプロダクトとして提供されてもよい。 The management device 200 includes a receiving unit 210, a first transmitting unit 211, and a second transmitting unit 212 as functional elements. The functions of the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 are realized by software. Specifically, the functions of the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 are realized by the management program. The management program is a program that causes a computer to execute the procedures performed by the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 as a receiving procedure, a first transmitting procedure, and a second transmitting procedure, respectively. The management program may be recorded and provided on a computer-readable medium, may be stored and provided on a recording medium, or may be provided as a program product.

プロセッサ201は、管理プログラムを実行する装置である。プロセッサ201は、例えば、CPUである。「CPU」は、Central Processing Unitの略語である。 The processor 201 is a device that executes a management program. The processor 201 is, for example, a CPU. "CPU" is an abbreviation for Central Processing Unit.

メモリ202は、管理プログラムをあらかじめまたは一時的に記憶する装置である。メモリ202は、例えば、RAM、フラッシュメモリまたはこれらの組み合わせである。「RAM」は、Random Access Memoryの略語である。 The memory 202 is a device that stores a management program in advance or temporarily. The memory 202 is, for example, a RAM, a flash memory, or a combination thereof. "RAM" is an abbreviation for Random Access Memory.

通信デバイス203は、管理プログラムに入力されるデータを受信するレシーバと、管理プログラムから出力されるデータを送信するトランスミッタとを備える。通信デバイス203は、例えば、通信チップまたはNICである。「NIC」は、Network Interface Cardの略語である。 The communication device 203 includes a receiver that receives data input to the management program and a transmitter that transmits data output from the management program. The communication device 203 is, for example, a communication chip or a NIC. "NIC" is an abbreviation for Network Interface Card.

管理装置200は、ハードウェアとして、入力機器およびディスプレイを備えていてもよい。 The management device 200 may include an input device and a display as hardware.

入力機器は、管理プログラムへのデータの入力のためにユーザにより操作される機器である。入力機器は、例えば、マウス、キーボード、タッチパネル、または、これらのうちいくつか、もしくは、すべての組み合わせである。 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 memory 202 into the processor 201 and executed by the processor 201. Not only the management program but also the OS is stored in the memory 202. The processor 201 executes the management program while executing the OS. A part or all of the management program may be incorporated in the OS.

管理プログラムおよび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 memory 202 and executed by the processor 201.

管理装置200は、プロセッサ201を代替する複数のプロセッサを備えていてもよい。これら複数のプロセッサは、管理プログラムの実行を分担する。それぞれのプロセッサは、例えば、CPUである。 The management device 200 may include a plurality of processors that replace the processor 201. These multiple processors share the execution of the management program. Each processor is, for example, a CPU.

管理プログラムにより利用、処理または出力されるデータ、情報、信号値および変数値は、メモリ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 memory 202, the auxiliary storage device, or the register or cache memory in the processor 201. In this embodiment, at least the related event setting file 220, the count number 221 and the reset number 222 are stored in the memory 202.

管理装置200は、1台のコンピュータで構成されていてもよいし、複数台のコンピュータで構成されていてもよい。管理装置200が複数台のコンピュータで構成されている場合は、受信部210、第1送信部211および第2送信部212の機能が、各コンピュータに分散されて実現されてもよい。 The management device 200 may be composed of one computer or a plurality of computers. When the management device 200 is composed of a plurality of computers, the functions of the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 may be distributed and realized in each computer.

図3を参照して、本実施の形態に係るサーバ装置300の構成を説明する。 The configuration of the server device 300 according to the present embodiment will be described with reference to FIG.

サーバ装置300は、コンピュータである。サーバ装置300は、具体的には、ウェブサーバ、アプリケーションサーバ、データベースサーバ等のサーバコンピュータである。サーバ装置300は、プロセッサ301を備えるとともに、メモリ302および通信デバイス303といった他のハードウェアを備える。プロセッサ301は、信号線を介して他のハードウェアと接続され、これら他のハードウェアを制御する。 The server device 300 is a computer. Specifically, the server device 300 is a server computer such as a web server, an application server, or a database server. The server device 300 includes a processor 301 and other hardware such as a memory 302 and a communication device 303. The processor 301 is connected to other hardware via a signal line and controls these other hardware.

サーバ装置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 server device 300 includes a transmission unit 310, a first reception unit 311 and a second reception unit 312, and an execution unit 313 as functional elements. The functions of the transmission unit 310, the first reception unit 311 and the second reception unit 312 and the execution unit 313 are realized by software. Specifically, the functions of the transmission unit 310, the first reception unit 311, the second reception unit 312, and the execution unit 313 are realized by the server program. The server program is a program that causes a computer to execute the procedures performed by the transmission unit 310, the first reception unit 311, the second reception unit 312, and the execution unit 313 as a reception procedure, a first transmission procedure, and a second transmission procedure, respectively. The server program may be recorded and provided on a computer-readable medium, may be stored and provided on a recording medium, or may be provided as a program product.

プロセッサ301は、サーバプログラムを実行する装置である。プロセッサ301は、例えば、CPUである。 The processor 301 is a device that executes a server program. The processor 301 is, for example, a CPU.

メモリ302は、サーバプログラムをあらかじめまたは一時的に記憶する装置である。メモリ302は、例えば、RAM、フラッシュメモリまたはこれらの組み合わせである。 The memory 302 is a device that stores a server program in advance or temporarily. The memory 302 is, for example, a RAM, a flash memory, or a combination thereof.

通信デバイス303は、サーバプログラムに入力されるデータを受信するレシーバと、サーバプログラムから出力されるデータを送信するトランスミッタとを備える。通信デバイス303は、例えば、通信チップまたはNICである。 The communication device 303 includes a receiver that receives data input to the server program and a transmitter that transmits data output from the server program. The communication device 303 is, for example, a communication chip or a NIC.

サーバ装置300は、ハードウェアとして、入力機器およびディスプレイを備えていてもよい。 The server device 300 may include an input device and a display as hardware.

入力機器は、サーバプログラムへのデータの入力のためにユーザにより操作される機器である。入力機器は、例えば、マウス、キーボード、タッチパネル、または、これらのうちいくつか、もしくは、すべての組み合わせである。 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 memory 302 into processor 301 and executed by processor 301. Not only the server program but also the OS is stored in the memory 302. The processor 301 executes the server program while executing the OS. A part or all of the server program may be incorporated in the OS.

サーバプログラムおよび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 memory 302 and executed by the processor 301.

サーバ装置300は、プロセッサ301を代替する複数のプロセッサを備えていてもよい。これら複数のプロセッサは、サーバプログラムの実行を分担する。それぞれのプロセッサは、例えば、CPUである。 The server device 300 may include a plurality of processors that replace the processor 301. These plurality of processors share the execution of the server program. Each processor is, for example, a CPU.

サーバプログラムにより利用、処理または出力されるデータ、情報、信号値および変数値は、メモリ302、補助記憶装置、または、プロセッサ301内のレジスタまたはキャッシュメモリに記憶される。本実施の形態では、少なくともログファイル320がメモリ302に記憶される。 Data, information, signal values and variable values used, processed or output by the server program are stored in the memory 302, the auxiliary storage device, or the register or cache memory in the processor 301. In this embodiment, at least the log file 320 is stored in the memory 302.

サーバ装置300は、1台のコンピュータで構成されていてもよいし、複数台のコンピュータで構成されていてもよい。サーバ装置300が複数台のコンピュータで構成されている場合は、送信部310、第1受信部311、第2受信部312および実行部313の機能が、各コンピュータに分散されて実現されてもよい。 The server device 300 may be composed of one computer or a plurality of computers. When the server device 300 is composed of a plurality of computers, the functions of the transmission unit 310, the first reception unit 311, the second reception unit 312, and the execution unit 313 may be distributed and realized in each computer. ..

***動作の説明***
図1を参照して、本実施の形態に係るログ管理システム100の動作を説明する。ログ管理システム100の動作は、本実施の形態に係るログ管理方法に相当する。
*** Explanation of operation ***
The operation of the log management system 100 according to the present embodiment will be described with reference to FIG. The operation of the log management system 100 corresponds to the log management method according to the present embodiment.

本実施の形態は、複数のサーバ装置300が連携して動作するシステムにおいて、各サーバ装置300で実行される「送信」および「受信」等の関連するイベントをグループ化するものである。関連するイベントには、同一のグループIDが付与される。 In this embodiment, in a system in which a plurality of server devices 300 operate in cooperation with each other, related events such as "transmission" and "reception" executed by each server device 300 are grouped. The same group ID is assigned to related events.

グループIDを付与するためのサーバとして、管理装置200が配置される。管理装置200は、各サーバ装置300からの要求を受けてグループIDを返す。管理装置200は、グループに含まれる関連イベントの名称および順序の設定情報を関連イベント設定ファイル220として保持しており、各サーバ装置300に対してグループIDを付与すると同時にその伝達も指示する。 The management device 200 is arranged as a server for assigning the group ID. The management device 200 receives a request from each server device 300 and returns a group ID. The management device 200 holds the setting information of the name and order of the related events included in the group as the related event setting file 220, assigns the group ID to each server device 300, and at the same time instructs the transmission thereof.

グループIDの付与とサーバ装置300間の伝達は、以下のような手順で実現する。 The assignment of the group ID and the transmission between the server devices 300 are realized by the following procedure.

手順は、実行するイベントの関連グループ内での位置が最初であるか、途中であるか、最後であるかによって異なる。 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 server device 300 that executes the first process A, requests the management device 200 for the group ID. At that time, the server A also notifies the event name to be granted. Here, "start" is notified as an example. Note that the server A holds in advance a file that defines the correspondence between the type of processing to be executed and the event name, and when requesting the group ID, the event name to be notified by referring to this file. Suppose you get a "start".

ステップS12において、管理装置200は、関連イベント設定ファイル220を参照し、グループIDの付与を要求されたイベントがグループとして登録されているか、また、何番目に実行されるイベントかを調べる。管理装置200は、イベント「start」は「Group1」として登録されており、最初に実行され、次のイベントがあることを認識する。 In step S12, the management device 200 refers to the related event setting file 220 to check whether the event for which the group ID is requested is registered as a group and the number of the event to be executed. The management device 200 recognizes that the event "start" is registered as "Group1", is executed first, and has the next event.

ステップS13において、イベント「start」が最初に実行され、次のイベントがあるため、管理装置200はグループIDおよび「next」をサーバAに返す。 In step S13, since the event "start" is executed first and there is the next event, the management device 200 returns the group ID and "next" to the server A.

ステップ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 next server device 300.

ステップS15において、途中の処理Bを実行するサーバ装置300であるサーバBは、管理装置200に対し、グループIDを要求する。その際、サーバBは、付与対象のイベント名も通知する。ここでは、例として「cmd1」が通知される。なお、サーバBは、実行する処理の種別とイベントの名称との対応関係を定義するファイルをあらかじめ保持しており、グループIDを要求する際に、このファイルを参照して、通知すべきイベント名「cmd1」を得るものとする。 In step S15, the server B, which is the server device 300 that executes the process B in the middle, requests the management device 200 for the group ID. At that time, the server B also notifies the event name to be granted. Here, "cmd1" is notified as an example. Note that the server B holds in advance a file that defines the correspondence between the type of processing to be executed and the event name, and when requesting the group ID, the event name to be notified by referring to this file. It is assumed that "cmd1" is obtained.

ステップS16において、管理装置200は、関連イベント設定ファイル220を参照し、イベント「cmd1」は「Group1」として登録されており、2番目に実行され、次のイベントがあることを認識する。 In step S16, the management device 200 refers to the related event setting file 220, recognizes that the event "cmd1" is registered as "Group1", is executed second, and has the next event.

ステップS17において、イベント「cmd1」が最初のイベントではなく、次のイベントがあるため、管理装置200は「prev」および「next」をサーバBに返す。サーバBは「prev」を受け、直前のサーバ装置300であるサーバAからのコマンド「cmd1」からグループIDを取得する。 In step S17, the management device 200 returns "prev" and "next" to the server B because the event "cmd1" is not the first event but the next event. The server B receives the "prev" and acquires the group ID from the command "cmd1" from the server A which is the server device 300 immediately before.

ステップ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 next server device 300. In a situation where it is not necessary to operate the server C, the server B may ignore "next". That is, even if the server B receives the "next", it may independently determine whether or not to transmit the group ID to the server C.

ステップS19において、最後の処理Cを実行するサーバ装置300であるサーバCは、管理装置200に対し、グループIDを要求する。その際、サーバCは、付与対象のイベント名も通知する。ここでは、例として「cmd2」が通知される。なお、サーバCは、実行する処理の種別とイベントの名称との対応関係を定義するファイルをあらかじめ保持しており、グループIDを要求する際に、このファイルを参照して、通知すべきイベント名「cmd2」を得るものとする。 In step S19, the server C, which is the server device 300 that executes the final process C, requests the management device 200 for the group ID. At that time, the server C also notifies the event name to be granted. Here, "cmd2" is notified as an example. The server C holds in advance a file that defines the correspondence between the type of processing to be executed and the event name, and when requesting the group ID, the event name to be notified by referring to this file. It is assumed that "cmd2" is obtained.

ステップS20において、管理装置200は、関連イベント設定ファイル220を参照し、イベント「cmd2」は「Group1」として登録されており、3番目に実行され、次のイベントがないことを認識する。 In step S20, the management device 200 refers to the related event setting file 220, recognizes that the event "cmd2" is registered as "Group1", is executed third, and there is no next event.

ステップS21において、イベント「cmd2」が最初のイベントではなく、次のイベントがないため、管理装置200は「prev」および「none」をサーバCに返す。サーバCは「prev」を受け、直前のサーバ装置300であるサーバBからのコマンド「cmd2」からグループIDを取得する。 In step S21, the management device 200 returns "prev" and "none" to the server C because the event "cmd2" is not the first event and there is no next event. The server C receives the "prev" and acquires the group ID from the command "cmd2" from the server B which is the server device 300 immediately before.

図4を参照して、管理装置200の処理手順を説明する。 The processing procedure of the management device 200 will be described with reference to FIG.

ステップS31において、管理装置200は、関連イベント設定ファイル220を読み込む。 In step S31, the management device 200 reads the related event setting file 220.

ステップS32において、管理装置200は、グループID要求を受信する。 In step S32, the management device 200 receives the group ID request.

ステップS33において、管理装置200は、返却値を決定する。 In step S33, the management device 200 determines the return value.

ステップS34において、管理装置200は、要求元のサーバ装置300に返却値を送信する。 In step S34, the management device 200 transmits the return value to the requesting server device 300.

返却値としては、値1および値2がある。 There are a value 1 and a value 2 as the return value.

値1は、グループID要求で通知されたイベントが最初のイベントなら、そのイベントに対して新たに採番されたグループIDとなり、最初のイベント以外なら、直前のサーバ装置300から伝達されたグループIDを使うよう指示する「prev」となる。グループIDの採番については後述する。 The value 1 is the group ID newly assigned to the event if the event notified by the group ID request is the first event, and the group ID transmitted from the immediately preceding server device 300 other than the first event. It becomes "prev" instructing to use. The numbering of the group ID will be described later.

値2は、グループID要求で通知されたイベントが最後のイベントなら、次のサーバ装置300へグループIDを伝達しないよう指示する「none」となり、最後のイベント以外なら、次のサーバ装置300へグループIDを伝達するよう指示する「next」となる。 The value 2 is "none" instructing the next server device 300 not to transmit the group ID if the event notified by the group ID request is the last event, and if it is other than the last event, the group is sent to the next server device 300. It becomes "next" instructing to transmit the ID.

本実施の形態では、図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 count number 221 are arranged as shown in FIG. 5 is used as the group ID. As an example, if the date is "February 14, 2018", the reset number 222 is "0", and the count number 221 is "1", the group ID is "2018021400001".

グループ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 count number 221 is returned to "0" every 24 hours in order to prevent the value from becoming infinitely large. The digit of the reset number 222 is provided assuming that a failure occurs in the management device 200 and the count number 221 reaches the maximum value, and the group ID does not overlap even if the count number 221 is reset on the same day. The mechanism is adopted. The reset number 222 is recorded in a file in the management device 200 and is inherited even if the management device 200 is restarted, but returns to "0" when the day changes. The count number 221 has four digits by default, but if there are many logs generated by each server device 300, the number of digits may be increased.

各サーバ装置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 server device 300, it is necessary to transmit the group ID between the server devices 300. In the present embodiment, the group ID is transmitted in a form of being embedded in an event instruction to the next server device 300. Specifically, the group ID is embedded as an argument of the URL when transmitted to an application server such as Tomcat. "URL" is an abbreviation for Uniform Resource Locator. When the group ID is transmitted to a database server such as Oracle (registered trademark), it is embedded as a comment of SQL.

図1から図3を参照して、管理装置200およびサーバ装置300の各部の動作を説明する。 The operation of each part of the management device 200 and the server device 300 will be described with reference to FIGS. 1 to 3.

ステップS11において、サーバBおよびサーバCといった他のサーバ装置300と連携して処理Aを実行するサーバ装置300であるサーバAの送信部310は、処理Aの種別をイベント「start」として通知する要求データ400を管理装置200に送信する。 In step S11, the transmission unit 310 of the server A, which is the server device 300 that executes the process A in cooperation with the other server devices 300 such as the server B and the server C, requests to notify the type of the process A as an event "start". The data 400 is transmitted to the management device 200.

ステップS12において、管理装置200の受信部210は、サーバAから、サーバAで実行される処理Aの種別をイベント「start」として通知する要求データ400を受信する。管理装置200の第1送信部211は、メモリ202に記憶した関連イベント設定ファイル220において同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、1番目のイベント「start」を通知するデータが要求データ400として受信部210により受信されたことを認識する。 In step S12, the receiving unit 210 of the management device 200 receives the request data 400 notifying the type of the process A executed by the server A as the event "start" from the server A. The first transmission unit 211 of the management device 200 is classified into the same group in the related event setting file 220 stored in the memory 202, and is the first event "start" in a series of events in which the order in the group is defined. It is recognized that the data notifying "" has been received by the receiving unit 210 as the request data 400.

ステップ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 first transmission unit 211 of the management device 200 assigns a group ID, and transmits the first response data 401 including the assigned group ID to the server A, which is the server device 300 that is the source of the request data 400. .. In the present embodiment, the first transmission unit 211 is another server device 300 that includes the assigned group ID and executes the assigned group ID in the next process B of the process A executed by the server A. The server B is instructed to notify, that is, the data including "next" is transmitted as the first response data 401.

グループ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 first transmission unit 211 includes the information on the date and time when the group ID is assigned in the group ID to be assigned. Specifically, the first transmission unit 211 arranges the date at the beginning of the group ID to be assigned. Further, the first transmission unit 211 includes the count number 221 stored in the memory 202 in the group ID to be assigned, and then increments the count number 221 stored in the memory 202. Specifically, the first transmission unit 211 arranges the count number 221 stored in the memory 202 at the end of the group ID to be assigned, and then increments the count number 221 stored in the memory 202 by one. Further, the first transmission unit 211 includes the reset number 222 stored in the memory 202 in the group ID to be assigned. Specifically, the first transmission unit 211 arranges the reset number 222 stored in the memory 202 between the date of the group ID to be assigned and the count number 221. When the count number 221 stored in the memory 202 has reached the maximum value, the first transmission unit 211 resets the count number 221 stored in the memory 202 to an initial value instead of incrementing the count number 221 and stores the count number 221 in the memory 202. The reset number 222 is incremented. Specifically, when the count number 221 stored in the memory 202 reaches "9999", the first transmission unit 211 resets the count number 221 stored in the memory 202 to "0" instead of incrementing it by 1. At the same time, the reset number 222 stored in the memory 202 is incremented by 1.

なお、第1送信部211は、日付が変わるときに、メモリ202に記憶したカウント番号221およびリセット番号222を初期値にリセットする。具体的には、第1送信部211は、日付が変わるときに、メモリ202に記憶したカウント番号221およびリセット番号222を「0」にリセットする。 The first transmission unit 211 resets the count number 221 and the reset number 222 stored in the memory 202 to the initial values when the date changes. Specifically, the first transmission unit 211 resets the count number 221 and the reset number 222 stored in the memory 202 to "0" when the date changes.

ステップ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 first receiving unit 311 of the server A receives the first response data 401 including the group ID assigned by the management device 200 from the management device 200. In the present embodiment, the first receiving unit 311 includes the group ID given by the management device 200, and instructs the server B to notify the given group ID, that is, the data including "next". Received as the first response data 401. Therefore, the transmission unit 310 of the server A transmits the call data 403 notifying the group ID included in the first response data 401 to the server B.

サーバAの実行部313は、処理Aを実行するとともに、第1応答データ401に含まれるグループIDを記録したログをログファイル320に出力する。 The execution unit 313 of the server A executes the process A and outputs a log recording the group ID included in the first response data 401 to the log file 320.

ステップS15において、サーバAおよびサーバCといった他のサーバ装置300と連携して処理Bを実行するサーバ装置300であるサーバBの送信部310は、処理Bの種別をイベント「cmd1」として通知する要求データ400を管理装置200に送信する。 In step S15, the transmission unit 310 of the server B, which is the server device 300 that executes the process B in cooperation with the other server devices 300 such as the server A and the server C, requests to notify the type of the process B as the event "cmd1". The data 400 is transmitted to the management device 200.

ステップ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 unit 210 of the management device 200 receives the request data 400 notifying the type of the process B executed by the server B as the event “cmd1” from the server B. The second transmission unit 212 of the management device 200 is classified into the same group in the related event setting file 220 stored in the memory 202, and is the second and subsequent events in a series of events whose order is defined in the group. It recognizes that the data notifying "cmd1" has been received by the receiving unit 210 as the request data 400. In the present embodiment, the second transmission unit 212 is classified into the same group in the related event setting file 220 stored in the memory 202, and the second and subsequent events in the series in which the order in the corresponding group is defined. It recognizes that the data notifying the event "cmd1" other than the last is received by the receiving unit 210 as the request data 400.

ステップ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 second transmission unit 212 of the management device 200 is the server device 300 of the source of the request data 400 for the second response data 402 instructing to use the group ID assigned by the first transmission unit 211. Send to server B. Specifically, the second transmission unit 212 instructs to use the group ID notified from the server A, which is another server device 300 that executes the process A before the process B executed by the server B. That is, the data including "prev" is transmitted as the second response data 402. In the present embodiment, the second transmission unit 212 instructs to use the group ID notified from the server A, and sets the notified group ID to the next process C of the process B executed by the server B. The server C, which is another server device 300 to be executed, is instructed to notify, that is, the data including "next" is transmitted as the second response data 402.

ステップ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 second receiving unit 312 of the server B receives the second response data 402 instructing to use the group ID assigned by the management device 200 from the management device 200, and also receives the second response data 402 instructing to use the group ID assigned by the management device 200 from the management device 200. The call data 403 notifying the group ID assigned by 200 is received. In the present embodiment, the second receiving unit 312 instructs to use the group ID notified from the server A, that is, includes "prev" and instructs the server C to notify the notified group ID. That is, the data including "next" is received as the second response data 402. Therefore, the transmission unit 310 of the server B generates another call data 403 notifying the group ID notified by the call data 403 from the server A, and transmits the generated call data 403 to the server C. If there is no next process of process B, the transmission unit 310 does not have to generate or transmit the call data 403.

サーバBの実行部313は、処理Bを実行するとともに、呼出しデータ403によって通知されたグループIDを記録したログをログファイル320に出力する。 The execution unit 313 of the server B executes the process B and outputs a log recording the group ID notified by the call data 403 to the log file 320.

ステップS19において、サーバAおよびサーバBといった他のサーバ装置300と連携して処理Cを実行するサーバ装置300であるサーバCの送信部310は、処理Cの種別をイベント「cmd2」として通知する要求データ400を管理装置200に送信する。 In step S19, the transmission unit 310 of the server C, which is the server device 300 that executes the process C in cooperation with the other server devices 300 such as the server A and the server B, requests to notify the type of the process C as the event "cmd2". The data 400 is transmitted to the management device 200.

ステップ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 unit 210 of the management device 200 receives the request data 400 notifying the type of the process C executed by the server C as the event "cmd2" from the server C. The second transmission unit 212 of the management device 200 is classified into the same group in the related event setting file 220 stored in the memory 202, and is the second and subsequent events in a series of events whose order is defined in the group. It recognizes that the data notifying "cmd2" has been received by the receiving unit 210 as the request data 400. In the present embodiment, the second transmission unit 212 is classified into the same group in the related event setting file 220 stored in the memory 202, and is the last event "of a series of events in which the order in the corresponding group is defined. It recognizes that the data notifying "cmd2" has been received by the receiving unit 210 as the request data 400.

ステップ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 second transmission unit 212 of the management device 200 is the server device 300 of the source of the request data 400 for the second response data 402 instructing to use the group ID assigned by the first transmission unit 211. Send to server C. Specifically, the second transmission unit 212 instructs to use the group ID notified from the server B, which is another server device 300 that executes the process B before the process C executed by the server C. That is, the data including "prev" is transmitted as the second response data 402. In the present embodiment, the second transmission unit 212 instructs to use the group ID notified from the server B, and notifies that it is not necessary to notify the other server device 300 of the notified group ID. That is, the data including "none" is transmitted as the second response data 402.

サーバCの第2受信部312は、管理装置200から、管理装置200により付与済のグループIDを利用するよう指示する第2応答データ402を受信するとともに、サーバBから、管理装置200により付与済のグループIDを通知する呼出しデータ403を受信する。本実施の形態では、第2受信部312は、サーバBから通知されるグループIDを利用するよう指示する、すなわち、「prev」を含むとともに、通知されるグループIDを通知しなくてよいことを通知する、すなわち、「none」を含むデータを第2応答データ402として受信する。 The second receiving unit 312 of the server C receives the second response data 402 instructing to use the group ID assigned by the management device 200 from the management device 200, and has already been assigned by the management device 200 from the server B. Receives the call data 403 notifying the group ID of. In the present embodiment, the second receiving unit 312 instructs to use the group ID notified from the server B, that is, includes "prev" and does not have to notify the notified group ID. Notify, that is, receive the data including "none" as the second response data 402.

サーバCの実行部313は、処理Cを実行するとともに、呼出しデータ403によって通知されたグループIDを記録したログをログファイル320に出力する。 The execution unit 313 of the server C executes the process C and outputs a log recording the group ID notified by the call data 403 to the log file 320.

なお、グループ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 log management system 100 in which a web server such as Apache (registered trademark), an application server such as Tomcat, and a database server such as Oracle (registered trademark) are combined as the server device 300.

この例において、ウェブクライアントは、ウェブサーバにアクセスする。ウェブサーバは、アプリケーションサーバ上の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 server device 300 requests a group ID from the management device 200.

管理装置200上の関連イベント設定ファイル220では、「Group1=WebAccess,AppExec,DBSearch」が設定されている。 In the related event setting file 220 on the management device 200, "Group1 = WebAccess, AppExec, DBSearch" is set.

ステップ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 management device 200 for the "web access" group ID. In step S43, the management device 200 refers to the related event setting file 220, and the event name "Web Access" of "Web Access" is registered as a process in the group, which is the first process to be executed and Since there is the next processing, the group ID "2018021400001" is generated and "GID = 2018021400001, next" is returned. In step S44, the web server outputs a log including the group ID "2018021400001" to the log file 320. In step S45, the web server sends an application execution instruction to the application server. At this time, the web server receives the next instruction of the management device 200 and embeds the group ID "2018021400001" in the instruction.

ステップ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 management device 200 for the group ID of "application execution". In step S48, the management device 200 refers to the related event setting file 220, and the event name "AppExec" of "application execution" is registered as a process in the group, which is the second process to be executed and Since there is the next processing, "GID = prev, next" is returned. In step S49, the application server receives the prev instruction and acquires the group ID "2018021400001" from the application execution instruction. In step S50, the application server outputs a log including the group ID "2018021400001" to the log file 320. In step S51, the application server sends a database search command to the database server. At this time, the application server receives the next instruction of the management device 200 and embeds the group ID "2018021400001" in the instruction.

ステップ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 management device 200 for the group ID of "database search". In step S54, the management device 200 refers to the related event setting file 220, and the event name “DBSearch” of “database search” is registered as a process in the group, which is the third process to be executed and Since there is no next process, "GID = prev, one" is returned. In step S55, the database server receives the prev instruction and acquires the group ID "2018021400001" from the database search instruction. In step S56, the database server outputs a log including the group ID "2018021400001" to the log file 320. In step S57, the database server returns the database search result to the application. In step S58, the application server returns the application execution result to the web server. In step S59, the web server returns the web screen data to the web client.

***実施の形態の効果の説明***
本実施の形態では、サーバ間で連携して実行される一連の処理が識別子によってグループ化される。そのため、本実施の形態によれば、これら一連の処理を明確に関連付けることができる。
*** 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 server device 300, it is possible to grasp the association of a series of processes. That is, in the present embodiment, the concept of "group ID" is introduced, a group ID is assigned to each server device 300 from the management device 200, and related events are grouped to be different from the system time. Information can be used in common by all servers, and a series of operations executed between the server devices 300 can be clearly associated with each other.

具体例として、サーバ間の一連の動作の関連および順序が明確になり、障害発生時の問題箇所の特定が容易になる。従来は、障害解決のために一連の動作の処理結果を確認したい場合、実行時刻を頼りに、各サーバのログを順番に追っていく必要があるが、本実施の形態では、障害が起きた処理のグループ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 unit 210, the first transmitting unit 211, and the second transmitting unit 212 of the management device 200 are realized by software, but as a modification, the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 are realized. 2. The function of the transmitter 212 may be realized by dedicated hardware. Alternatively, as another modification, the functions of the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 may be realized by a combination of software and hardware. That is, a part of the functions of the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 may be realized by dedicated hardware, and the rest may be realized by software.

専用のハードウェアは、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ロジック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 processor 201 and the dedicated hardware are processing circuits. That is, regardless of whether the functions of the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 are realized by software, hardware, or a combination of software and hardware. The operations of the receiving unit 210, the first transmitting unit 211, and the second transmitting unit 212 are performed by the processing circuit.

本実施の形態では、サーバ装置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 transmission unit 310, the first reception unit 311, the second reception unit 312, and the execution unit 313 of the server device 300 are realized by software, but as a modification, the transmission unit 310 and the first reception unit The functions of the unit 311, the second receiving unit 312, and the executing unit 313 may be realized by dedicated hardware. Alternatively, as another modification, the functions of the transmission unit 310, the first reception unit 311, the second reception unit 312, and the execution unit 313 may be realized by a combination of software and hardware. That is, a part of the functions of the transmission unit 310, the first reception unit 311, the second reception unit 312, and the execution unit 313 may be realized by dedicated hardware, and the rest may be realized by software.

専用のハードウェアは、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ロジック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 processor 301 and the dedicated hardware are processing circuits. That is, the functions of the transmission unit 310, the first reception unit 311, the second reception unit 312, and the execution unit 313 are realized by software, hardware, or a combination of software and hardware. Regardless of this, the operations of the transmission unit 310, the first reception unit 311, the second reception unit 312, and the execution unit 313 are performed by the processing circuit.

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.
前記第1送信部は、付与した識別子を含むとともに、付与した識別子を、前記要求データの送信元のサーバ装置で実行される処理の次の処理を実行する他のサーバ装置に通知するよう指示するデータを前記第1応答データとして送信し、
前記第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.
前記第2送信部は、前記一連のイベントのうち、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 management device according to claim 2, wherein data instructing another server device that executes the next process to be notified is transmitted as the second response data. 前記第1送信部は、識別子を付与する日時の情報を、付与する識別子に含める請求項1から3のいずれか1項に記載の管理装置。 The management device according to any one of claims 1 to 3, wherein the first transmission unit includes information on the date and time when an identifier is assigned in the identifier to be assigned. 前記第1送信部は、前記メモリに記憶したカウント番号を、付与する識別子に含めてから、前記メモリに記憶したカウント番号をインクリメントする請求項1から4のいずれか1項に記載の管理装置。 The management device according to any one of claims 1 to 4, wherein the first transmission unit includes a count number stored in the memory in an identifier to be assigned, and then increments the count number stored in the memory. 前記第1送信部は、日付が変わるときに、前記メモリに記憶したカウント番号を初期値にリセットする請求項5に記載の管理装置。 The management device according to claim 5, wherein the first transmission unit resets the count number stored in the memory to an initial value when the date changes. 前記第1送信部は、前記メモリに記憶したカウント番号とともに、前記メモリに記憶したリセット番号を、付与する識別子に含め、前記メモリに記憶したカウント番号が最大値に達している場合は、前記メモリに記憶したカウント番号をインクリメントする代わりに初期値にリセットするとともに、前記メモリに記憶したリセット番号をインクリメントする請求項5または6に記載の管理装置。 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 The management device according to claim 5 or 6, wherein the count number stored in the memory is reset to an initial value instead of being incremented, and the reset number stored in the memory is incremented. 前記第1送信部は、日付が変わるときに、前記メモリに記憶したリセット番号を初期値にリセットする請求項7に記載の管理装置。 The management device according to claim 7, wherein the first transmission unit resets the reset number stored in the memory to an initial value when the date changes. 他のサーバ装置と連携して処理を実行するサーバ装置において、
前記処理の種別をイベントとして通知する要求データを、識別子を付与する管理装置に送信する送信部と、
同じグループに分類され、該当グループ内での順番が規定された一連のイベントのうち、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応答データが前記第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.
前記送信部は、前記第2応答データが前記第2受信部により受信された場合は、前記処理の次の処理があれば、前記呼出しデータによって通知された識別子を通知する別の呼出しデータを生成し、生成した呼出しデータを、前記処理の次の処理を実行する他のサーバ装置に送信する請求項9または10に記載のサーバ装置。 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. The server device according to claim 9 or 10, wherein 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応答データを受信した場合に、各サーバ装置の処理の前の処理を実行する他のサーバ装置から、前記管理装置により付与済の識別子を通知する呼出しデータを受信し、各サーバ装置の処理を実行するとともに、前記呼出しデータによって通知された識別子を記録したログを出力するログ管理方法。
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.
JP2018056046A 2018-03-23 2018-03-23 Management device, server device, log management method, management program and server program Active JP6957396B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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