JP5576834B2 - Log file collection system, server, log file collection method, log output method and program - Google Patents
Log file collection system, server, log file collection method, log output method and program Download PDFInfo
- Publication number
- JP5576834B2 JP5576834B2 JP2011162995A JP2011162995A JP5576834B2 JP 5576834 B2 JP5576834 B2 JP 5576834B2 JP 2011162995 A JP2011162995 A JP 2011162995A JP 2011162995 A JP2011162995 A JP 2011162995A JP 5576834 B2 JP5576834 B2 JP 5576834B2
- Authority
- JP
- Japan
- Prior art keywords
- log
- character string
- log file
- application
- file collection
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、ログファイルを収集するログファイル収集サーバを有するログファイル収集システム、サーバ、ログファイル収集方法、ログ出力方法およびプログラムに関する。 The present invention relates to a log file collection system having a log file collection server for collecting log files, a server, a log file collection method, a log output method, and a program.
複数のサーバからログファイルを収集する方法としては、UNIX(登録商標)における標準的なログ出力方式(プロトコル)がある(例えば、非特許文献1参照)。なお、ログファイルを収集する目的は、問題発生時にその問題の原因を特定したり、パフォーマンスの管理を行ったりするためである。 As a method of collecting log files from a plurality of servers, there is a standard log output method (protocol) in UNIX (registered trademark) (for example, see Non-Patent Document 1). The purpose of collecting log files is to identify the cause of a problem and to manage performance when a problem occurs.
非特許文献1に開示されているログ出力方式では、OS(Operating System)や、ログファイルの収集対象のサーバが実行するアプリケーションから出力されたログを含むログファイルを、ログファイルを収集するログ収集サーバへネットワークを介して送信する。なお、ログは、テキスト形式で記載されている。ログファイルを受信したログファイル収集サーバは、受信したログファイルを標準のファイルシステムで記憶する。
In the log output method disclosed in Non-Patent
ログファイル収集サーバは、記憶しているログファイルの容量が増大した場合、古いログファイルをアーカイブ化する。そして、ログファイル収集サーバは、アーカイブ化したログファイルが一定量を超えた場合、それを削除する。 The log file collection server archives an old log file when the capacity of the stored log file increases. When the archived log file exceeds a certain amount, the log file collection server deletes it.
また、大規模環境におけるログファイルの収集を目的とした技術が例えば、非特許文献2に開示されている。
Further, a technique for collecting log files in a large-scale environment is disclosed in Non-Patent
非特許文献2に開示されている技術では、分散ファイルシステムによってテキスト形式で記載されたログを含むログファイルを記憶する。そのため、ログファイルの収集対象のサーバの数が増加した場合でも一箇所のサーバでログファイルを収集することが可能である。また、記憶しているログファイルの容量が増大した場合でも、分散ファイルシステムに新たなサーバを追加することで記憶可能なログファイルの容量を増加させることができる。
In the technique disclosed in Non-Patent
上述した非特許文献1および非特許文献2に開示されている技術では、ログファイルの収集対象のサーバの数が増加していく場合、ログファイルの収集対象のサーバと、ログファイル収集サーバとの間のネットワークへの負荷が大きくなっていくという問題点がある。
In the technologies disclosed in Non-Patent
また、上述した非特許文献1および非特許文献2に開示されている技術では、ログファイルの収集対象のサーバの数が増加していく場合、アーカイブ化やサーバの追加等を高頻度で行わなければ、新たなログファイルを記憶することができなくなってしまうという問題点がある。
Further, in the technologies disclosed in
本発明は、ログファイルの収集対象のサーバの数が増加していく場合でも、ログファイルを送受信する際に用いられるネットワークへの負荷を低減するとともに、新たなログファイルを記憶することができなくなるのを回避することを可能にするログファイル収集システム、サーバ、ログファイル収集方法、ログ出力方法およびプログラムを提供することを目的とする。 The present invention reduces the load on the network used when sending and receiving log files even when the number of servers from which log files are collected increases, and makes it impossible to store new log files. It is an object to provide a log file collection system, a server, a log file collection method, a log output method, and a program that can avoid the above.
上記目的を達成するために本発明のログファイル収集システムは、ログを出力する機能を備えたアプリケーションを実行する複数のサーバと、ログを含むログファイルを収集するログファイル収集サーバとを有するログファイル収集システムであって、
前記複数のサーバのそれぞれは、
前記アプリケーションのソースコードに記載された文字列のうち、当該アプリケーションから出力されるログにて用いられる所定の文字列を、当該所定の文字列に対応付けられた情報であり、当該所定の文字列よりも容量が小さな文字列情報に変換する第1の制御部と、
前記アプリケーションから出力されたログを含むログファイルを前記ログファイル収集サーバへ送信する第1の通信部と、を有し、
前記ログファイル収集サーバは、
前記複数のサーバのそれぞれから送信されたログファイルを受信する第2の通信部と、
前記第2の通信部にて受信されたログファイルを記憶するログファイル記憶部と、を有する。
In order to achieve the above object, a log file collection system according to the present invention includes a plurality of servers that execute an application having a log output function, and a log file collection server that collects log files including logs. A collection system,
Each of the plurality of servers is
Among the character strings described in the source code of the application, the predetermined character string used in the log output from the application is information associated with the predetermined character string, and the predetermined character string A first control unit for converting into character string information having a smaller capacity than
A first communication unit that transmits a log file including a log output from the application to the log file collection server,
The log file collection server
A second communication unit for receiving a log file transmitted from each of the plurality of servers;
A log file storage unit for storing the log file received by the second communication unit.
また、上記目的を達成するために本発明のサーバは、ログファイルを出力する機能を備えたアプリケーションを実行するサーバであって、
前記アプリケーションのソースコードに記載された文字列のうち、当該アプリケーションから出力されるログにて用いられる所定の文字列を、当該所定の文字列に対応付けられた情報であり、当該所定の文字列よりも容量が小さな文字列情報に変換する制御部と、
前記アプリケーションから出力されたログを含むログファイルを、ログファイルを収集するログファイル収集サーバへ送信する通信部と、を有する。
In order to achieve the above object, the server of the present invention is a server that executes an application having a function of outputting a log file,
Among the character strings described in the source code of the application, the predetermined character string used in the log output from the application is information associated with the predetermined character string, and the predetermined character string A control unit for converting to character string information having a smaller capacity than
And a communication unit that transmits a log file including a log output from the application to a log file collection server that collects the log file.
また、上記目的を達成するために本発明のログファイル収集方法は、ログを出力する機能を備えたアプリケーションを実行する複数のサーバと、ログを含むログファイルを収集するログファイル収集サーバとを有するログファイル収集システムにおけるログファイル収集方法であって、
前記複数のサーバのそれぞれが、前記アプリケーションのソースコードに記載された文字列のうち、当該アプリケーションから出力されるログにて用いられる所定の文字列を、当該所定の文字列に対応付けられた情報であり、当該所定の文字列よりも容量が小さな文字列情報に変換する処理と、
前記複数のサーバのそれぞれが、前記アプリケーションから出力されたログを含むログファイルを前記ログファイル収集サーバへ送信する処理と、
前記ログファイル収集サーバが、前記複数のサーバのそれぞれから送信されたログファイルを受信する処理と、
前記ログファイル収集サーバが、前記受信したログファイルを記憶する処理と、を有する。
In order to achieve the above object, a log file collection method of the present invention includes a plurality of servers that execute an application having a function of outputting logs, and a log file collection server that collects log files including logs. A log file collection method in a log file collection system,
Information in which each of the plurality of servers is associated with a predetermined character string used in a log output from the application among character strings described in the source code of the application. A process of converting into character string information having a smaller capacity than the predetermined character string;
Each of the plurality of servers transmits a log file including a log output from the application to the log file collection server;
A process in which the log file collection server receives a log file transmitted from each of the plurality of servers;
The log file collection server storing the received log file.
また、上記目的を達成するために本発明のログ出力方法は、ログファイルを出力する機能を備えたアプリケーションを実行するサーバにおけるログ出力方法であって、
前記アプリケーションのソースコードに記載された文字列のうち、当該アプリケーションから出力されるログにて用いられる所定の文字列を、当該所定の文字列に対応付けられた情報であり、当該所定の文字列よりも容量が小さな文字列情報に変換する処理と、
前記アプリケーションから出力されたログを含むログファイルを、ログファイルを収集するログファイル収集サーバへ送信する処理と、を有する。
In order to achieve the above object, a log output method of the present invention is a log output method in a server that executes an application having a function of outputting a log file,
Among the character strings described in the source code of the application, the predetermined character string used in the log output from the application is information associated with the predetermined character string, and the predetermined character string Processing to convert to character string information with a smaller capacity,
And a process of transmitting a log file including a log output from the application to a log file collection server that collects the log file.
また、上記目的を達成するために本発明のプログラムは、ログファイルを出力する機能を備えたアプリケーションを実行するサーバに、
前記アプリケーションのソースコードに記載された文字列のうち、当該アプリケーションから出力されるログにて用いられる所定の文字列を、当該所定の文字列に対応付けられた情報であり、当該所定の文字列よりも容量が小さな文字列情報に変換する機能と、
前記アプリケーションから出力されたログを含むログファイルを、ログファイルを収集するログファイル収集サーバへ送信する機能と、を実現させる。
In order to achieve the above object, the program of the present invention provides a server for executing an application having a function of outputting a log file.
Among the character strings described in the source code of the application, the predetermined character string used in the log output from the application is information associated with the predetermined character string, and the predetermined character string With the ability to convert to smaller string information
And a function of transmitting a log file including a log output from the application to a log file collection server that collects the log file.
本発明は以上説明したように構成されているので、ログファイルの収集対象のサーバの数が増加していく場合でも、ログファイルを送受信する際に用いられるネットワークへの負荷を低減するとともに、新たなログファイルを記憶することができなくなるのを回避することが可能となる。 Since the present invention is configured as described above, even when the number of log file collection target servers increases, the load on the network used when sending and receiving log files is reduced, and new It becomes possible to avoid that it becomes impossible to memorize a log file.
以下に、本発明の実施の形態について図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.
図1は、本発明のログファイル収集システムの実施の一形態の構成を示すブロック図である。 FIG. 1 is a block diagram showing a configuration of an embodiment of a log file collection system of the present invention.
本実施形態のログファイル収集システムは図1に示すように、ログを出力する機能を備えた複数のアプリケーションのそれぞれを実行するサーバ10−1〜10−nと、ログファイル収集サーバ20とを備えている。 As shown in FIG. 1, the log file collection system according to the present embodiment includes servers 10-1 to 10-n that execute each of a plurality of applications having a function of outputting logs, and a log file collection server 20. ing.
サーバ10−1〜10−nのそれぞれは、変換表記憶部11と、第1の制御部である制御部12と、第1の通信部である通信部13とを備えている。
Each of the servers 10-1 to 10-n includes a conversion table storage unit 11, a
変換表記憶部11は、変換表を備えている。変換表は、複数のアプリケーションのそれぞれから出力されるログにて用いられる複数の所定の文字列のそれぞれと、その複数の所定の文字列のそれぞれを識別し、その文字列よりも容量が小さな文字列情報である文字列ID(IDentification)とを対応付けて記憶している。なお、変換表記憶部11は、複数のアプリケーション毎に変換表を備えている。 The conversion table storage unit 11 includes a conversion table. The conversion table identifies each of a plurality of predetermined character strings used in a log output from each of a plurality of applications and each of the plurality of predetermined character strings, and a character having a capacity smaller than that character string. A character string ID (IDentification) that is column information is stored in association with each other. The conversion table storage unit 11 includes a conversion table for each of a plurality of applications.
図2は、図1に示した変換表記憶部11が備える変換表の一例を示す図である。 FIG. 2 is a diagram illustrating an example of a conversion table provided in the conversion table storage unit 11 illustrated in FIG.
図2に示すように変換表では例えば、ログにて用いられる所定の文字列(Recovering storage directory)と、文字列ID(2)とが対応付けられている。 As shown in FIG. 2, in the conversion table, for example, a predetermined character string (Recovering storage directory) used in a log is associated with a character string ID (2).
なお、本実施形態では、文字列IDを数字とするが、対応する文字列よりも容量が小さければ、文字列IDは数字に限定されない。 In this embodiment, the character string ID is a number, but the character string ID is not limited to a number as long as the capacity is smaller than the corresponding character string.
再度、図1を参照すると、制御部12は、複数のアプリケーションを記憶している。制御部12は、複数のアプリケーションのそれぞれのソースコードに記載された文字列のうち、変換表記憶部11が備えるそのアプリケーションの変換表に記憶されている文字列と同じ文字列を、その文字列に対応する文字列IDに変換する。そして、制御部12は、変換後のソースコードをコンパイルして実行する。なお、このように文字列を文字列IDに変換しても、アプリケーションの実行に支障はない。そして、制御部12は、複数のアプリケーションのそれぞれから出力されたログを含むログファイルを、複数のアプリケーション毎に生成する。そして、制御部12は、生成したログファイルを通信部13へ出力する。なお、ログファイルは例えば、アプリケーションから出力されたログが所定の容量に達したときや、予め決められた時間に生成される。また、ログファイルには、そのログファイルに含まれるログを出力したアプリケーションを識別することが可能なログファイル名が付与される。
Referring to FIG. 1 again, the
図3は、図1に示した制御部12がアプリケーションのソースコードに記載された文字列を文字列IDに変換する動作を説明するための図であり、(a)は変換前の状態の一例を示す図、(b)は変換後の状態の一例を示す図である。なお、ここでは、変換表記憶部11が備える変換表が図2に示したものである場合について説明する。
FIG. 3 is a diagram for explaining an operation in which the
図3(a)に示す文字列のうち、is not a directoryと、Recovering storage directoryと、from previous upgradeと、Reducing replication for fileと、.New replication isとのそれぞれは、図2に示した変換表に記憶されている文字列である。 Among the character strings shown in FIG. 3A, each of is not a directory, Recovering storage directory, from previous upgrade, Reducing replication for file, and .New replication is is the conversion table shown in FIG. Is a character string stored in
従って、これらの文字列のそれぞれは図3(b)に示すように、変換表において対応する文字列IDに変換される。 Accordingly, each of these character strings is converted into a corresponding character string ID in the conversion table, as shown in FIG.
なお、本実施形態において変換表にて記憶される所定の文字列は例えば、複数のアプリケーションのそれぞれのソースコードに記載された文字列のうち、そのままログに引用される慣用的な文字列である。図3(a)および図3(b)に示すrootPathと、Pathと、srcと、replicationとは、ログとして出力される際にアプリケーションの実行状態に応じて変化する文字列であるため、変換表による変換対象となっていない。 Note that the predetermined character string stored in the conversion table in the present embodiment is, for example, a conventional character string quoted in the log as it is among the character strings written in the source code of each of a plurality of applications. . Since rootPath, Path, src, and replication shown in FIGS. 3A and 3B are character strings that change according to the execution state of the application when output as a log, conversion tables Not subject to conversion by.
再度、図1を参照すると、通信部13は、制御部12から出力されたログファイルを受け付ける。そして、通信部13は、受け付けたログファイルをログファイル収集サーバ20へ送信する。
Referring to FIG. 1 again, the
ログファイル収集サーバ20は、変換表記憶部21と、第2の通信部である通信部22と、第2の制御部である制御部23と、ログファイル記憶部24と、入力部25と、出力部26とを備えている。
The log file collection server 20 includes a conversion
変換表記憶部21は、変換表を備えている。変換表記憶部21が備える変換表は、変換表記憶部11が備える変換表と同一の構成および内容である。また、変換表記憶部21は、変換表記憶部11と同様に、複数のアプリケーション毎に変換表を備えている。
The conversion
通信部22は、サーバ10−1〜10−nのそれぞれから送信されたログファイルを受信する。そして、通信部22は、受信したログファイルを制御部23へ出力する。
The
制御部23は、通信部22から出力されたログファイルを受け付ける。そして、制御部23は、受け付けたログファイルのログファイル名を確認する。そして、制御部23は、受け付けたログファイルのログファイル名に基づき、受け付けたログファイルを複数のアプリケーション毎にログファイル記憶部24に記憶させる。また、制御部23は、入力部25から出力された検索用情報を受け付ける。検索用情報とは、ログファイル記憶部24に記憶されたログファイルに含まれるログを検索する際のキーワードと、検索対象のアプリケーション名とを含む情報である。なお、キーワードは、1つまたは複数の単語から構成される。そして、制御部23は、受け付けた検索用情報に含まれるキーワードおよびアプリケーション名に応じたログを、ログファイル記憶部24に記憶されたログファイルから抽出する。そして、制御部23は、抽出したログに含まれる文字列IDを、変換表記憶部21が備える変換表において対応する文字列に変換したログを生成する。そして、制御部23は、生成したログを出力部26に出力させる。なお、制御部23が、ログを生成する動作の詳細については、後述する動作フローにて説明する。
The
入力部25は、上述したキーワードおよびアプリケーション名の入力を外部から受け付ける。具体的には、入力部25は、キーボードやマウス等の入力装置を備え、ユーザ等がその入力装置を操作することで入力したキーワードおよびアプリケーション名を受け付ける。そして、入力部25は、受け付けたキーワードおよびアプリケーション名を含む検索用情報を制御部23へ出力する。なお、入力部25は、通信機能を備え、キーワードおよびアプリケーション名を外部から受信するものであってもよい。
The
出力部26は、制御部23にて生成されたログを外部に出力する。具体的には、出力部26は、画面を備え、制御部23にて生成されたログをその画面上に表示する。なお、出力部26は、制御部23にて生成されたログを外部に出力する機能を有していればよく、例えば印刷機能を備え、制御部23にて生成されたログを印刷するものであってもよい。また、出力部26は、例えば通信機能を備え、制御部23にて生成されたログを、予め決められた外部の装置へ送信するものであってもよい。
The
以下に、上記のように構成されたログファイル収集システムの動作について説明する。
ここでは、ログファイル収集サーバ20に記憶されたログファイルがユーザ等によって検索されるときのログファイル収集サーバ20の動作について説明する。
The operation of the log file collection system configured as described above will be described below.
Here, the operation of the log file collection server 20 when a log file stored in the log file collection server 20 is searched by a user or the like will be described.
図4は、図1〜図3に示したログファイル収集システムにおいてログファイル収集サーバ20に記憶されたログファイルがユーザ等によって検索されるときの動作の一例を説明するためのフローチャートである。また、図5は、図1に示した変換表記憶部11,21が備える変換表の他の例を示す図である。
FIG. 4 is a flowchart for explaining an example of an operation when a log file stored in the log file collection server 20 is searched by the user or the like in the log file collection system shown in FIGS. FIG. 5 is a diagram illustrating another example of the conversion table provided in the conversion
ここでは、変換表が図5に示したものである場合について説明する。なお、図5に示した変換表は、複数のアプリケーションのうちアプリケーションAの変換表であるものとする。 Here, a case where the conversion table is the one shown in FIG. 5 will be described. Note that the conversion table shown in FIG. 5 is a conversion table for application A among a plurality of applications.
入力部25は、キーワードおよびアプリケーション名の入力を受け付ける(ステップS1)。ここでは、入力部25は、アプリケーションAを示すアプリケーション名を受け付けたものとする。
The
キーワードおよびアプリケーション名の入力を受け付けた入力部25は、受け付けたキーワードおよびアプリケーション名を含む検索用情報を制御部23へ出力する。
The
入力部25から出力された検索用情報を受け付けた制御部23は、受け付けた検索用情報に含まれるキーワードが、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と完全に一致するかどうかを確認する(ステップS2)。ここで、完全に一致する場合とは、キーワードが例えば「ABCD」という4つの単語から構成されるとすると、「A」,「B」,「C」,「D」のそれぞれや、「AB」と「C」と「D」とのそれぞれや、「ABCD」等の文字列が、変換表に記憶されている場合である。すなわち、キーワードが、変換表に記憶された文字列を含み、かつ、変換表に記憶された文字列だけで構成される場合である。
Upon receiving the search information output from the
ステップS2における確認の結果、受け付けた検索用情報に含まれるキーワードが、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と完全に一致する場合、制御部23は、その一致する文字列に対応する文字列IDを変換表から取得する(ステップS3)。具体的には、受け付けた検索用情報に含まれるキーワードが例えば“error”であるとすると、制御部23は、図5に示した変換表において“Error”または“error”に対応する文字列ID(100,200)を取得することになる。
As a result of the confirmation in step S2, if the keyword included in the received search information completely matches the character string stored in the conversion table of application A included in the conversion
次に、制御部23は、ログファイル記憶部24に記憶されたアプリケーションAのログファイルの中から、取得した文字列IDを含むログを抽出する(ステップS4)。
Next, the
次に、制御部23は、抽出したログに含まれる文字列IDを、変換表記憶部21が備えるアプリケーションAの変換表において対応する文字列に変換したログを生成する(ステップS5)。
Next, the
そして、制御部23は、生成したログを出力部26に出力させる(ステップS6)。
Then, the
一方、ステップS2における確認の結果、受け付けた検索用情報に含まれるキーワードが、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と完全に一致しない場合、制御部23は、受け付けた検索用情報に含まれるキーワードが、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と部分的に一致するかどうかを確認する(ステップS7)。ここで、部分的に一致する場合とは、キーワードが例えば「ABCD」という4つの単語から構成されるとすると、少なくとも、「A」,「B」,「C」,「D」のいずれかや「AB」等の文字列が、変換表に記憶されている場合である。すなわち、キーワードが、変換表に記憶された文字列と、変換表に記憶された文字列以外の文字列との両方を含む場合である。
On the other hand, as a result of the confirmation in step S2, if the keyword included in the received search information does not completely match the character string stored in the conversion table of application A included in the conversion
ステップS7における確認の結果、受け付けた検索用情報に含まれるキーワードが、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と部分的に一致する場合、制御部23は、その一致する文字列に対応する文字列IDを変換表から取得する(ステップS8)。具体的には、受け付けた検索用情報に含まれるキーワードが例えば“FileA is not a directory”である場合、制御部23は、図5に示した変換表において”is not a directory“に対応する文字列ID(1)を取得することになる。
As a result of the confirmation in step S7, when the keyword included in the received search information partially matches the character string stored in the conversion table of application A included in the conversion
次に、制御部23は、ログファイル記憶部24に記憶されたアプリケーションAのログファイルの中から、取得した文字列IDを含むログを第1のログとして抽出する(ステップS9)。
Next, the
次に、制御部23は、受け付けた検索用情報に含まれるキーワードを構成する単語のうち、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と一致しない単語を含むログを、ログファイル記憶部24に記憶されたアプリケーションAのログファイルの中から第2のログとして取得する(ステップS10)。具体的には、受け付けた検索用情報に含まれるキーワードが例えば“FileA is not a directory”である場合、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と一致しない単語は、“FileA”である。そのため、制御部23は、ログファイル記憶部24に記憶されたアプリケーションAのログファイルの中から“File A”を含むログを第2のログとして取得する。
Next, the
次に、制御部23は、取得した第1のログと第2のログとの中から、両方に共通するログを抽出する(ステップS11)。そして、ステップS5の動作へ遷移する。
Next, the
一方、ステップS7における確認の結果、受け付けた検索用情報に含まれるキーワードが、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と部分的に一致しない場合、制御部23は、ログファイル記憶部24に記憶されたアプリケーションAのログファイルの中から、受け付けた検索用情報に含まれるキーワードを含むログを抽出する(ステップS12)。なお、受け付けた検索用情報に含まれるキーワードが、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列と部分的に一致しない場合とは例えば、そのキーワードが年月日および時分を示す“2011-03-22 08:10”等の場合である。
On the other hand, as a result of the confirmation in step S7, if the keyword included in the received search information does not partially match the character string stored in the conversion table of application A included in the conversion
次に、制御部23は、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列IDが、抽出したログに含まれているかどうかを確認する(ステップS13)。
Next, the
ステップS13における確認の結果、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列IDが、抽出したログに含まれている場合、ステップS5の動作へ遷移する。
As a result of the confirmation in step S13, when the character string ID stored in the conversion table of application A provided in the conversion
一方、ステップS13における確認の結果、変換表記憶部21が備えるアプリケーションAの変換表に記憶された文字列IDが、抽出したログに含まれていない場合、抽出したログを出力部26に出力させる(ステップS14)。
On the other hand, if the character string ID stored in the conversion table of the application A included in the conversion
このように本実施形態においてサーバ10−1〜10−nのそれぞれは、アプリケーションのソースコードに記載された文字列のうち、当該アプリケーションから出力されるログにて用いられる所定の文字列を、当該所定の文字列に対応付けられた情報であり、当該所定の文字列よりも容量が小さな文字列IDに変換する制御部12を有する。
As described above, in the present embodiment, each of the servers 10-1 to 10-n receives a predetermined character string used in a log output from the application among character strings described in the source code of the application. It has the
また、サーバ10−1〜10−nのそれぞれは、アプリケーションから出力されたログを含むログファイルをログファイル収集サーバ20へ送信する通信部13を有する。
Each of the servers 10-1 to 10-n includes a
そして、ログファイル収集サーバ20は、サーバ10−1〜10−nのそれぞれから送信されたログファイルを受信する通信部22を有する。
The log file collection server 20 includes a
また、ログファイル収集サーバ20は、通信部22にて受信されたログファイルを記憶するログファイル記憶部24を有する。
Further, the log file collection server 20 includes a log
これにより、ログファイルの収集対象のサーバの数が増加していく場合でも、ログファイルを送受信する際に用いられるネットワークへの負荷を低減するとともに、新たなログファイルを記憶することができなくなるのを回避することが可能となる。 As a result, even when the number of log file collection target servers increases, the load on the network used when sending and receiving log files is reduced, and new log files cannot be stored. Can be avoided.
なお、本実施形態においては、変換表記憶部11,21が、複数のアプリケーション毎に変換表を備える場合について説明した。但し、1つのアプリケーションにおいてログファイルを出力するプロセスが複数存在する場合には、変換表記憶部11,21は、その複数のプロセス毎に変換表を備えるようにしてもよい。
In the present embodiment, the case where the conversion
また、本実施形態においては、アプリケーションから出力されるログに用いられる文字列を変換表にて記憶する対象とした場合について説明したが、例えばミドルウェアから出力されるログに用いられる文字列を変換表にて記憶する対象とすることも可能である。なお、ソースコード中の文字列を文字列IDに変換してコンパイルすることが可能であれば、OSから出力されるログに用いられる文字列を変換表にて記憶する対象とすることも可能である。 Further, in the present embodiment, the case where the character string used in the log output from the application is the target to be stored in the conversion table has been described. For example, the character string used in the log output from the middleware is converted into the conversion table. It is also possible to set it as an object to be stored. If a character string in the source code can be converted into a character string ID and compiled, the character string used for the log output from the OS can be stored in the conversion table. is there.
また、本発明においては、サーバ内の処理は上述の専用のハードウェアにより実現されるもの以外に、その機能を実現するためのプログラムをサーバにて読取可能な記録媒体に記録し、この記録媒体に記録されたプログラムをサーバに読み込ませ、実行するものであっても良い。サーバにて読取可能な記録媒体とは、フレキシブルディスク、光磁気ディスク、DVD、CDなどの移設可能な記録媒体の他、サーバに内蔵されたHDDなどを指す。 In the present invention, the processing in the server is recorded on a recording medium that can be read by the server, in addition to the above-described dedicated hardware, and the program for realizing the function is recorded on the recording medium. The program recorded in (1) may be read by a server and executed. The server-readable recording medium refers to a removable recording medium such as a flexible disk, a magneto-optical disk, a DVD, and a CD, as well as an HDD built in the server.
10−1〜10−n サーバ
11,21 変換表記憶部
12,23 制御部
13,22 通信部
20 ログファイル収集サーバ
24 ログファイル記憶部
25 入力部
26 出力部
10-1 to 10-
Claims (2)
前記複数のサーバのそれぞれは、
前記アプリケーションのソースコードに記載された文字列のうち、当該アプリケーションから出力されるログにて用いられる所定の文字列を、当該所定の文字列に対応付けられた情報であり、当該所定の文字列よりも容量が小さな文字列情報に変換する第1の制御部と、
前記アプリケーションから出力されたログを含むログファイルを前記ログファイル収集サーバへ送信する第1の通信部と、を有し、
前記ログファイル収集サーバは、
前記複数のサーバのそれぞれから送信されたログファイルを受信する第2の通信部と、
前記第2の通信部にて受信されたログファイルを記憶するログファイル記憶部と、
前記ログファイル記憶部に記憶されたログファイルに含まれるログを検索するためのキーワードを受け付ける入力部と、
前記入力部にて受け付けられたキーワードが前記所定の文字列を含むかどうかを確認する第2の制御部と、を有し、
前記第2の制御部は、前記入力部にて受け付けられたキーワードが前記所定の文字列を含む場合、前記ログファイル記憶部に記憶されたログファイルの中から、当該所定の文字列に対応する文字列情報を含むログを抽出し、該抽出したログに含まれる文字列情報を、当該文字列情報に対応する所定の文字列に変換し、前記入力部にて受け付けられたキーワードが前記所定の文字列を含まない場合、前記ログファイル記憶部に記憶されたログファイルの中から、当該キーワードを含むログを抽出し、該抽出したログに前記文字列情報が含まれる場合、当該文字列情報を、当該文字列情報に対応する所定の文字列に変換するログファイル収集システム。 A log file collection system having a plurality of servers that execute an application having a log output function and a log file collection server that collects log files including logs,
Each of the plurality of servers is
Among the character strings described in the source code of the application, the predetermined character string used in the log output from the application is information associated with the predetermined character string, and the predetermined character string A first control unit for converting into character string information having a smaller capacity than
A first communication unit that transmits a log file including a log output from the application to the log file collection server,
The log file collection server
A second communication unit for receiving a log file transmitted from each of the plurality of servers;
A log file storage unit for storing a log file received by the second communication unit;
An input unit for receiving a keyword for searching for a log included in the log file stored in the log file storage unit;
A second control unit for confirming whether or not the keyword received by the input unit includes the predetermined character string;
When the keyword received by the input unit includes the predetermined character string, the second control unit corresponds to the predetermined character string from the log files stored in the log file storage unit. A log including character string information is extracted, character string information included in the extracted log is converted into a predetermined character string corresponding to the character string information, and a keyword received by the input unit is the predetermined When the character string is not included, the log including the keyword is extracted from the log file stored in the log file storage unit. When the character string information is included in the extracted log, the character string information is And a log file collection system for converting into a predetermined character string corresponding to the character string information .
前記複数のサーバのそれぞれが、前記アプリケーションのソースコードに記載された文字列のうち、当該アプリケーションから出力されるログにて用いられる所定の文字列を、当該所定の文字列に対応付けられた情報であり、当該所定の文字列よりも容量が小さな文字列情報に変換する処理と、
前記複数のサーバのそれぞれが、前記アプリケーションから出力されたログを含むログファイルを前記ログファイル収集サーバへ送信する処理と、
前記ログファイル収集サーバが、前記複数のサーバのそれぞれから送信されたログファイルを受信する処理と、
前記ログファイル収集サーバが、前記受信したログファイルを記憶する処理と、
前記ログファイル収集サーバが、前記記憶したログファイルに含まれるログを検索するためのキーワードを受け付ける処理と、
前記ログファイル収集サーバが、前記受け付けたキーワードが前記所定の文字列を含む場合、前記記憶したログファイルの中から、当該所定の文字列に対応する文字列情報を含むログを抽出し、該抽出したログに含まれる文字列情報を、当該文字列情報に対応する所定の文字列に変換する処理と、
前記ログファイル収集サーバが、前記受け付けたキーワードが前記所定の文字列を含まない場合、前記記憶したログファイルの中から、当該キーワードを含むログを抽出し、該抽出したログに前記文字列情報が含まれる場合、当該文字列情報を、当該文字列情報に対応する所定の文字列に変換する処理と、を有するログファイル収集方法。 A log file collection method in a log file collection system having a plurality of servers that execute an application having a log output function and a log file collection server that collects log files including logs,
Information in which each of the plurality of servers is associated with a predetermined character string used in a log output from the application among character strings described in the source code of the application. A process of converting into character string information having a smaller capacity than the predetermined character string;
Each of the plurality of servers transmits a log file including a log output from the application to the log file collection server;
A process in which the log file collection server receives a log file transmitted from each of the plurality of servers;
The log file collection server stores the received log file;
The log file collection server receives a keyword for searching for a log included in the stored log file; and
When the received keyword includes the predetermined character string, the log file collection server extracts a log including character string information corresponding to the predetermined character string from the stored log file, and extracts the log Processing to convert the character string information included in the log to a predetermined character string corresponding to the character string information;
When the received keyword does not include the predetermined character string, the log file collection server extracts a log including the keyword from the stored log file, and the character string information is included in the extracted log. If included, a log file collection method comprising: converting the character string information into a predetermined character string corresponding to the character string information .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011162995A JP5576834B2 (en) | 2011-07-26 | 2011-07-26 | Log file collection system, server, log file collection method, log output method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011162995A JP5576834B2 (en) | 2011-07-26 | 2011-07-26 | Log file collection system, server, log file collection method, log output method and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013025744A JP2013025744A (en) | 2013-02-04 |
JP5576834B2 true JP5576834B2 (en) | 2014-08-20 |
Family
ID=47783978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011162995A Expired - Fee Related JP5576834B2 (en) | 2011-07-26 | 2011-07-26 | Log file collection system, server, log file collection method, log output method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5576834B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102190578B1 (en) * | 2014-10-21 | 2020-12-15 | 삼성에스디에스 주식회사 | System and method for detecting and predicting anomalies based on analysis of text data |
JP6958311B2 (en) | 2017-12-12 | 2021-11-02 | 富士通株式会社 | Information processing equipment, information processing systems and programs |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63175948A (en) * | 1987-01-14 | 1988-07-20 | Hitachi Ltd | Message logging system |
JPH08179974A (en) * | 1994-12-21 | 1996-07-12 | Canon Inc | Method and device for processing data |
JP4050497B2 (en) * | 2001-11-06 | 2008-02-20 | インフォサイエンス株式会社 | Log information management apparatus and log information management program |
JP2004102430A (en) * | 2002-09-05 | 2004-04-02 | Ntt Docomo Inc | Processor and method for processing structured document file, program, and storage medium |
JP2007087186A (en) * | 2005-09-22 | 2007-04-05 | Fuji Xerox Co Ltd | Log collection system and method |
JP4879193B2 (en) * | 2008-01-10 | 2012-02-22 | 三菱電機株式会社 | System log management support apparatus and system log management support method |
-
2011
- 2011-07-26 JP JP2011162995A patent/JP5576834B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2013025744A (en) | 2013-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8589403B2 (en) | Compressed journaling in event tracking files for metadata recovery and replication | |
US20180246939A1 (en) | Managing data searches using generation identifiers | |
JP5781685B2 (en) | Log management computer and log management method | |
JP4901880B2 (en) | Encoding device, decoding device, methods thereof, program of the method, and recording medium recording the program | |
US9317205B2 (en) | Information processing system and control method thereof | |
JP2005266916A (en) | Server difference management system and control method for information processor | |
US9858152B2 (en) | Collaborative information source recovery | |
US10298656B2 (en) | Extending representational state transfer application program interface (REST API) functionality | |
JP5576834B2 (en) | Log file collection system, server, log file collection method, log output method and program | |
KR20100046160A (en) | Converting backup copies of objects created using a first backup program to backup copies created using a second backup program | |
JP2007304759A (en) | Operation management device and operation management method and program | |
US11010390B2 (en) | Using an electron process to determine a primary indexer for responding to search queries including generation identifiers | |
US20170039259A1 (en) | Method and Apparatus for Implementing Storage of File in IP Disk | |
US11379421B1 (en) | Generating readable, compressed event trace logs from raw event trace logs | |
JP2009193271A (en) | Storage system | |
JP6378044B2 (en) | Data processing apparatus, data processing method and program | |
JP5194936B2 (en) | File conversion apparatus, file conversion method, and program | |
US20150088958A1 (en) | Information Processing System and Distributed Processing Method | |
US20060026208A1 (en) | System and method for automatically generating an image-file | |
JP2018060443A (en) | Coded data retrieval program, coded data retrieval method and coded data retrieval device | |
CN106993036B (en) | Running environment information processing method and switch | |
JPWO2009081527A1 (en) | Information processing apparatus, virtual machine configuration method, and computer-readable recording medium recording program | |
US11816512B2 (en) | Event driven data processing system and method | |
JP5768964B2 (en) | Failure investigation support device, method and program | |
JP5601028B2 (en) | Database replication system, database replication method, information processing apparatus, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7426 Effective date: 20130305 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130807 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140416 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140422 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140526 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20140701 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140704 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5576834 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |