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 PDF

Info

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
Application number
JP2003395126A
Other languages
Japanese (ja)
Inventor
Takuya Ono
卓也 小野
Shuntaro Hitomi
俊太郎 人見
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2003395126A priority Critical patent/JP2005157727A/en
Publication of JP2005157727A publication Critical patent/JP2005157727A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique that can efficiently collect log information about processing executed under the exchange of communication messages between a plurality of information processors. <P>SOLUTION: The log processing method for processing log information representing processing histories in the information processors has a step of receiving a communication message for executing predetermined processing from a source information processor by means of communication means, a step of extracting log information added to the received communication message and storing it in storing means, a step of storing log information about the predetermined processing executed upon the communication message in the storing means, a step of reading the stored log information from the storing means and adding it to a communication message, and a step of sending the communication message with the log information added to a destination information processor by means of the communication means. <P>COPYRIGHT: (C)2005,JPO&NCIPI

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).

特開平10−293704号公報JP-A-10-293704

前記従来技術では、複数の情報処理装置に分散してログ情報を格納した場合、各情報処理装置内のログ情報の突き合わせを行って、どのログ情報がどの処理要求によるものであるかを調べる必要がある為、ログ情報の解析に時間を要するという問題がある。   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 side processing device 100 and a server side processing device 110.

クライアント側処理装置100は、所定の処理を実行する為の通信電文であるリクエストや、前記所定の処理の実行結果とログ情報を含む通信電文であるレスポンスをサーバ側処理装置110との間で送受信する第1の情報処理装置である。   The client-side processing device 100 transmits / receives a request, which is a communication message for executing a predetermined process, and a response, which is a communication message including the execution result of the predetermined process and log information, to / from the server-side processing device 110. The first information processing apparatus.

サーバ側処理装置110は、所定の処理のログ情報を付加した通信電文であるリクエストやレスポンスをクライアント側処理装置100または他のサーバ側処理装置110との間で送受信する第2の情報処理装置である。   The server-side processing device 110 is a second information processing device that transmits / receives a request or response that is a communication message to which log information of a predetermined process is added to / from the client-side processing device 100 or another server-side processing device 110. is there.

クライアント側処理装置100は、送信インターセプタ処理部101と、受信インターセプタ処理部102とを有している。   The client-side processing apparatus 100 includes a transmission interceptor processing unit 101 and a reception interceptor processing unit 102.

送信インターセプタ処理部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-side processing device 110 that is a transmission destination. It is a processing part which transmits to.

受信インターセプタ処理部102は、前記リクエストにより実行された所定の処理の実行結果とログ情報を含む通信電文であるレスポンスをサーバ側処理装置110から受信し、その受信したレスポンスに付加されているログ情報を取り出して、磁気ディスク装置上に割り当てられた所定のファイルへ格納する処理部である。   The reception interceptor processing unit 102 receives a response, which is a communication message including the execution result of the predetermined process executed by the request and log information, from the server-side processing device 110, and the log information added to the received response Is a processing unit that takes out the data and stores it in a predetermined file allocated on the magnetic disk device.

クライアント側処理装置100を送信インターセプタ処理部101及び受信インターセプタ処理部102として機能させる為のプログラムは、CD−ROM等の記録媒体に記録され磁気ディスク等に格納された後、メモリにロードされて実行されるものとする。なお前記プログラムを記録する記録媒体はCD−ROM以外の他の記録媒体でも良い。また前記プログラムを当該記録媒体から情報処理装置にインストールして使用しても良いし、ネットワークを通じて当該記録媒体にアクセスして前記プログラムを使用するものとしても良い。   A program for causing the client-side processing device 100 to function as the transmission interceptor processing unit 101 and the reception interceptor processing unit 102 is recorded on a recording medium such as a CD-ROM and stored in a magnetic disk, and then loaded into a memory for execution. Shall be. The recording medium for recording the program may be a recording medium other than the CD-ROM. The program may be used by installing it from the recording medium into the information processing apparatus, or the program may be used by accessing the recording medium through a network.

サーバ側処理装置110は、受信インターセプタ処理部111と、送信インターセプタ処理部112とを有している。   The server side processing apparatus 110 includes a reception interceptor processing unit 111 and a transmission interceptor processing unit 112.

受信インターセプタ処理部111は、所定の処理を実行する為のリクエストまたはそのレスポンスを示す通信電文を通信装置により送信元のクライアント側処理装置100またはサーバ側処理装置110から受信し、その受信したリクエストまたはレスポンスに付加されているログ情報を取り出してメモリ中に格納する処理部である。   The reception interceptor processing unit 111 receives a request for executing a predetermined process or a communication message indicating a response from the transmission-side client-side processing device 100 or the server-side processing device 110 by the communication device, and receives the received request or It is a processing unit that extracts log information added to the response and stores it in the memory.

送信インターセプタ処理部112は、前記リクエストにより実行された所定の処理のログ情報を前記メモリ中に追加し、前記格納したログ情報と前記追加したログ情報とを前記付加識別情報に応じてメモリから読み出してリクエストまたはレスポンスに付加し、前記ログ情報を付加したリクエストまたはレスポンスを、クライアント側処理装置100またはサーバ側処理装置110へ通信装置により送信する処理部である。   The transmission interceptor processing unit 112 adds log information of a predetermined process executed by the request to the memory, and reads the stored log information and the added log information from the memory according to the additional identification information. A processing unit that transmits the request or response with the log information added thereto to the client-side processing device 100 or the server-side processing device 110 by the communication device.

サーバ側処理装置110を受信インターセプタ処理部111及び送信インターセプタ処理部112として機能させる為のプログラムは、CD−ROM等の記録媒体に記録され磁気ディスク等に格納された後、メモリにロードされて実行されるものとする。なお前記プログラムを記録する記録媒体はCD−ROM以外の他の記録媒体でも良い。また前記プログラムを当該記録媒体から情報処理装置にインストールして使用しても良いし、ネットワークを通じて当該記録媒体にアクセスして前記プログラムを使用するものとしても良い。   A program for causing the server-side processing device 110 to function as the reception interceptor processing unit 111 and the transmission interceptor processing unit 112 is recorded on a recording medium such as a CD-ROM and stored in a magnetic disk or the like, and then loaded into a memory for execution. Shall be. The recording medium for recording the program may be a recording medium other than the CD-ROM. The program may be used by installing it from the recording medium into the information processing apparatus, or the program may be used by accessing the recording medium through a network.

図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 step 701, the transmission interceptor processing unit 101 of the client side processing device 100 or the transmission interceptor processing unit 112 of the server side processing device 110 issues the transmission request. The thread number for identifying the processed application is acquired and stored in the memory.

ステップ702では、前記取得したスレッド番号で識別されるスレッド固有のメモリ領域にアクセスして、通信電文に付加するログ情報を識別する為の付加識別情報が格納されているかどうかを調べ、前記付加識別情報が格納されている場合には、その識別情報を前記スレッド固有のメモリ領域から読み出して通信電文に付加する。ここで前記付加識別情報は、どの程度のログ情報を収集するかによって予め利用者によって設定されるものとするが、通信トラフィックの混雑状況や、エラー発生状況に応じて各情報処理装置が設定するものとしても良い。   In step 702, the thread-specific memory area identified by the acquired thread number is accessed to check whether additional identification information for identifying log information to be added to the communication message is stored, and the additional identification If information is stored, the identification information is read from the memory area specific to the thread and added to the communication message. Here, the additional identification information is set in advance by the user depending on how much log information is collected, but is set by each information processing apparatus according to the congestion status of the communication traffic and the error occurrence status. It is good as a thing.

ステップ703では、前記スレッド固有のメモリ領域にアクセスして、前記アプリケーションプログラムの処理によって出力されたログ情報がメモリ内に格納されているかどうかを調べ、前記スレッド固有のメモリ領域にログ情報が格納されている場合にはステップ704へ進む。   In step 703, the memory area specific to the thread is accessed to check whether the log information output by the processing of the application program is stored in the memory, and the log information is stored in the memory area specific to the thread. If yes, go to Step 704.

