JP2005157727A - Log processing method, and processing program and execution system of the same - Google Patents
Log processing method, and processing program and execution system of the same Download PDFInfo
- Publication number
- JP2005157727A JP2005157727A JP2003395126A JP2003395126A JP2005157727A JP 2005157727 A JP2005157727 A JP 2005157727A JP 2003395126 A JP2003395126 A JP 2003395126A JP 2003395126 A JP2003395126 A JP 2003395126A JP 2005157727 A JP2005157727 A JP 2005157727A
- Authority
- JP
- Japan
- Prior art keywords
- log
- information
- communication message
- log information
- communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は情報処理装置での処理履歴を示すログ情報を処理するログ処理システムに関し、特に複数の情報処理装置によって分散オブジェクト処理を行う際に生成されるログ情報を処理するログ処理システムに適用して有効な技術に関するものである。 The present invention relates to a log processing system that processes log information indicating a processing history in an information processing apparatus, and particularly to a log processing system that processes log information generated when distributed object processing is performed by a plurality of information processing apparatuses. And effective technology.
従来、分散オブジェクト処理の様に、複数の情報処理装置により分散して処理を行うことによりサービス(プログラムやオブジェクトの実行により実現される機能)を提供する場合、その処理履歴を示すログ情報が各情報処理装置で生成される為、ログ情報が複数の情報処理装置に分散してしまい、エラーの原因調査等、ログ情報の収集を行う際には、各情報処理装置内のログ情報の突き合わせを行って、どのログ情報がどの処理要求によるものであるかを調べる必要がある。 Conventionally, when providing a service (a function realized by executing a program or an object) by performing processing in a distributed manner by a plurality of information processing devices, such as distributed object processing, log information indicating the processing history is provided for each log information. Since log information is distributed to multiple information processing devices because it is generated by information processing devices, log information in each information processing device must be matched when collecting log information such as investigating the cause of errors. It is necessary to check which log information is caused by which processing request.
また、この様な突き合わせを効率的に行う為に、ログマネージャと呼ばれる様なログを一カ所に集める為の情報処理装置を利用し、マネージャがネットワークを介して複数のエージェントからログデータを収集するシステムも提案されている(例えば特許文献1参照)。 In addition, in order to perform such matching efficiently, an information processing device called a log manager that collects logs in one place is used, and the manager collects log data from multiple agents via the network. A system has also been proposed (see, for example, Patent Document 1).
前記従来技術では、複数の情報処理装置に分散してログ情報を格納した場合、各情報処理装置内のログ情報の突き合わせを行って、どのログ情報がどの処理要求によるものであるかを調べる必要がある為、ログ情報の解析に時間を要するという問題がある。 In the prior art, when log information is stored in a plurality of information processing apparatuses, the log information in each information processing apparatus must be matched to determine which log information is due to which processing request. Therefore, there is a problem that it takes time to analyze log information.
また前記従来技術においてログマネージャを利用した場合には、ログ情報が一カ所に集められてしまう為、そこがボトルネックやクリティカルポイントになり易いという問題がある。 In addition, when the log manager is used in the prior art, since log information is collected in one place, there is a problem that it easily becomes a bottleneck or a critical point.
更に、複数の情報処理装置に分散してログ情報を格納した場合やログマネージャを利用した場合のどちらであっても、その処理を要求したクライアント側処理装置にログ情報があるわけではないので、クライアント側処理装置は、自装置の行ったアクセスについてID等により、サーバ側処理装置やログマネージャのログを取得する必要がある。 Furthermore, the log information is not always stored in the client-side processing device that requested the processing, regardless of whether the log information is stored in a plurality of information processing devices or the log manager is used. The client-side processing device needs to acquire the logs of the server-side processing device and the log manager based on the ID or the like regarding the access made by the own device.
本発明の目的は上記問題を解決し、複数の情報処理装置間で通信電文を送受信して実行した処理のログ情報を効率的に収集することが可能な技術を提供することにある。 An object of the present invention is to solve the above problems and provide a technique capable of efficiently collecting log information of processing executed by transmitting and receiving communication messages between a plurality of information processing apparatuses.
本発明は、情報処理装置での処理履歴を示すログ情報を処理するログ処理システムにおいて、所定の処理を実行する為の通信電文にログ情報を付加することにより通信電文そのものにログ情報を蓄えるものである。 The present invention relates to a log processing system that processes log information indicating a processing history in an information processing apparatus, and stores log information in a communication message itself by adding the log information to the communication message for executing a predetermined process. It is.
本発明のログ処理システムにおいて、クライアント側処理装置等の第1の情報処理装置(計算機や情報処理装置、またはその様な処理を実施するプログラムやオブジェクトでも良い)は、所定の処理を実行する為の通信電文を生成して通信手段により、サーバ側処理装置等の送信先の第2の情報処理装置(計算機や情報処理装置、またはその様な処理を実施するプログラムやオブジェクトでも良い)へ送信する。 In the log processing system of the present invention, the first information processing apparatus (computer or information processing apparatus, or a program or object that performs such processing) such as a client-side processing apparatus executes predetermined processing. Is transmitted to a second information processing apparatus (such as a computer or information processing apparatus, or a program or object that performs such processing) such as a server-side processing apparatus. .
第2の情報処理装置では、所定の処理を実行する為の通信電文を通信手段により送信元の第1の情報処理装置から受信する。そして、その受信した通信電文にログ情報が付加されているかどうかを調べ、ログ情報が付加されている場合には、そのログ情報を前記通信電文から取り出して記憶手段中に格納する。 In the second information processing apparatus, a communication message for executing a predetermined process is received from the first information processing apparatus as the transmission source by the communication means. Then, it is checked whether or not log information is added to the received communication message. If log information is added, the log information is extracted from the communication message and stored in the storage means.
次に第2の情報処理装置は、所定の処理を実行する際に用いられる入力パラメータ等のデータを前記受信した通信電文から取り出して、当該処理を実行するアプリケーションプログラムへ渡し、前記所定の処理の実行をアプリケーションプログラムに指示する。 Next, the second information processing apparatus extracts data such as input parameters used when executing the predetermined process from the received communication telegram, and passes the data to the application program that executes the process. Instructs the application program to execute.
そして第2の情報処理装置は、前記所定の処理の実行中にアプリケーションプログラムやオペレーティングシステムから出力された各種情報をログ情報として取得して前記記憶手段中に格納する。 The second information processing apparatus acquires various information output from the application program or the operating system during execution of the predetermined process as log information and stores it in the storage means.
その後第2の情報処理装置は、前記受信した通信電文や所定の処理の実行によりアプリケーションプログラムから出力された出力データ等を用いて、送信先の情報処理装置(次のサーバ側処理装置または送信元のクライアント側処理装置)に送信される通信電文を生成し、その生成した通信電文に、前記取り出したログ情報と前記所定の処理の実行によって生成されたログ情報とを記憶手段から順次読み出して付加し、ログ情報を付加した通信電文を通信手段により送信先の情報処理装置へ送信する。 After that, the second information processing apparatus uses the received communication message, output data output from the application program by execution of the predetermined process, or the like to send a destination information processing apparatus (next server side processing apparatus or transmission source). Communication message to be transmitted to the client side processing device), and the extracted log information and the log information generated by execution of the predetermined processing are sequentially read from the storage means and added to the generated communication message Then, the communication message to which the log information is added is transmitted to the destination information processing apparatus by the communication means.
前記ログ情報を付加した通信電文を受信した送信先の情報処理装置が次のサーバ側処理装置である場合には、前記第2の情報処理装置と同様の処理を行って更にログ情報を通信電文に追加して送信する。また送信先の情報処理装置が、最初に通信電文を送信したクライアント側処理装置である場合には、その受信した通信電文からログ情報を取り出して記憶手段中に格納した後、前記通信電文から取り出したログ情報を記憶手段上に割り当てられたログファイル等の所定の記録領域へ格納する。ここで、クライアント側処理装置からの通信電文を最初に受信したサーバ側処理装置が、ログ記録用ファイル等の所定の記録領域への格納を行うものとしても良い。 If the destination information processing device that has received the communication message with the log information added is the next server-side processing device, the same processing as the second information processing device is performed, and the log information is further transmitted to the communication message. Add to and send. If the destination information processing device is the client side processing device that first transmitted the communication message, the log information is extracted from the received communication message, stored in the storage means, and then extracted from the communication message. The stored log information is stored in a predetermined recording area such as a log file allocated on the storage means. Here, the server-side processing device that first receives the communication message from the client-side processing device may store it in a predetermined recording area such as a log recording file.
前記の様に本発明では、アプリケーションプログラムからは見えない形で通信電文にログ情報を付加し、各サーバではなく、通信電文そのものにログを蓄えているので、通信上のどのノードであっても、その通信で、それまでに発生した事象のログを、その場で取得する事ができる。 As described above, in the present invention, log information is added to a communication message in a form invisible to the application program, and the log is stored in the communication message itself, not in each server. Through that communication, it is possible to obtain a log of events that have occurred so far.
本発明によれば所定の処理を実行する為の通信電文にログ情報を付加することにより通信電文そのものにログ情報を蓄えるので、複数の情報処理装置間で通信電文を送受信して実行した処理のログ情報を効率的に収集することが可能である。 According to the present invention, log information is stored in a communication message itself by adding log information to a communication message for executing a predetermined process. Therefore, a process executed by transmitting and receiving communication messages between a plurality of information processing devices. Log information can be collected efficiently.
以下にクライアント−サーバ処理システムで分散オブジェクト処理を行う際に、その処理履歴を示すログ情報を収集する一実施形態のログ処理システムについて説明する。 A log processing system according to an embodiment that collects log information indicating a processing history when performing distributed object processing in a client-server processing system will be described below.
図1は本実施形態のログ処理システムの概略構成を示す図である。図1に示す様に本実施形態のログ処理システムは、クライアント側処理装置100と、サーバ側処理装置110とを有している。
FIG. 1 is a diagram showing a schematic configuration of a log processing system according to the present embodiment. As shown in FIG. 1, the log processing system of this embodiment includes a client
クライアント側処理装置100は、所定の処理を実行する為の通信電文であるリクエストや、前記所定の処理の実行結果とログ情報を含む通信電文であるレスポンスをサーバ側処理装置110との間で送受信する第1の情報処理装置である。
The client-
サーバ側処理装置110は、所定の処理のログ情報を付加した通信電文であるリクエストやレスポンスをクライアント側処理装置100または他のサーバ側処理装置110との間で送受信する第2の情報処理装置である。
The server-
クライアント側処理装置100は、送信インターセプタ処理部101と、受信インターセプタ処理部102とを有している。
The client-
送信インターセプタ処理部101は、所定の処理を実行する為の通信電文であるリクエストとして、付加するログ情報を識別する為の付加識別情報を含む通信電文を通信装置により送信先のサーバ側処理装置110へ送信する処理部である。
The transmission interceptor processing unit 101 transmits a communication message including additional identification information for identifying log information to be added as a request which is a communication message for executing a predetermined process, to a server-
受信インターセプタ処理部102は、前記リクエストにより実行された所定の処理の実行結果とログ情報を含む通信電文であるレスポンスをサーバ側処理装置110から受信し、その受信したレスポンスに付加されているログ情報を取り出して、磁気ディスク装置上に割り当てられた所定のファイルへ格納する処理部である。
The reception
クライアント側処理装置100を送信インターセプタ処理部101及び受信インターセプタ処理部102として機能させる為のプログラムは、CD−ROM等の記録媒体に記録され磁気ディスク等に格納された後、メモリにロードされて実行されるものとする。なお前記プログラムを記録する記録媒体はCD−ROM以外の他の記録媒体でも良い。また前記プログラムを当該記録媒体から情報処理装置にインストールして使用しても良いし、ネットワークを通じて当該記録媒体にアクセスして前記プログラムを使用するものとしても良い。
A program for causing the client-
サーバ側処理装置110は、受信インターセプタ処理部111と、送信インターセプタ処理部112とを有している。
The server
受信インターセプタ処理部111は、所定の処理を実行する為のリクエストまたはそのレスポンスを示す通信電文を通信装置により送信元のクライアント側処理装置100またはサーバ側処理装置110から受信し、その受信したリクエストまたはレスポンスに付加されているログ情報を取り出してメモリ中に格納する処理部である。
The reception
送信インターセプタ処理部112は、前記リクエストにより実行された所定の処理のログ情報を前記メモリ中に追加し、前記格納したログ情報と前記追加したログ情報とを前記付加識別情報に応じてメモリから読み出してリクエストまたはレスポンスに付加し、前記ログ情報を付加したリクエストまたはレスポンスを、クライアント側処理装置100またはサーバ側処理装置110へ通信装置により送信する処理部である。
The transmission
サーバ側処理装置110を受信インターセプタ処理部111及び送信インターセプタ処理部112として機能させる為のプログラムは、CD−ROM等の記録媒体に記録され磁気ディスク等に格納された後、メモリにロードされて実行されるものとする。なお前記プログラムを記録する記録媒体はCD−ROM以外の他の記録媒体でも良い。また前記プログラムを当該記録媒体から情報処理装置にインストールして使用しても良いし、ネットワークを通じて当該記録媒体にアクセスして前記プログラムを使用するものとしても良い。
A program for causing the server-
図2は従来のログ収集処理の概要を示す図である。図2の様に従来のログ収集処理では、分散オブジェクト処理により複数のサーバアクセスを行う際にログ情報がノード毎に分散しているので、クライアントの一つのリクエストに対してログを収集するためにはサーバ間のログの突き合わせが必要であり、ログ情報の収集や収集したログ情報の解析に手間取っていた。 FIG. 2 is a diagram showing an overview of a conventional log collection process. As shown in FIG. 2, in the conventional log collection process, log information is distributed for each node when accessing multiple servers by distributed object processing. Needed to match logs between servers, and it took time to collect log information and analyze the collected log information.
図3は従来のログマネージャによるログ収集処理の概要を示す図である。図3に示す様にログマネージャによるログ収集処理では、一つのログマネージャにログを収集して一元管理して時刻やIDによるログ情報の管理を行い、ログ収集を効率的に行っているが、ログ情報が一カ所に集められてしまうために、そこがボトルネックやクリティカルポイントになり易いという問題がある。 FIG. 3 is a diagram showing an outline of log collection processing by a conventional log manager. As shown in FIG. 3, in the log collection processing by the log manager, logs are collected in one log manager and managed centrally, log information is managed by time and ID, and log collection is performed efficiently. Since log information is collected in one place, there is a problem that it easily becomes a bottleneck or a critical point.
また図2のサーバへの分散や図3のログマネージャへの収集のどちらであってもクライアント側にログがあるわけではないので、従来技術においてクライアントは自分のアクセスについてID等によりサーバやログマネージャのログを取得する必要がある。 In addition, since there is no log on the client side regardless of whether it is distributed to the server in FIG. 2 or collected in the log manager in FIG. Need to get the logs.
図4は本実施形態のログ収集処理の概要を示す図である。図4に示す様に本実施形態のログ収集処理では、ユーザやアプリケーションプログラムからは見えない形で通信電文にログ情報を付加し、各サーバではなく、通信電文そのものにログを蓄える。これにより通信上のどのノードであっても、その通信で、それまでに発生した事象のログを、その場で取得する事ができる。この為、クライアント等の各処理装置は、自装置のログ情報を、自装置で収集することが可能であり、また、過去のログ情報をクライアント等の各処理装置に分散して持つので、ディスクリソースの効率的な利用を図ることができる。 FIG. 4 is a diagram showing an outline of the log collection processing of this embodiment. As shown in FIG. 4, in the log collection processing of this embodiment, log information is added to the communication message in a form that is not visible to the user or application program, and the log is stored not in each server but in the communication message itself. As a result, any node on the communication can acquire a log of events that have occurred so far in the communication. For this reason, each processing device such as a client can collect its own log information by its own device, and since past log information is distributed to each processing device such as a client, Efficient use of resources can be achieved.
図5は本実施形態のアプリケーション処理時の通信処理の概要を示す図である。図5に示す様に本実施形態の送信インターセプタ処理や受信インターセプタ処理では、UAP(User Application Program)間の通信時に、例えば分散オブジェクト基盤プログラムのインターセプタ機能の様に、通信内容に付加情報を追加する機能を持たせることにより通信電文にログ情報を付加する。その際、各ノードでは、送信する通信電文に、自ノードで発生したログ情報を、例えば分散オブジェクト基盤プログラムのサービスコンテキストの様なユーザやアプリケーションプログラムからは見えない場所に付加する。 FIG. 5 is a diagram showing an outline of communication processing during application processing according to the present embodiment. As shown in FIG. 5, in the transmission interceptor process and the reception interceptor process of this embodiment, additional information is added to the communication content during communication between UAPs (User Application Programs), for example, like the interceptor function of the distributed object platform program. Log information is added to a communication message by providing a function. At that time, in each node, the log information generated in the own node is added to the communication message to be transmitted in a place that is not visible to the user or application program such as the service context of the distributed object platform program.
図6は本実施形態のログ収集処理時のメモリへのログの記録を示す図である。図6に示す様に本実施形態の各ノードでは、通信電文を受信したときに、通信電文に付加されていたログ情報を通信電文から取り出してメモリ等の記憶装置内に記録する。記録する場所は、Java言語であれば、そのスレッドに独自のThreadLocalの様な場所に行う。そして通信電文の送信時に、自ノード以前で発生したログがメモリ上に記録されていた場合には、そのログをメモリから取り出して、送信する通信電文に付加する。 FIG. 6 is a diagram illustrating recording of a log in the memory at the time of log collection processing according to the present embodiment. As shown in FIG. 6, when receiving a communication message, each node in the present embodiment extracts log information added to the communication message from the communication message and records it in a storage device such as a memory. In the case of the Java language, the recording is performed in a place such as ThreadLocal unique to the thread. If a log generated before the current node is recorded in the memory at the time of transmission of the communication message, the log is taken out of the memory and added to the communication message to be transmitted.
以下に、本実施形態のログ処理システムにおいて、ユーザアプリケーションプログラムの処理によって通信電文の送信要求が発行された場合のログ情報の付加処理について説明する。本実施形態のログ処理システムにおいて、ユーザアプリケーションプログラムの処理によって通信電文の送信要求が発行されると、分散オブジェクト基盤プログラム等の通信基盤を構成するソフトウェアのインターセプタ機能により送信インターセプタ処理が開始される。 Hereinafter, in the log processing system according to the present embodiment, a log information addition process when a communication message transmission request is issued by a process of a user application program will be described. In the log processing system of this embodiment, when a transmission request for a communication message is issued by processing of a user application program, transmission interceptor processing is started by a software interceptor function that constitutes a communication platform such as a distributed object platform program.
図7は本実施形態の送信インターセプタ処理の処理手順を示すフローチャートである。ユーザアプリケーションプログラムの処理によって通信電文の送信要求が発行されると、ステップ701でクライアント側処理装置100の送信インターセプタ処理部101またはサーバ側処理装置110の送信インターセプタ処理部112は、その送信要求を発行したアプリケーション処理を識別する為のスレッド番号を取得してメモリに格納する。
FIG. 7 is a flowchart showing the processing procedure of the transmission interceptor processing of this embodiment. When a communication message transmission request is issued by the processing of the user application program, in
ステップ702では、前記取得したスレッド番号で識別されるスレッド固有のメモリ領域にアクセスして、通信電文に付加するログ情報を識別する為の付加識別情報が格納されているかどうかを調べ、前記付加識別情報が格納されている場合には、その識別情報を前記スレッド固有のメモリ領域から読み出して通信電文に付加する。ここで前記付加識別情報は、どの程度のログ情報を収集するかによって予め利用者によって設定されるものとするが、通信トラフィックの混雑状況や、エラー発生状況に応じて各情報処理装置が設定するものとしても良い。
In
ステップ703では、前記スレッド固有のメモリ領域にアクセスして、前記アプリケーションプログラムの処理によって出力されたログ情報がメモリ内に格納されているかどうかを調べ、前記スレッド固有のメモリ領域にログ情報が格納されている場合にはステップ704へ進む。
In
本実施形態のサーバ側処理装置110は、他の情報処理装置から受信した通信電文により所定のユーザアプリケーション処理を実行した場合、その処理によってメソッドの呼び出し等の所定の処理要求が発行された際にその内容を示すログ情報の出力を行い、当該アプリケーション処理のスレッド番号に対応したスレッド固有のメモリ領域に前記ログ情報を格納する。この為、アプリケーション処理を実行した後に送信要求を発行した場合、スレッド固有のメモリ領域には、実行した所定の処理のログ情報が格納されていることになる。また、図9で説明する様に、他の情報処理装置からログ情報を受信している場合、スレッド固有のメモリ領域には、他の情報処理装置でのログ情報も格納されている。
When the server-
図8は本実施形態のログ情報のデータ構造例を示す図である。図8に示す様に本実施形態のクライアント側処理装置100やサーバ側処理装置110は、そのログ情報を出力したアプリケーション処理を識別する為のスレッド番号801と、そのログ情報が出力された日時を示す日時情報802と、その処理が実行された情報処理装置を示すノード名803と、その処理を実行したメソッド等の名称を示す処理名と、その処理のログ情報記録時の状態を示すステータス805と、そのログ情報記録時に入力または出力されたデータやエラーメッセージを示す入出力データ806とをスレッド固有のメモリ領域に格納している。
FIG. 8 is a diagram illustrating a data structure example of log information according to the present embodiment. As shown in FIG. 8, the client-
ステップ704では、前記スレッド固有のメモリ領域に格納されているログ情報からレコードを読み出してメモリ内に格納した後、ステップ705に進み、そのメモリ内に格納したレコードの中から前記付加識別情報に対応するログ内容を取得してメモリの別領域に格納する。例えば、前記付加識別情報が各ノードで実行された処理を示すログ情報の付加を示すものである場合にはスレッド番号801から処理名804までのログ内容を取得し、前記付加識別情報が各ノードで実行された処理とその状態を示すログ情報の付加を示すものである場合にはスレッド番号801からステータス805までのログ内容を、更に前記付加識別情報が全てのログ情報の付加を示すものである場合にはそのレコードの内容全てを取得してメモリの別領域に格納する。
In
ステップ706では、前記メモリ内に格納したレコード中のステータス805を参照して、その参照したステータス805がエラーの発生を示すものであるかどうかを調べ、エラーの発生を示すものである場合にはステップ707へ進む。
In
ステップ707では、前記メモリ内に格納したレコードの中からエラーの内容を示す情報を取得してメモリの前記別領域に追加する。例えば、ステータス805がエラーであるレコードの直前のレコードから直後のレコードまでの入出力データ806に格納されている、入力データ、エラーメッセージ及び出力データの内容を、そのエラーの内容を示す情報として取得してメモリの前記別領域に追加する。また、ステータス805がエラーであるレコードの直前のレコードから直後のレコードまでの全てのログ内容を、そのエラーの内容を示す情報としても良い。
In
ステップ708では、他の情報処理装置へ送信される通信電文に前記メモリの別領域に格納したログ内容を付加する。この付加処理では、例えば、分散オブジェクト基盤プログラムのサービスコンテキストの様な、ユーザやアプリケーションプログラムからは見えない場所に付加を行うものとする。
In
ステップ709では、前記スレッド固有のメモリ領域に格納されている全レコードを読み出したかどうかを調べ、まだ全レコードの読み出しが終了していない場合にはステップ704へ戻って次のレコードを読み出し、全レコードの読み出しが終了した場合にはステップ710へ進む。
In
ステップ710では、前記付加識別情報やログ情報の付加の行われた通信電文を通信装置により送信先の情報処理装置へ送信する。
In
また前記処理では、通常の通信電文の送信時にログ情報を付加した通信電文を送信しているが、通常の送信時にはログ情報の付加されていない通信電文を送信し、通信負荷の低い時間帯等にログ情報を付加した通信電文を送信することにより、ログ情報の付加されていない通信電文を送受信する通信処理とは異なるログ収集専用の通信処理を行う様にしても良い。これにより、ログ情報の付加により通信量が増える場合の通信の性能低下を防ぐ事ができる。 In the above process, a communication message with log information added is transmitted when a normal communication message is transmitted, but a communication message without log information is transmitted during normal transmission, such as a time zone with a low communication load. By transmitting a communication message with log information added thereto, a communication process dedicated to log collection may be performed, which is different from the communication process of transmitting / receiving a communication message with no log information added. As a result, it is possible to prevent a decrease in communication performance when the amount of communication increases due to the addition of log information.
次に、本実施形態のログ処理システムにおいて、他の情報処理装置から通信電文が送信された場合のログ情報の取り出しやログ情報のファイルへの記録処理について説明する。本実施形態のログ処理システムにおいて、他の情報処理装置から通信電文が送信されると、分散オブジェクト基盤プログラム等の通信基盤を構成するソフトウェアのインターセプタ機能により受信インターセプタ処理が開始される。 Next, in the log processing system according to the present embodiment, a process for extracting log information and recording the log information in a file when a communication message is transmitted from another information processing apparatus will be described. In the log processing system according to the present embodiment, when a communication message is transmitted from another information processing apparatus, reception interceptor processing is started by an interceptor function of software constituting a communication infrastructure such as a distributed object infrastructure program.
図9は本実施形態の受信インターセプタの処理手順を示すフローチャートである。他の情報処理装置から通信電文が送信されると、ステップ901でサーバ側処理装置110の受信インターセプタ処理部111またはクライアント側処理装置100の受信インターセプタ処理部102は、その送信された通信電文を受信してメモリ内に格納する。
FIG. 9 is a flowchart showing a processing procedure of the reception interceptor of the present embodiment. When a communication message is transmitted from another information processing device, the reception
ステップ902では、前記メモリ内に格納した通信電文の処理を行う為のスレッドのスレッド番号を取得し、そのスレッド固有のメモリ領域をメモリ内に確保する。
In
ステップ903では、前記メモリ内に格納した通信電文から付加識別情報を読み出して前記スレッド固有のメモリ領域内に格納する。その後、前記メモリ内の通信電文のログ情報の格納位置を参照し、ログ情報の取り出しを行う。
In
ステップ904では、前記ログ情報の取り出し処理により、通信電文からログ情報が取り出されたかどうかを調べ、ログ情報が取り出された場合にはステップ905へ進む。ステップ905では、前記通信電文から取り出したログ情報を、前記確保したスレッド固有のメモリ領域内に格納する。
In
ステップ906では、その情報処理装置内のメモリ中の所定領域にアクセスしてログ情報の記録が必要であることを示す記録指示情報が格納されているかどうかを調べ、前記記録指示情報が格納されている場合にはステップ907に進み、前記スレッド固有のメモリに格納したログ情報を磁気ディスク装置上に割り当てられたログ記録用ファイルに書き出す。
In
前記記録指示情報は、ログ情報を収集しようとする利用者によって予め設定されているものとするが、リクエストを最初に発行するクライアント側処理装置100や、クライアント側処理装置100から最初にリクエストを受信するサーバ側処理装置110内に、予め設定しておき、それらの装置内のログ記録用ファイルにログ情報を収集するものとしても良い。
The recording instruction information is set in advance by a user who intends to collect log information, but the request is first received from the client
次に、本実施形態のログ処理システムにおいて、図4に示した様にリクエスト及びレスポンスをクライアント側処理装置100及びサーバ側処理装置110で送受信してサーバ1及びサーバ2で提供されるサービスをクライアントで受けた場合に、ログ情報を収集してクライアント側処理装置100のログ記録用ファイルに記録する処理について説明する。
Next, in the log processing system according to the present embodiment, as shown in FIG. 4, requests and responses are transmitted and received by the client
図4のクライアントでユーザアプリケーションプログラムの処理によって、サーバ1によるサービスを受ける為のリクエストの送信要求が発行されると、図7のステップ701でクライアント側処理装置100の送信インターセプタ処理部101は、そのアプリケーション処理のスレッド番号を取得してメモリに格納し、ステップ702では、前記取得したスレッド番号で識別されるスレッド固有のメモリ領域から付加識別情報を読み出して前記リクエストに付加する。
When a request for transmitting a request for receiving a service by the server 1 is issued by the processing of the user application program in the client of FIG. 4, the transmission interceptor processing unit 101 of the client
次にステップ703では、前記スレッド固有のメモリ領域にログ情報が格納されているかどうかを調べるが、まだクライアント側にはログ情報が無いのでステップ710へ進み、前記付加識別情報の付加の行われたリクエストを通信装置により送信先のサーバ1へ送信する。
Next, in
図4の様にクライアントからサーバ1にリクエストが送信されると、ステップ901でサーバ1の受信インターセプタ処理部111は、その送信されたリクエストを受信してメモリ内に格納し、ステップ902では、スレッド固有のメモリ領域をメモリ内に確保する。
When a request is transmitted from the client to the server 1 as shown in FIG. 4, the reception
次にステップ903では、前記メモリ内に格納したリクエストから付加識別情報を読み出して前記スレッド固有のメモリ領域内に格納した後、前記リクエストからログ情報の取り出しを行うが、まだログ情報は格納されていないので、ステップ904を経てこの処理を終了する。
Next, in
その後、サーバ1は、クライアントから受信したリクエストにより所定のサービスを提供する為のユーザアプリケーション処理を実行した場合、その処理によってメソッドの呼び出し等の所定の処理要求が発行された際にその内容を示すログ情報「S1ログ」を、前記確保したスレッド固有のメモリ領域内に格納する。 Thereafter, when the server 1 executes a user application process for providing a predetermined service in response to a request received from the client, the server 1 indicates the contents when a predetermined process request such as a method call is issued by the process. Log information “S1 log” is stored in the reserved thread-specific memory area.
サーバ1でのユーザアプリケーション処理の結果、他のサーバへのリクエストまたはクライアントへのレスポンスのいずれが発行されるかはその処理内容に依存するが、ここでは図4の様にサーバ1からサーバ2へのリクエストが発行されるものとすると、ステップ701でサーバ1の送信インターセプタ処理部112は、その送信要求を発行したアプリケーション処理を識別する為のスレッド番号を取得し、ステップ702では、スレッド固有のメモリ領域から付加識別情報を読み出してリクエストに付加する。
Whether a request to another server or a response to the client is issued as a result of the user application processing in the server 1 depends on the processing content, but here, from the server 1 to the
ステップ703からステップ709の処理では、前記スレッド固有のメモリ領域から前記付加識別情報に従ってログ情報「S1ログ」を取得してリクエストに付加し、ステップ710では、前記付加識別情報及びログ情報「S1ログ」が付加されたリクエストを通信装置によりサーバ2へ送信する。
In the processing from
図4の様にサーバ1からサーバ2に、ログ情報「S1ログ」が付加されたリクエストが送信されると、ステップ901でサーバ2の受信インターセプタ処理部111は、その送信されたリクエストを受信してメモリ内に格納し、ステップ902では、スレッド固有のメモリ領域をメモリ内に確保する。
As shown in FIG. 4, when a request with log information “S1 log” is transmitted from the server 1 to the
次にステップ903では、前記メモリ内に格納したリクエストから付加識別情報を読み出して前記スレッド固有のメモリ領域内に格納した後、前記リクエストからログ情報「S1ログ」を取り出して、ステップ905で、前記スレッド固有のメモリ領域内にログ情報「S1ログ」を格納する。
Next, in
ステップ906では、そのサーバ2内のメモリ中の所定領域にアクセスしてログ情報の記録が必要であることを示す記録指示情報が格納されているかどうかを調べるが、サーバ2に前記記録指示情報が格納されていないものとすると、ここでこの処理を終了する。
In
その後、サーバ2は、サーバ1から受信したリクエストにより所定のサービスを提供する為のユーザアプリケーション処理を実行した場合、その処理によってメソッドの呼び出し等の所定の処理要求が発行された際にその内容を示すログ情報「S2ログ」を、前記確保したスレッド固有のメモリ領域内に追加する。
Thereafter, when the
サーバ2でのユーザアプリケーション処理の結果、図4の様にサーバ2からサーバ1へのレスポンスが発行されるものとすると、ステップ701でサーバ2の送信インターセプタ処理部112は、その送信要求を発行したアプリケーション処理を識別する為のスレッド番号を取得し、ステップ702では、スレッド固有のメモリ領域から付加識別情報を読み出してレスポンスに付加する。
As a result of the user application processing in the
ステップ703からステップ709の処理では、前記スレッド固有のメモリ領域から前記付加識別情報に従ってログ情報「S1ログ、S2ログ」を取得してレスポンスに付加し、ステップ710では、前記付加識別情報及びログ情報「S1ログ、S2ログ」が付加されたレスポンスを通信装置によりサーバ1へ送信する。
In the processing from
図4の様にサーバ2からサーバ1にログ情報「S1ログ、S2ログ」が付加されたレスポンスが送信されると、ステップ901でサーバ1の受信インターセプタ処理部111は、その送信されたレスポンスを受信してメモリ内に格納し、ステップ902では、スレッド固有のメモリ領域をメモリ内に確保する。
As shown in FIG. 4, when a response with log information “S1 log, S2 log” is transmitted from the
次にステップ903では、前記メモリ内に格納したレスポンスから付加識別情報を読み出して前記スレッド固有のメモリ領域内に格納した後、前記レスポンスからログ情報「S1ログ、S2ログ」を取り出して、ステップ905で、前記スレッド固有のメモリ領域内にログ情報「S1ログ、S2ログ」を格納する。
Next, in
ステップ906では、そのサーバ2内のメモリ中の所定領域にアクセスしてログ情報の記録が必要であることを示す記録指示情報が格納されているかどうかを調べるが、サーバ1に前記記録指示情報が格納されていないものとすると、ここでこの処理を終了する。
In
その後、サーバ1は、クライアントから受信したレスポンスに応じたユーザアプリケーション処理を実行した場合、その処理によってメソッドの呼び出し等の所定の処理要求が発行された際にその内容を示すログ情報「S1ログ2」を、前記確保したスレッド固有のメモリ領域内に追加する。
Thereafter, when the server 1 executes the user application process corresponding to the response received from the client, the log information “
サーバ1でのユーザアプリケーション処理の結果、図4の様にサーバ1からクライアントへのレスポンスが発行されるものとすると、ステップ701でサーバ1の送信インターセプタ処理部112は、その送信要求を発行したアプリケーション処理を識別する為のスレッド番号を取得し、ステップ702では、スレッド固有のメモリ領域から付加識別情報を読み出してレスポンスに付加する。
As a result of the user application process in the server 1, if a response from the server 1 to the client is issued as shown in FIG. 4, the transmission
ステップ703からステップ709の処理では、前記スレッド固有のメモリ領域から前記付加識別情報に従ってログ情報「S1ログ、S2ログ、S1ログ2」を取得してレスポンスに付加し、ステップ710では、前記付加識別情報及びログ情報「S1ログ、S2ログ、S1ログ2」が付加されたレスポンスを通信装置によりクライアントへ送信する。
In the processing from
図4の様にサーバ1からクライアントへログ情報「S1ログ、S2ログ、S1ログ2」が付加されたレスポンスが送信されると、ステップ901でクライアント側処理装置100の受信インターセプタ処理部102は、その送信されたレスポンスを受信してメモリ内に格納し、ステップ902では、スレッド固有のメモリ領域をメモリ内に確保する。
When the response with the log information “S1 log, S2 log,
次にステップ903では、前記レスポンスからログ情報「S1ログ、S2ログ、S1ログ2」を取り出して、ステップ905で、前記スレッド固有のメモリ領域内にログ情報「S1ログ、S2ログ、S1ログ2」を格納する。
In
ステップ906では、そのクライアント内のメモリ中の所定領域にアクセスしてログ情報の記録が必要であることを示す記録指示情報が格納されているかどうかを調べ、クライアントに前記記録指示情報が格納されているものとすると、ステップ907に進み、前記スレッド固有のメモリに格納したログ情報「S1ログ、S2ログ、S1ログ2」を磁気ディスク装置上に割り当てられたログ記録用ファイルに書き出す。
In
前記の様に本実施形態のログ処理システムでは、ログ情報をその発生順に通信電文に付加して収集しているので、複数のログ情報の突き合わせを行ってどのログ情報がどの処理要求によるものであるかを調べる必要は無く、ログ情報の解析に時間を要するという問題を解決することができる。 As described above, in the log processing system according to the present embodiment, log information is added to a communication message in the order in which the log information is generated. Therefore, a plurality of log information is matched and which log information is caused by which processing request. There is no need to check whether there is any, and the problem that it takes time to analyze log information can be solved.
また従来技術においてログマネージャを利用した場合には、ログ情報が一カ所に集められてしまう為、そこがボトルネックやクリティカルポイントになり易いという問題があるが、本実施形態では、リクエストを最初に発行した各クライアント側処理装置(最初にリクエストを受信したサーバ側処理装置でも良い)にログ情報が分散する為、特定の情報処理装置がボトルネックやクリティカルポイントになることが無い。 In addition, when a log manager is used in the prior art, since log information is collected in one place, there is a problem that it tends to become a bottleneck or a critical point. Since log information is distributed to each issued client-side processing device (or the server-side processing device that received the request first), a specific information processing device does not become a bottleneck or a critical point.
以上説明した様に本実施形態のログ処理システムによれば、所定の処理を実行する為の通信電文にログ情報を付加することにより通信電文そのものにログ情報を蓄えるので、複数の情報処理装置間で通信電文を送受信して実行した処理のログ情報を効率的に収集することが可能である。 As described above, according to the log processing system of the present embodiment, log information is stored in a communication message itself by adding log information to the communication message for executing a predetermined process. It is possible to efficiently collect log information of processes executed by transmitting and receiving communication messages.
100…クライアント側処理装置、110…サーバ側処理装置、101…送信インターセプタ処理部、102…受信インターセプタ処理部、111…受信インターセプタ処理部、112…送信インターセプタ処理部、801…スレッド番号、802…日時情報、803…ノード名、804…処理名、805…ステータス、806…入出力データ。
DESCRIPTION OF
Claims (10)
所定の処理を実行する為の通信電文を通信手段により送信元の情報処理装置から受信するステップと、その受信した通信電文に付加されているログ情報を取り出して記憶手段中に格納するステップと、前記通信電文により実行された所定の処理のログ情報を前記記憶手段中に格納するステップと、前記格納したログ情報を記憶手段から読み出して通信電文に付加するステップと、前記ログ情報を付加した通信電文を通信手段により送信先の情報処理装置へ送信するステップとを有することを特徴とするログ処理方法。 In a log processing method for processing log information indicating a processing history in an information processing device,
Receiving a communication message for executing a predetermined process from the information processing apparatus of the transmission source by the communication means, extracting log information added to the received communication message, and storing the log information in the storage means; A step of storing log information of a predetermined process executed by the communication message in the storage unit; a step of reading the stored log information from the storage unit and adding it to the communication message; and a communication to which the log information is added And a step of transmitting a message to a destination information processing apparatus by communication means.
所定の処理を実行する為の通信電文を通信手段により送信元の情報処理装置から受信するステップと、前記受信した通信電文に付加されているログ情報を取り出して記憶手段中に格納するステップと、前記所定の処理の実行によって生成されたログ情報を前記記憶手段中に格納するステップと、前記格納したログ情報を記憶手段から読み出して通信電文に付加するステップと、前記ログ情報を付加した通信電文を通信手段により送信先の情報処理装置へ送信するステップとをコンピュータに実行させることを特徴とするプログラム。 In a program for causing a computer to execute a log processing method for processing log information indicating a processing history in an information processing device,
Receiving a communication message for executing a predetermined process from the information processing apparatus of the transmission source by the communication unit, extracting log information added to the received communication message, and storing the log information in the storage unit; A step of storing log information generated by execution of the predetermined processing in the storage means; a step of reading the stored log information from the storage means and adding it to a communication message; and a communication message to which the log information is added A program for causing a computer to execute the step of transmitting the information to a destination information processing apparatus by means of communication means.
所定の処理を実行する為の通信電文を通信手段により送信先の情報処理装置へ送信する第1の送信インターセプタ処理部と、前記所定の処理の実行結果とログ情報を含む通信電文を前記情報処理装置から受信する第1の受信インターセプタ処理部とを備える第1の情報処理装置と、
所定の処理を実行する為の通信電文を通信手段により送信元の情報処理装置から受信し、その受信した通信電文に付加されているログ情報を取り出して記憶手段中に格納する第2の受信インターセプタ処理部と、前記所定の処理の実行によって生成されたログ情報を前記記憶手段中に格納し、前記格納したログ情報を記憶手段から読み出して通信電文に付加し、前記ログ情報を付加した通信電文を通信手段により送信先の情報処理装置へ送信する第2の送信インターセプタ処理部とを備える第2の情報処理装置とを備えることを特徴とするログ処理システム。
In a log processing system that processes log information indicating a processing history in an information processing device,
A first transmission interceptor processing unit configured to transmit a communication message for executing a predetermined process to a destination information processing apparatus by a communication unit; and a communication message including an execution result of the predetermined process and log information. A first information processing apparatus comprising a first reception interceptor processing unit for receiving from the apparatus;
A second reception interceptor that receives a communication message for executing a predetermined process from the information processing apparatus of the transmission source by the communication unit, extracts log information added to the received communication message, and stores it in the storage unit A communication message in which log information generated by execution of the predetermined processing is stored in the storage unit, the stored log information is read from the storage unit, added to the communication message, and the log information is added A log processing system comprising: a second information processing apparatus including a second transmission interceptor processing unit that transmits the information to a destination information processing apparatus using communication means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003395126A JP2005157727A (en) | 2003-11-26 | 2003-11-26 | Log processing method, and processing program and execution system of the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003395126A JP2005157727A (en) | 2003-11-26 | 2003-11-26 | Log processing method, and processing program and execution system of the same |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005157727A true JP2005157727A (en) | 2005-06-16 |
Family
ID=34720972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003395126A Pending JP2005157727A (en) | 2003-11-26 | 2003-11-26 | Log processing method, and processing program and execution system of the same |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005157727A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008228027A (en) * | 2007-03-14 | 2008-09-25 | Fujitsu Ltd | Network system, relay processing apparatus, and log information management method |
JP2008294856A (en) * | 2007-05-25 | 2008-12-04 | Fujitsu Ltd | Program, method and device for collecting information |
JP2010198436A (en) * | 2009-02-26 | 2010-09-09 | Fujitsu Ltd | Log acquisition program and log acquisition method |
JP2013045256A (en) * | 2011-08-23 | 2013-03-04 | Fujitsu Ltd | Server device, system, and log collection support method |
JP2016057971A (en) * | 2014-09-11 | 2016-04-21 | 富士ゼロックス株式会社 | Information processing system, program, and information processing device |
-
2003
- 2003-11-26 JP JP2003395126A patent/JP2005157727A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008228027A (en) * | 2007-03-14 | 2008-09-25 | Fujitsu Ltd | Network system, relay processing apparatus, and log information management method |
JP2008294856A (en) * | 2007-05-25 | 2008-12-04 | Fujitsu Ltd | Program, method and device for collecting information |
JP2010198436A (en) * | 2009-02-26 | 2010-09-09 | Fujitsu Ltd | Log acquisition program and log acquisition method |
JP2013045256A (en) * | 2011-08-23 | 2013-03-04 | Fujitsu Ltd | Server device, system, and log collection support method |
US9594663B2 (en) | 2011-08-23 | 2017-03-14 | Fujitsu Limited | Apparatus and method for collecting log information from a plurality of servers |
JP2016057971A (en) * | 2014-09-11 | 2016-04-21 | 富士ゼロックス株式会社 | Information processing system, program, and information processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8069224B2 (en) | Method, equipment and system for resource acquisition | |
US8151107B2 (en) | Method and system for detecting concurrent logins | |
KR101221205B1 (en) | Method and apparatus for collecting data for characterizing http session workloads | |
JP5018774B2 (en) | Monitoring device, monitoring system, monitoring method and program | |
US8326971B2 (en) | Method for using dynamically scheduled synthetic transactions to monitor performance and availability of E-business systems | |
JP2005539298A (en) | Method and system for remotely and dynamically configuring a server | |
JP2010128877A (en) | Web system and method of collecting processing record | |
US6954779B2 (en) | Method for providing performance data of a web server independent of platform | |
JP6518297B2 (en) | System and method for performing an antivirus scan of a web page | |
US20090204648A1 (en) | Tracking metadata for files to automate selective backup of applications and their associated data | |
JP4764300B2 (en) | Stream data management system, stream data management method and program thereof | |
US10775751B2 (en) | Automatic generation of regular expression based on log line data | |
JP6200376B2 (en) | In-vehicle information system and information processing method thereof | |
JP3845497B2 (en) | Computer system | |
US8239862B2 (en) | Apparatus, method, and computer program product for processing information | |
US7853956B2 (en) | Message system and method | |
CN113360413A (en) | Code testing method and device | |
CN111488373B (en) | Method and system for processing request | |
JP2005157727A (en) | Log processing method, and processing program and execution system of the same | |
CN111930385A (en) | Data acquisition method, device, equipment and storage medium | |
US20170223136A1 (en) | Any Web Page Reporting and Capture | |
JP2007200134A (en) | Log information management device, log information management method, log information management program, and recording medium | |
JP2006190033A (en) | Information processing system and processing method for communication reproduction | |
US20140067854A1 (en) | Crawling of generated server-side content | |
JP2007264921A (en) | Performance information extraction program and apparatus |