本実施形態のサーバ側処理装置110は、他の情報処理装置から受信した通信電文により所定のユーザアプリケーション処理を実行した場合、その処理によってメソッドの呼び出し等の所定の処理要求が発行された際にその内容を示すログ情報の出力を行い、当該アプリケーション処理のスレッド番号に対応したスレッド固有のメモリ領域に前記ログ情報を格納する。この為、アプリケーション処理を実行した後に送信要求を発行した場合、スレッド固有のメモリ領域には、実行した所定の処理のログ情報が格納されていることになる。また、図9で説明する様に、他の情報処理装置からログ情報を受信している場合、スレッド固有のメモリ領域には、他の情報処理装置でのログ情報も格納されている。   When the server-side processing apparatus 110 according to the present embodiment executes a predetermined user application process using a communication message received from another information processing apparatus, a predetermined process request such as a method call is issued by the process. Log information indicating the contents is output, and the log information is stored in a thread-specific memory area corresponding to the thread number of the application process. For this reason, when a transmission request is issued after executing the application process, log information of the executed predetermined process is stored in the thread-specific memory area. In addition, as described in FIG. 9, when log information is received from another information processing apparatus, log information in the other information processing apparatus is also stored in the thread-specific memory area.

図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-side processing device 100 and the server-side processing device 110 of this embodiment indicate the thread number 801 for identifying the application process that output the log information, and the date and time when the log information was output. Date and time information 802, a node name 803 indicating the information processing apparatus that has executed the process, a process name indicating the name of the method that executed the process, and a status 805 that indicates the status when the log information of the process is recorded In addition, input / output data 806 indicating error messages and input / output data when the log information is recorded are stored in a thread-specific memory area.

ステップ704では、前記スレッド固有のメモリ領域に格納されているログ情報からレコードを読み出してメモリ内に格納した後、ステップ705に進み、そのメモリ内に格納したレコードの中から前記付加識別情報に対応するログ内容を取得してメモリの別領域に格納する。例えば、前記付加識別情報が各ノードで実行された処理を示すログ情報の付加を示すものである場合にはスレッド番号801から処理名804までのログ内容を取得し、前記付加識別情報が各ノードで実行された処理とその状態を示すログ情報の付加を示すものである場合にはスレッド番号801からステータス805までのログ内容を、更に前記付加識別情報が全てのログ情報の付加を示すものである場合にはそのレコードの内容全てを取得してメモリの別領域に格納する。   In step 704, a record is read from the log information stored in the memory area specific to the thread and stored in the memory. Then, the process proceeds to step 705, and the additional identification information corresponding to the record stored in the memory is handled. Log contents to be acquired and stored in another area of memory. For example, when the additional identification information indicates the addition of log information indicating the process executed at each node, the log contents from the thread number 801 to the process name 804 are acquired, and the additional identification information is stored in each node. The log contents from the thread number 801 to the status 805 are displayed, and the additional identification information indicates the addition of all log information. In some cases, the entire contents of the record are acquired and stored in another area of the memory.

ステップ706では、前記メモリ内に格納したレコード中のステータス805を参照して、その参照したステータス805がエラーの発生を示すものであるかどうかを調べ、エラーの発生を示すものである場合にはステップ707へ進む。   In step 706, the status 805 in the record stored in the memory is referred to, and it is checked whether or not the status 805 referred to indicates the occurrence of an error. Proceed to step 707.

ステップ707では、前記メモリ内に格納したレコードの中からエラーの内容を示す情報を取得してメモリの前記別領域に追加する。例えば、ステータス805がエラーであるレコードの直前のレコードから直後のレコードまでの入出力データ806に格納されている、入力データ、エラーメッセージ及び出力データの内容を、そのエラーの内容を示す情報として取得してメモリの前記別領域に追加する。また、ステータス805がエラーであるレコードの直前のレコードから直後のレコードまでの全てのログ内容を、そのエラーの内容を示す情報としても良い。   In step 707, information indicating the content of the error is acquired from the records stored in the memory and added to the other area of the memory. For example, the contents of the input data, error message, and output data stored in the input / output data 806 from the record immediately before the record in which the status 805 is an error to the record immediately after is acquired as information indicating the content of the error. And add it to the other area of the memory. Further, all the log contents from the record immediately before the record whose status 805 is an error to the record immediately after it may be used as information indicating the content of the error.

ステップ708では、他の情報処理装置へ送信される通信電文に前記メモリの別領域に格納したログ内容を付加する。この付加処理では、例えば、分散オブジェクト基盤プログラムのサービスコンテキストの様な、ユーザやアプリケーションプログラムからは見えない場所に付加を行うものとする。   In step 708, the log content stored in another area of the memory is added to the communication message transmitted to the other information processing apparatus. In this addition processing, for example, addition is performed in a place that is not visible to the user or application program, such as a service context of a distributed object platform program.

ステップ709では、前記スレッド固有のメモリ領域に格納されている全レコードを読み出したかどうかを調べ、まだ全レコードの読み出しが終了していない場合にはステップ704へ戻って次のレコードを読み出し、全レコードの読み出しが終了した場合にはステップ710へ進む。   In step 709, it is checked whether all records stored in the memory area specific to the thread have been read. If all records have not been read yet, the process returns to step 704 and the next record is read. When the reading of is completed, the process proceeds to step 710.

ステップ710では、前記付加識別情報やログ情報の付加の行われた通信電文を通信装置により送信先の情報処理装置へ送信する。   In step 710, the communication message to which the additional identification information or log information is added is transmitted by the communication device to the information processing device of the transmission destination.

また前記処理では、通常の通信電文の送信時にログ情報を付加した通信電文を送信しているが、通常の送信時にはログ情報の付加されていない通信電文を送信し、通信負荷の低い時間帯等にログ情報を付加した通信電文を送信することにより、ログ情報の付加されていない通信電文を送受信する通信処理とは異なるログ収集専用の通信処理を行う様にしても良い。これにより、ログ情報の付加により通信量が増える場合の通信の性能低下を防ぐ事ができる。   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 interceptor processing unit 111 of the server side processing device 110 or the reception interceptor processing unit 102 of the client side processing device 100 receives the transmitted communication message in step 901. And store it in memory.

ステップ902では、前記メモリ内に格納した通信電文の処理を行う為のスレッドのスレッド番号を取得し、そのスレッド固有のメモリ領域をメモリ内に確保する。   In step 902, the thread number of the thread for processing the communication message stored in the memory is acquired, and a memory area specific to the thread is secured in the memory.

ステップ903では、前記メモリ内に格納した通信電文から付加識別情報を読み出して前記スレッド固有のメモリ領域内に格納する。その後、前記メモリ内の通信電文のログ情報の格納位置を参照し、ログ情報の取り出しを行う。   In step 903, the additional identification information is read from the communication message stored in the memory and stored in the thread-specific memory area. Thereafter, referring to the storage location of the log information of the communication message in the memory, the log information is extracted.

ステップ904では、前記ログ情報の取り出し処理により、通信電文からログ情報が取り出されたかどうかを調べ、ログ情報が取り出された場合にはステップ905へ進む。ステップ905では、前記通信電文から取り出したログ情報を、前記確保したスレッド固有のメモリ領域内に格納する。   In step 904, it is checked whether or not log information has been extracted from the communication message by the log information extraction process. If log information is extracted, the process proceeds to step 905. In step 905, log information extracted from the communication message is stored in the reserved thread-specific memory area.

ステップ906では、その情報処理装置内のメモリ中の所定領域にアクセスしてログ情報の記録が必要であることを示す記録指示情報が格納されているかどうかを調べ、前記記録指示情報が格納されている場合にはステップ907に進み、前記スレッド固有のメモリに格納したログ情報を磁気ディスク装置上に割り当てられたログ記録用ファイルに書き出す。   In step 906, it is checked whether or not recording instruction information indicating that it is necessary to record log information by accessing a predetermined area in the memory in the information processing apparatus, and the recording instruction information is stored. If YES in step 907, the flow advances to step 907 to write the log information stored in the thread-specific memory to a log recording file allocated on the magnetic disk device.

前記記録指示情報は、ログ情報を収集しようとする利用者によって予め設定されているものとするが、リクエストを最初に発行するクライアント側処理装置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 side processing device 100 that issues the request first or the client side processing device 100. It may be set in advance in the server-side processing device 110 to collect log information in a log recording file in those devices.

次に、本実施形態のログ処理システムにおいて、図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 side processing device 100 and the server side processing device 110, and the services provided by the server 1 and the server 2 are transmitted to the client. The process of collecting log information and recording the log information in the log recording file of the client side processing apparatus 100 will be described.

図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 side processing apparatus 100 in step 701 of FIG. The thread number of the application process is acquired and stored in the memory. In step 702, additional identification information is read from the memory area specific to the thread identified by the acquired thread number and added to the request.

次にステップ703では、前記スレッド固有のメモリ領域にログ情報が格納されているかどうかを調べるが、まだクライアント側にはログ情報が無いのでステップ710へ進み、前記付加識別情報の付加の行われたリクエストを通信装置により送信先のサーバ1へ送信する。   Next, in step 703, it is checked whether or not log information is stored in the thread-specific memory area. However, since there is no log information on the client side, the process proceeds to step 710, where the additional identification information is added. The request is transmitted to the destination server 1 by the communication device.

図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 interceptor processing unit 111 of the server 1 receives the transmitted request and stores it in the memory in step 901, and in step 902, the thread A unique memory area is secured in the memory.

次にステップ903では、前記メモリ内に格納したリクエストから付加識別情報を読み出して前記スレッド固有のメモリ領域内に格納した後、前記リクエストからログ情報の取り出しを行うが、まだログ情報は格納されていないので、ステップ904を経てこの処理を終了する。   Next, in step 903, after the additional identification information is read from the request stored in the memory and stored in the thread specific memory area, the log information is extracted from the request, but the log information is not yet stored. Therefore, the process is terminated through step 904.

その後、サーバ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 server 2 as shown in FIG. In step 701, the transmission interceptor processing unit 112 of the server 1 obtains a thread number for identifying the application process that issued the transmission request. In step 702, a thread-specific memory is acquired. The additional identification information is read from the area and added to the request.

ステップ703からステップ709の処理では、前記スレッド固有のメモリ領域から前記付加識別情報に従ってログ情報「S1ログ」を取得してリクエストに付加し、ステップ710では、前記付加識別情報及びログ情報「S1ログ」が付加されたリクエストを通信装置によりサーバ2へ送信する。   In the processing from step 703 to step 709, log information “S1 log” is acquired from the thread specific memory area according to the additional identification information and added to the request. In step 710, the additional identification information and log information “S1 log” are added. "Is added to the server 2 by the communication device.

図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 server 2, the reception interceptor processing unit 111 of the server 2 receives the transmitted request in step 901. In step 902, a thread-specific memory area is secured in the memory.

次にステップ903では、前記メモリ内に格納したリクエストから付加識別情報を読み出して前記スレッド固有のメモリ領域内に格納した後、前記リクエストからログ情報「S1ログ」を取り出して、ステップ905で、前記スレッド固有のメモリ領域内にログ情報「S1ログ」を格納する。   Next, in step 903, the additional identification information is read from the request stored in the memory and stored in the memory area specific to the thread. Then, the log information “S1 log” is extracted from the request. Log information “S1 log” is stored in a thread-specific memory area.

ステップ906では、そのサーバ2内のメモリ中の所定領域にアクセスしてログ情報の記録が必要であることを示す記録指示情報が格納されているかどうかを調べるが、サーバ2に前記記録指示情報が格納されていないものとすると、ここでこの処理を終了する。   In step 906, whether or not recording instruction information indicating that recording of log information is necessary is stored by accessing a predetermined area in the memory in the server 2, the server 2 stores the recording instruction information. If it is not stored, the process ends here.

その後、サーバ2は、サーバ1から受信したリクエストにより所定のサービスを提供する為のユーザアプリケーション処理を実行した場合、その処理によってメソッドの呼び出し等の所定の処理要求が発行された際にその内容を示すログ情報「S2ログ」を、前記確保したスレッド固有のメモリ領域内に追加する。   Thereafter, when the server 2 executes a user application process for providing a predetermined service according to the request received from the server 1, the contents are displayed when a predetermined process request such as a method call is issued by the process. The indicated log information “S2 log” is added to the reserved thread-specific memory area.

サーバ2でのユーザアプリケーション処理の結果、図4の様にサーバ2からサーバ1へのレスポンスが発行されるものとすると、ステップ701でサーバ2の送信インターセプタ処理部112は、その送信要求を発行したアプリケーション処理を識別する為のスレッド番号を取得し、ステップ702では、スレッド固有のメモリ領域から付加識別情報を読み出してレスポンスに付加する。   As a result of the user application processing in the server 2, if the response from the server 2 to the server 1 is issued as shown in FIG. 4, the transmission interceptor processing unit 112 of the server 2 issues the transmission request in step 701. A thread number for identifying an application process is acquired, and in step 702, additional identification information is read from the thread-specific memory area and added to the response.

ステップ703からステップ709の処理では、前記スレッド固有のメモリ領域から前記付加識別情報に従ってログ情報「S1ログ、S2ログ」を取得してレスポンスに付加し、ステップ710では、前記付加識別情報及びログ情報「S1ログ、S2ログ」が付加されたレスポンスを通信装置によりサーバ1へ送信する。   In the processing from step 703 to step 709, log information “S1 log, S2 log” is acquired from the memory area specific to the thread according to the additional identification information and added to the response. In step 710, the additional identification information and log information are acquired. A response to which “S1 log, S2 log” is added is transmitted to the server 1 by the communication device.

図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 server 2 to the server 1, the reception interceptor processing unit 111 of the server 1 sends the transmitted response in step 901. In step 902, a thread-specific memory area is secured in the memory.

次にステップ903では、前記メモリ内に格納したレスポンスから付加識別情報を読み出して前記スレッド固有のメモリ領域内に格納した後、前記レスポンスからログ情報「S1ログ、S2ログ」を取り出して、ステップ905で、前記スレッド固有のメモリ領域内にログ情報「S1ログ、S2ログ」を格納する。   Next, in step 903, the additional identification information is read from the response stored in the memory and stored in the memory area specific to the thread. Then, the log information “S1 log, S2 log” is extracted from the response. The log information “S1 log, S2 log” is stored in the thread-specific memory area.

ステップ906では、そのサーバ2内のメモリ中の所定領域にアクセスしてログ情報の記録が必要であることを示す記録指示情報が格納されているかどうかを調べるが、サーバ1に前記記録指示情報が格納されていないものとすると、ここでこの処理を終了する。   In step 906, whether or not recording instruction information indicating that recording of log information is necessary is stored by accessing a predetermined area in the memory in the server 2 is stored. If it is not stored, the process ends here.

その後、サーバ1は、クライアントから受信したレスポンスに応じたユーザアプリケーション処理を実行した場合、その処理によってメソッドの呼び出し等の所定の処理要求が発行された際にその内容を示すログ情報「S1ログ2」を、前記確保したスレッド固有のメモリ領域内に追加する。   Thereafter, when the server 1 executes the user application process corresponding to the response received from the client, the log information “S1 log 2” indicating the contents when a predetermined process request such as a method call is issued by the process is issued. Is added to the reserved thread-specific memory area.

サーバ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 interceptor processing unit 112 of the server 1 issues the transmission request in step 701. A thread number for identifying the process is acquired, and in step 702, additional identification information is read from the thread specific memory area and added to the response.

ステップ703からステップ709の処理では、前記スレッド固有のメモリ領域から前記付加識別情報に従ってログ情報「S1ログ、S2ログ、S1ログ2」を取得してレスポンスに付加し、ステップ710では、前記付加識別情報及びログ情報「S1ログ、S2ログ、S1ログ2」が付加されたレスポンスを通信装置によりクライアントへ送信する。   In the processing from step 703 to step 709, log information “S1 log, S2 log, S1 log 2” is acquired from the memory area specific to the thread according to the additional identification information and added to the response. In step 710, the additional identification is performed. The response to which the information and log information “S1 log, S2 log, S1 log 2” are added is transmitted to the client by the communication device.

図4の様にサーバ1からクライアントへログ情報「S1ログ、S2ログ、S1ログ2」が付加されたレスポンスが送信されると、ステップ901でクライアント側処理装置100の受信インターセプタ処理部102は、その送信されたレスポンスを受信してメモリ内に格納し、ステップ902では、スレッド固有のメモリ領域をメモリ内に確保する。   When the response with the log information “S1 log, S2 log, S1 log 2” is transmitted from the server 1 to the client as shown in FIG. 4, the reception interceptor processing unit 102 of the client side processing apparatus 100 in step 901 The transmitted response is received and stored in the memory. In step 902, a thread-specific memory area is secured in the memory.

次にステップ903では、前記レスポンスからログ情報「S1ログ、S2ログ、S1ログ2」を取り出して、ステップ905で、前記スレッド固有のメモリ領域内にログ情報「S1ログ、S2ログ、S1ログ2」を格納する。   In step 903, log information “S1 log, S2 log, S1 log 2” is extracted from the response. In step 905, log information “S1 log, S2 log, S1 log 2” is stored in the memory area unique to the thread. Is stored.

ステップ906では、そのクライアント内のメモリ中の所定領域にアクセスしてログ情報の記録が必要であることを示す記録指示情報が格納されているかどうかを調べ、クライアントに前記記録指示情報が格納されているものとすると、ステップ907に進み、前記スレッド固有のメモリに格納したログ情報「S1ログ、S2ログ、S1ログ2」を磁気ディスク装置上に割り当てられたログ記録用ファイルに書き出す。   In step 906, it is checked whether or not recording instruction information indicating that log information needs to be recorded is accessed by accessing a predetermined area in the memory in the client, and the recording instruction information is stored in the client. If YES in step 907, the flow advances to step 907 to write the log information “S1 log, S2 log, S1 log 2” stored in the thread-specific memory to a log recording file allocated on the magnetic disk device.

前記の様に本実施形態のログ処理システムでは、ログ情報をその発生順に通信電文に付加して収集しているので、複数のログ情報の突き合わせを行ってどのログ情報がどの処理要求によるものであるかを調べる必要は無く、ログ情報の解析に時間を要するという問題を解決することができる。   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.

本実施形態のログ処理システムの概略構成を示す図である。It is a figure which shows schematic structure of the log processing system of this embodiment. 従来のログ収集処理の概要を示す図である。It is a figure which shows the outline | summary of the conventional log collection process. 従来のログマネージャによるログ収集処理の概要を示す図である。It is a figure which shows the outline | summary of the log collection process by the conventional log manager. 本実施形態のログ収集処理の概要を示す図である。It is a figure which shows the outline | summary of the log collection process of this embodiment. 本実施形態のアプリケーション処理時の通信処理の概要を示す図である。It is a figure which shows the outline | summary of the communication process at the time of the application process of this embodiment. 本実施形態のログ収集処理時のメモリへのログの記録を示す図である。It is a figure which shows the recording of the log to the memory at the time of the log collection process of this embodiment. 本実施形態の送信インターセプタ処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the transmission interceptor process of this embodiment. 本実施形態のログ情報のデータ構造例を示す図である。It is a figure which shows the data structure example of the log information of this embodiment. 本実施形態の受信インターセプタの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the reception interceptor of this embodiment.

符号の説明Explanation of symbols

100…クライアント側処理装置、110…サーバ側処理装置、101…送信インターセプタ処理部、102…受信インターセプタ処理部、111…受信インターセプタ処理部、112…送信インターセプタ処理部、801…スレッド番号、802…日時情報、803…ノード名、804…処理名、805…ステータス、806…入出力データ。
DESCRIPTION OF SYMBOLS 100 ... Client side processing apparatus, 110 ... Server side processing apparatus, 101 ... Transmission interceptor processing part, 102 ... Reception interceptor processing part, 111 ... Reception interceptor processing part, 112 ... Transmission interceptor processing part, 801 ... Thread number, 802 ... Date and time Information 803 ... Node name, 804 ... Process name, 805 ... Status, 806 ... Input / output data.

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.
ログ情報の記録を行う情報処理装置内の記憶手段中にログ情報の記録が必要であることを示す記録指示情報を格納し、前記受信した通信電文に付加されているログ情報を取り出して記憶手段中に格納する際に前記記録指示情報が記憶手段中に格納されているかどうかを調べ、前記記録指示情報が記憶手段中に格納されている場合に、前記通信電文から取り出したログ情報を記憶手段上に割り当てられた所定の記録領域へ格納することを特徴とする請求項1に記載されたログ処理方法。   Recording instruction information indicating that it is necessary to record log information is stored in a storage means in the information processing apparatus for recording log information, and the log information added to the received communication message is extracted and stored. It is checked whether or not the recording instruction information is stored in the storage means when storing in the storage means, and when the recording instruction information is stored in the storage means, the log information extracted from the communication message is stored in the storage means The log processing method according to claim 1, wherein the log is stored in a predetermined recording area allocated above. 所定の処理を実行する為の通信電文を最初に送信する第1の情報処理装置内の記憶手段中に前記記録指示情報を格納することにより、前記通信電文から取り出したログ情報を前記第1の情報処理装置内の記憶手段上に割り当てられた所定の記録領域へ格納することを特徴とする請求項2に記載されたログ処理方法。   By storing the recording instruction information in the storage means in the first information processing apparatus that first transmits a communication message for executing a predetermined process, the log information extracted from the communication message is stored in the first information message. 3. The log processing method according to claim 2, wherein the log processing method stores data in a predetermined recording area allocated on a storage unit in the information processing apparatus. 所定の処理を実行する為の通信電文を最初に受信する第2の情報処理装置内の記憶手段中に前記記録指示情報を格納することにより、前記通信電文から取り出したログ情報を前記第2の情報処理装置内の記憶手段上に割り当てられた所定の記録領域へ格納することを特徴とする請求項2または請求項3のいずれかに記載されたログ処理方法。   By storing the recording instruction information in the storage means in the second information processing apparatus that first receives a communication message for executing a predetermined process, the log information extracted from the communication message is stored in the second information processing device. 4. The log processing method according to claim 2, wherein the log processing method stores data in a predetermined recording area allocated on a storage unit in the information processing apparatus. 前記所定の処理の実行によってエラーが発生した場合にそのエラー内容を示すログ情報を前記記憶手段中に格納し、前記格納したエラー内容を記憶手段から読み出して通信電文に付加し、前記エラー内容を付加した通信電文を通信手段により送信先の情報処理装置へ送信することを特徴とする請求項1乃至請求項4のいずれか1項に記載されたログ処理方法。   When an error occurs due to the execution of the predetermined process, log information indicating the error content is stored in the storage means, the stored error content is read from the storage means, added to a communication message, and the error content is The log processing method according to any one of claims 1 to 4, wherein the added communication message is transmitted to a destination information processing apparatus by communication means. 前記所定の処理の実行の際に用いられるデータ内容を記憶手段中に格納し、前記所定の処理の実行によってエラーが発生した場合に、前記格納したデータ内容を記憶手段から読み出して通信電文に付加し、前記データ内容を付加した通信電文を通信手段により送信先の情報処理装置へ送信することを特徴とする請求項5に記載されたログ処理方法。   Data contents used in executing the predetermined process are stored in the storage means, and when an error occurs due to the execution of the predetermined process, the stored data contents are read from the storage means and added to the communication message. 6. The log processing method according to claim 5, wherein the communication telegram to which the data content is added is transmitted to a destination information processing apparatus by communication means. 付加するログ情報を示す付加識別情報を前記受信した通信電文から取り出して記憶手段中に格納しておき、通信電文を送信する際に前記付加識別情報に対応するログ情報を記憶手段から読み出して付加することを特徴とする請求項1乃至請求項6のいずれか1項に記載されたログ処理方法。   Additional identification information indicating log information to be added is extracted from the received communication message and stored in the storage unit, and log information corresponding to the additional identification information is read from the storage unit and added when the communication message is transmitted. The log processing method according to claim 1, wherein the log processing method is performed. 前記ログ情報の付加されていない通信電文を送受信する通信処理とは異なるログ収集専用の通信処理を通信手段により行うことによって、前記ログ情報を付加した通信電文を送受信することを特徴とする請求項1乃至請求項7のいずれか1項に記載されたログ処理方法。   The communication message to which the log information is added is transmitted and received by performing communication processing dedicated to log collection, which is different from the communication processing for transmitting and receiving the communication message to which the log information is not added, from the communication unit. The log processing method according to any one of claims 1 to 7. 情報処理装置での処理履歴を示すログ情報を処理するログ処理方法をコンピュータに実行させる為のプログラムにおいて、
所定の処理を実行する為の通信電文を通信手段により送信元の情報処理装置から受信するステップと、前記受信した通信電文に付加されているログ情報を取り出して記憶手段中に格納するステップと、前記所定の処理の実行によって生成されたログ情報を前記記憶手段中に格納するステップと、前記格納したログ情報を記憶手段から読み出して通信電文に付加するステップと、前記ログ情報を付加した通信電文を通信手段により送信先の情報処理装置へ送信するステップとをコンピュータに実行させることを特徴とするプログラム。
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.
JP2003395126A 2003-11-26 2003-11-26 Log processing method, and processing program and execution system of the same Pending JP2005157727A (en)

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)

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

Cited By (6)

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