JP2021182234A - Information processing system, log extraction method of information processing system, and log extraction program - Google Patents

Information processing system, log extraction method of information processing system, and log extraction program Download PDF

Info

Publication number
JP2021182234A
JP2021182234A JP2020087165A JP2020087165A JP2021182234A JP 2021182234 A JP2021182234 A JP 2021182234A JP 2020087165 A JP2020087165 A JP 2020087165A JP 2020087165 A JP2020087165 A JP 2020087165A JP 2021182234 A JP2021182234 A JP 2021182234A
Authority
JP
Japan
Prior art keywords
log
application
thread
information processing
occurred
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
JP2020087165A
Other languages
Japanese (ja)
Inventor
圭一朗 谷
Keiichiro Tani
浩 豊田
Hiroshi Toyoda
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 JP2020087165A priority Critical patent/JP2021182234A/en
Publication of JP2021182234A publication Critical patent/JP2021182234A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a log extraction method and a program for an information processing system which improve the examination efficiency of an error occurrence cause by collectively extracting logs associated with an error occurrence place and hierarchically or graphically displaying them.SOLUTION: A computer of an information processing system includes extraction means for extracting a stack trace for displaying the type of called processing and its order when exception processing occurs in the computer and an application log to be outputted in each application, determination means that acquires, from the application log, a log from the input operation to processing of each process, and a log in which exception has occurred from a log of processing of each process, and also acquires the type of method used in a thread from the stack trace, and combines them, thereby determining an input operation and a method in which the exception processing has occurred, and display means for hierarchically displaying the application log and the stack trace together.SELECTED DRAWING: Figure 5

Description

本発明は、情報処理システム、情報処理システムのログ抽出方法,並びにログ抽出プログラムに係り、特に複数プロセスや複数スレッドが稼働する計算機を含む情報処理システム、複数のプロセス間や複数のスレッド間における情報処理システムのログ抽出方法,並びにログ抽出プログラムに関する。 The present invention relates to an information processing system, an information processing system log extraction method, and a log extraction program, and in particular, an information processing system including a computer in which a plurality of processes or a plurality of threads are operated, and information between a plurality of processes or a plurality of threads. Related to the log extraction method of the processing system and the log extraction program.

情報処理システムを運用する上では、あらゆるログが必要になってくる。特に障害発生時には保存されているログを手がかりに障害の発生原因の調査を行っており、ログの取得が不可欠である。 All logs are required to operate an information processing system. In particular, when a failure occurs, we are investigating the cause of the failure using the stored logs as clues, and it is indispensable to acquire the log.

この点に関し、情報処理現在のシステムは責務が細かく分断された上、膨大なコンポーネントの集合体によって動作している。そのため、確認されたエラーログがエラーの根本原因ではなく、他の処理でのエラーが原因となって引き起こされたエラーログである場合がある。この際に、一連の処理のログをまとめて抽出することで、エラーの根本原因を見つけ出す技術が知られている。 In this regard, the current system of information processing is divided into small responsibilities and is operated by a huge collection of components. Therefore, the confirmed error log may not be the root cause of the error, but the error log caused by an error in other processing. At this time, there is known a technique for finding the root cause of an error by collectively extracting logs of a series of processes.

たとえば特許文献1では、スレッド間でのデータのやり取りに識別子を用いて関連付けることで、出力されたログを関連付け保存し、抽出する。 For example, in Patent Document 1, by associating data exchange between threads with an identifier, the output log is associated, saved, and extracted.

また、特許文献2では、複数のプロセス間での処理をまとめて抽出するためにリクエスト部から識別子を付加することで一連の処理としてまとめて抽出する。 Further, in Patent Document 2, in order to collectively extract the processes between a plurality of processes, an identifier is added from the request unit to collectively extract the processes as a series of processes.

特開2017−162284号公報Japanese Unexamined Patent Publication No. 2017-162284 特開2018−97793号公報Japanese Unexamined Patent Publication No. 2018-97793

情報処理システムでは例外的な動作(例えばエラー)が確認された場合、エラーログを元にエラーの根本原因を調査するが、エラーの元となったエラーログとその他のログとの関連付けが難しい。 When an exceptional operation (for example, an error) is confirmed in an information processing system, the root cause of the error is investigated based on the error log, but it is difficult to associate the error log that caused the error with other logs.

特許文献1では識別子を用いてスレッド間の関係性を把握しているが、エラー発生箇所と紐付いたログをまとめて抽出しているが、どのようにユーザーに見せるのか、解析しやすい形式で表現することについて考慮されていない。 In Patent Document 1, the relationship between threads is grasped using an identifier, but the log associated with the error occurrence location is collectively extracted, but how to show it to the user is expressed in a format that is easy to analyze. No consideration is given to what to do.

特許文献2では一連の処理のログの抽出は行っているものの、実際に運用されているシステムに導入するためには改造箇所が多くなり、制御装置のような既に多くのシステムが混合し動作しているシステムには導入できないといった問題が考えられる。 Although the log of a series of processes is extracted in Patent Document 2, many modified parts are required to be introduced into the system actually operated, and many systems such as control devices are already mixed and operated. There may be a problem that it cannot be installed in the existing system.

以上のことから、本発明は上記問題に鑑み、その目的とするところはエラー発生箇所と紐付いたログをまとめて抽出、階層的またはグラフィカルに表示することでエラー発生原因の調査効率を向上することができる情報処理システム、情報処理システムのログ抽出方法,並びにログ抽出プログラムを提供する事にある。 Based on the above, in view of the above problems, the purpose of the present invention is to improve the efficiency of investigating the cause of an error by extracting the log associated with the error occurrence location collectively and displaying it hierarchically or graphically. It is to provide an information processing system that can be used, a log extraction method for the information processing system, and a log extraction program.

以上のことから本発明においては、「複数のスレッドで構成された複数のプロセスを有し、各スレッドはプログラムの部品であるDLLの読み出しを処理の途中で実行し、DLL内のモジュールに記述されたメソッドを利用するように構成されるとともに、プロセスとスレッドとDLLの間で階層を構成してプロセス間の通信を行う計算機を用いた情報処理システムであって、計算機における例外処理発生時に、どのような順番でどのような処理を呼び出したのか表示するスタックトレースと、アプリケーションごとに出力するアプリケーションログを抽出する抽出手段と、アプリケーションログから、入力操作から各プロセスの処理までのログと、各プロセスの処理のログから例外が発生したログを入手し、またスタックトレースからスレッド内でどのメソッドが使われたかを入手し、それらを組み合わせることで、入力操作から例外処理が発生したメソッドまでを判断する判断手段と、
アプリケーションログとスタックトレースを合わせて階層的に表示する表示手段を有することを特徴とする情報処理システム」のように構成したものである。
From the above, in the present invention, "it has a plurality of processes composed of a plurality of threads, and each thread executes reading of the PLL which is a component of the program in the middle of the process, and is described in the module in the PLL. It is an information processing system that uses a computer that is configured to use the above methods and that communicates between processes by forming a hierarchy between processes, threads, and DLLs. A stack trace that displays what kind of processing was called in such an order, an extraction method that extracts the application log that is output for each application, a log from the application log from the input operation to the processing of each process, and each process. Obtain the log in which the exception occurred from the processing log of, and also obtain which method was used in the thread from the stack trace, and by combining them, determine from the input operation to the method in which the exception handling occurred. Judgment means and
It is configured like an information processing system characterized by having a display means for displaying application logs and stack traces in a hierarchical manner.

また本発明においては、「複数のスレッドで構成された複数のプロセスを有し、各スレッドはプログラムの部品であるDLLの読み出しを処理の途中で実行し、DLL内のモジュールに記述されたメソッドを利用するように構成されるとともに、プロセスとスレッドとDLLの間で階層を構成してプロセス間の通信を行う計算機を用いた情報処理システムのログ抽出方法であって、計算機における例外処理発生時に、どのような順番でどのような処理を呼び出したのか表示するスタックトレースと、アプリケーションごとに出力するアプリケーションログを抽出し、アプリケーションログから、入力操作から各プロセスの処理までのログと、各プロセスの処理のログから例外が発生したログを入手し、またスタックトレースからスレッド内でどのメソッドが使われたかを入手し、それらを組み合わせることで、入力操作から例外処理が発生したメソッドまでを判断し、アプリケーションログとスタックトレースを合わせて階層的に表示することを特徴とする情報処理システムのログ抽出方法」のように構成したものである。 Further, in the present invention, "there is a plurality of processes composed of a plurality of threads, each thread executes reading of the PLL which is a component of the program in the middle of the process, and the method described in the module in the PLL is executed. It is a log extraction method of an information processing system using a computer that is configured to be used and that communicates between processes by forming a hierarchy between processes, threads, and DLLs. When an exception handling occurs in the computer, A stack trace that displays what kind of processing was called in what order and an application log that is output for each application are extracted, and from the application log, the log from the input operation to the processing of each process, and the processing of each process. Obtain the log in which the exception occurred from the log of, and also obtain which method was used in the thread from the stack trace, and by combining them, determine from the input operation to the method in which the exception handling occurred, and apply the application. It is configured as "a log extraction method of an information processing system characterized by displaying a log and a stack trace together hierarchically".

また本発明においては、「複数のスレッドで構成された複数のプロセスを有し、各スレッドはプログラムの部品であるDLLの読み出しを処理の途中で実行し、DLL内のモジュールに記述されたメソッドを利用するように構成されるとともに、プロセスと前記スレッドと前記DLLの間で階層を構成してプロセス間の通信を行う計算機において使用されるログ抽出プログラムであって、計算機における例外処理発生時に、どのような順番でどのような処理を呼び出したのか表示するスタックトレースと、アプリケーションごとに出力するアプリケーションログを抽出する抽出プログラムと、アプリケーションログから、入力操作から各プロセスの処理までのログと、各プロセスの処理のログから例外が発生したログを入手し、またスタックトレースからスレッド内でどのメソッドが使われたかを入手し、それらを組み合わせることで、入力操作から例外処理が発生したメソッドまでを判断する判断プログラムと、アプリケーションログとスタックトレースを合わせて階層的に表示する表示プログラムとで構成されることを特徴とする情報処理システムのログ抽出プログラム」のように構成したものである。 Further, in the present invention, "there is a plurality of processes composed of a plurality of threads, each thread executes reading of the PLL which is a component of the program in the middle of the process, and the method described in the module in the PLL is executed. It is a log extraction program used in a computer that is configured to be used and that communicates between processes by forming a hierarchy between the process, the thread, and the PLL, and which is used when an exception processing occurs in the computer. A stack trace that displays what kind of processing was called in such an order, an extraction program that extracts the application log output for each application, a log from the application log from the input operation to the processing of each process, and each process Obtain the log in which the exception occurred from the processing log of, and also obtain which method was used in the thread from the stack trace, and by combining them, determine from the input operation to the method in which the exception processing occurred. It is configured like a "log extraction program of an information processing system, which is characterized by being composed of a judgment program and a display program that displays an application log and a stack trace in a hierarchical manner."

本発明によればエラー発生箇所と紐付いたログをまとめて抽出、表示することでエラー発生原因の調査効率を向上することができる。 According to the present invention, it is possible to improve the efficiency of investigating the cause of an error by extracting and displaying the log associated with the error occurrence location collectively.

一般的な計算機システムにおける各要素の関係を概念的に示す図。The figure which conceptually shows the relationship of each element in a general computer system. 計算機PCにおける処理の流れを例示す図。The figure which shows the flow of processing in a computer PC as an example. 例外処理発生時の処理の流れの一例を示す図。The figure which shows an example of the processing flow when exception handling occurs. アプリケーションログとスタックトレースと階層の関連を示す図。Diagram showing the relationship between application logs, stack traces, and hierarchies. 本発明の原因究明並びに表示を行う一連の処理を示す図。The figure which shows a series of processing which performs the cause investigation and display of this invention. スタックトレースの構成例を示す図。The figure which shows the configuration example of the stack trace. アプリケーションのエラーログの構成例を示す図。The figure which shows the configuration example of the error log of an application. 処理開始からエラー発生検知までの一連の情報を特定して収集する一例を示した図。The figure which showed an example which identifies and collects a series of information from the start of processing to the detection of error occurrence. 検索にかかったトレースログから同じIP、プロセスID、スレッドIDを持つエラーログを抽出した図。The figure which extracted the error log which has the same IP, process ID, and thread ID from the trace log which took the search. スタックトレースとアプリケーションログを合わせ一連の処理を階層的に表示した図。A diagram that hierarchically displays a series of processes by combining the stack trace and application log.

以下、図面を参照して本発明の実施例について説明する。 Hereinafter, examples of the present invention will be described with reference to the drawings.

図1は、一般的な計算機システムにおける各要素の関係を概念的に示す図である。 FIG. 1 is a diagram conceptually showing the relationship between each element in a general computer system.

計算機PCには、プログラムの実行インスタンスであるN個のプロセスPr(Pr1・・・Prn)が存在し、複数のプロセスPrが稼働することで所定のアプリケーションが実行される。スレッドthは、プロセスPrの構成要素、処理の単位であり、M個のスレッドが纏まって、プロセスになる。 The computer PC has N process Prs (Pr1 ... Prn) that are execution instances of the program, and a predetermined application is executed by running a plurality of process Prs. Thread th is a component of process Pr and a unit of processing, and M threads are grouped together to form a process.

スレッドthは、プログラムの部品であるDLL(Dynamic Link Library)の読み出しを処理の途中で実行し、DLLに記述された処理(メソッド)を利用する。なおDLLは、各スレッド内で処理が行われる際に、必要に応じて呼び出され、実行することができ、同時に複数台のスレッドから呼び出すことができる。なお、図1には記述していないが、DLLの構成要素としてモジュールがあり、ここには内部の処理が記載されている。 Thread th executes reading of DLL (Dynamic Link Library), which is a component of the program, in the middle of the process, and uses the process (method) described in the DLL. The DLL can be called and executed as needed when processing is performed in each thread, and can be called from a plurality of threads at the same time. Although not described in FIG. 1, there is a module as a component of the DLL, and internal processing is described here.

計算機PCは、上記構成によるプロセス間通信を実現している。このプロセス間通信は例えば、ログの紐づけにIPアドレスとポート番号が必要なため、ソケット通信を前提として実現が可能であるが、他にも共有メモリによるデータの受け渡しなどプロセス間の通信方法はいくつか存在しており、本発明はこのいずれを利用するものであってもよい。 The computer PC realizes interprocess communication according to the above configuration. This interprocess communication can be realized on the premise of socket communication because IP address and port number are required for linking logs, but there are other communication methods between processes such as data transfer by shared memory. There are several, and the present invention may utilize any of them.

図2は、計算機PCにおける処理の流れを例示した図である。ここに例示するように、プロセス間通信により、同一計算機PC1内のプロセス間はもとより、他の計算機PC2のプロセス間においても情報の授受が可能である。 FIG. 2 is a diagram illustrating the flow of processing in a computer PC. As illustrated here, information can be exchanged not only between processes in the same computer PC1 but also between processes of other computers PC2 by interprocess communication.

図示の例では、計算機PC1が外部から入力を与えられたときに、出力処理を完了するまでの間における処理の流れ(aからi)の一例を示している。処理の内容は以下のようである。a:計算機PC1が外部入力を受け、計算機PC1内のプロセスPr11とスレッドth111が起動し、処理を開始する。b:スレッドth111の処理では、必要に応じて計算機PC1内の他のプロセスPr12のスレッドth121に処理を渡す。c、d:スレッドth121の処理では、DLL内のメソッドを利用し処理する。E:またスレッドth121の処理ではさらに、他の計算機PC2のプロセスPr21のスレッドth211に処理を渡す。F,g:スレッドth211の処理では、DLL内のメソッドを利用し処理する。h:計算機PC1内のプロセスPr11内のスレッドth111は、すべての処理が返ってきたので、処理を他のスレッドth112に渡す。I:計算機PC1が外部に出力処理を行う。 In the illustrated example, when the computer PC1 is given an input from the outside, an example of the processing flow (a to i) until the output processing is completed is shown. The contents of the process are as follows. a: The computer PC1 receives an external input, the process Pr11 and the thread th111 in the computer PC1 are started, and the process is started. b: In the processing of thread th111, the processing is passed to thread th121 of another process Pr12 in the computer PC1 as needed. c, d: In the processing of thread th121, the method in the DLL is used for processing. E: Further, in the processing of the thread th121, the processing is further passed to the thread th211 of the process Pr21 of another computer PC2. F, g: In the processing of thread th211, the method in the DLL is used for processing. h: Since all the processes have been returned to the thread th111 in the process Pr11 in the computer PC1, the processes are passed to the other thread th112. I: The computer PC1 performs output processing to the outside.

図3は、例外処理発生時の処理の流れの一例を示している。ここでは、処理fの後に、DLL内で例外処理発生したことを表している。先にも述べたように、DLLの構成要素であるモジュールには、内部の処理が記載されており、この中には例外処理発生時の処理を含んでいる。 FIG. 3 shows an example of the processing flow when exception handling occurs. Here, it means that the exception processing has occurred in the DLL after the processing f. As described above, the module which is a component of the DLL describes the internal processing, which includes the processing when the exception processing occurs.

以上、図2、図3を用いて、一般的な計算機における処理の流れを示したように、計算機内の各部、各機能は、計算機PC,プロセスPr,スレッドthによる階層構成とされている。 As described above, as shown in the process flow in a general computer with reference to FIGS. 2 and 3, each part and each function in the computer has a hierarchical structure consisting of a computer PC, a process Pr, and a thread th.

ここで、計算機における例外処理発生時の対応としては、どのような順番でどのような処理(メソッド)を呼び出したのか表示するスタックトレースと、アプリケーションごとに出力するログであり、トレースログやエラーログなど、アプリケーション設計者が決めることができるアプリケーションログが知られている。 Here, as the response when exception handling occurs in the computer, it is a stack trace that displays what kind of processing (method) was called in what order, and a log that is output for each application, such as a trace log and an error log. There are known application logs that can be determined by the application designer.

このうちスタックトレースは、処理の流れ(どのメソッドが使われたか)を記録することができ、例外処理が起きた処理(メソッド)まではわかるが、その反面において多くのプロセスから呼び出されるメソッドでは、どの操作が原因で例外処理が起きたかわからないという問題がある。 Of these, the stack trace can record the flow of processing (which method was used) and can understand the processing (method) in which exception handling occurred, but on the other hand, in the method called from many processes, There is a problem that it is not known which operation caused the exception handling.

他方アプリケーションログは、アプリケーション開発者でないと例外処理が起きた際に、何が原因の例外処理が起きたのかわからない場合があり、またプロセスにわたって行われる一連の処理の中で例外処理が走ると、根本原因の判別が難しいという問題がある。 On the other hand, in the application log, when exception handling occurs, unless you are an application developer, you may not know what caused the exception handling, and if exception handling runs in a series of processes performed over the process, There is a problem that it is difficult to determine the root cause.

このことから本発明においては、アプリケーションログとスタックトレースを紐づけて表示するものである。具体的には、アプリケーションログから、入力操作から各プロセスの処理までのログと、各プロセスの処理のログから例外が発生したログを入手し、またスタックトレースからより詳細の情報(スレッド内でどのメソッドが使われたか)を入手する。そのうえで、それらを組み合わせることで、入力操作から例外処理が発生したメソッドまで判断するものである。 Therefore, in the present invention, the application log and the stack trace are linked and displayed. Specifically, from the application log, the log from the input operation to the processing of each process and the log where the exception occurred are obtained from the processing log of each process, and more detailed information (in the thread) from the stack trace. Was the method used)? Then, by combining them, it is possible to judge from the input operation to the method in which the exception handling occurs.

さらにそのうえで、アプリケーションログとスタックトレースを合わせて階層的に表示することで、システムに例外処理が起きたときの問題把握を迅速にすることができる。 Furthermore, by displaying the application log and the stack trace together in a hierarchical manner, it is possible to quickly grasp the problem when exception handling occurs in the system.

図4は、アプリケーションログとスタックトレースと階層の関連を示した図である。この図4の左にケース番号を表記し、計算機PCとプロセスPrとスレッドthにより階層構成を表記し、かつアプリケーションログとスタックトレースを表記しており、具体事例を示している。 FIG. 4 is a diagram showing the relationship between the application log, the stack trace, and the hierarchy. The case number is shown on the left side of FIG. 4, the hierarchical structure is shown by the computer PC, the process Pr, and the thread th, and the application log and the stack trace are shown, showing a specific example.

ケース番号1では、階層が計算機PC1であり、アプリケーションログとして計算機PC1に入力をしたトレースログと、入力したが出力がないというエラーログが得られた。 In case number 1, the hierarchy is computer PC1, and a trace log input to the computer PC1 as an application log and an error log of input but no output were obtained.

ケース番号2では、階層が計算機PC1内のプロセスPr11内のスレッドth111であり、アプリケーションログとして、bの処理に対して応答がないというエラーログが得られ、またスタックトレースとして利用したメソッドが記録される。 In case number 2, the hierarchy is thread th111 in the process Pr11 in the computer PC1, an error log that there is no response to the process of b is obtained as the application log, and the method used as the stack trace is recorded. NS.

ケース番号3では、階層が計算機PC1内のプロセスPr12内のスレッドth121であり、アプリケーションログとして、eの処理に対して応答がないというエラーログが得られ、またスタックトレースとして利用したメソッドが記録される。 In case number 3, the hierarchy is thread th121 in the process Pr12 in the computer PC1, an error log that there is no response to the process of e is obtained as the application log, and the method used as the stack trace is recorded. NS.

ケース番号4では、階層が計算機PC2内のプロセスPr21内のスレッドth211であり、アプリケーションログとして、fの処理に対して応答がないというエラーログが得られ、またスタックトレースとしてエラーが起きたメソッドまでの処理が記録される。 In case number 4, the hierarchy is thread th211 in the process Pr21 in the computer PC2, an error log that there is no response to the process of f is obtained as the application log, and even the method in which the error occurred as the stack trace is obtained. Processing is recorded.

上記の関係性を利用して、本発明においては図5の一連の処理により原因究明並びに表示を行う。図5のフローの最初の処理ステップS100では、スタックトレースからエラーが起きた計算機PCのIPアドレスとプロセスIDとスレッドIDを特定する。 Utilizing the above relationship, in the present invention, the cause is investigated and displayed by a series of processes shown in FIG. In the first processing step S100 of the flow of FIG. 5, the IP address, process ID, and thread ID of the computer PC in which the error occurred are specified from the stack trace.

図6は、スタックトレースの構成例を示す図である。ここには、計算機PCのIPアドレスとプロセスIDとスレッドIDと関数名などが記述されている。ここでは、一番上にエラーが出た処理が表記されるので、IPアドレス(192.168.1.10)とプロセスID(21000)とスレッドID(20)に着目する。 FIG. 6 is a diagram showing a configuration example of a stack trace. Here, the IP address of the computer PC, the process ID, the thread ID, the function name, and the like are described. Here, since the process in which the error occurred is described at the top, attention is paid to the IP address (192.168.1.10), the process ID (21000), and the thread ID (20).

図5のフローの処理ステップS110では、同一のIPアドレスとプロセスIDとスレッドIDをもつアプリケーションのエラーログを特定する。 In the process step S110 of the flow of FIG. 5, an error log of an application having the same IP address, process ID, and thread ID is specified.

図7は、アプリケーションのエラーログの構成例を示す図である。ここには、時刻ごとに、レベルと計算機PCのIPアドレスと入力とプロセスIDとスレッドIDと自己のIPアドレスと要求基IPと要求先IPと送信ポート番号と受信ポート番号などが記述されている。この参照処理により、時刻10:10:04以降のレベルにエラーが記述されており、4行目がその最初の事象である。 FIG. 7 is a diagram showing a configuration example of an error log of an application. Here, the level, the IP address of the computer PC, the input, the process ID, the thread ID, the own IP address, the request base IP, the request destination IP, the transmission port number, the reception port number, etc. are described for each time. .. By this reference processing, an error is described in the level after time 10:10:04, and the fourth line is the first event.

図5の次の処理ステップS120では、アプリケーションログからIPアドレスとポート番号を元に関連するトレースログとエラーログを収集する。ここでは、検索されたアプリケーションログの識別子(IPとポート番)からエラーログにいきつくまでの処理(トレースログ)を検索し、入力欄に「1」が入ったら、そこから処理が始まっているので検索終了とする。 In the next processing step S120 of FIG. 5, related trace logs and error logs are collected from the application log based on the IP address and port number. Here, the process (trace log) from the searched application log identifier (IP and port number) to the error log is searched, and if "1" is entered in the input field, the process starts from there. End the search.

図8は、処理開始からエラー発生検知までの一連の情報を特定して収集する一例を示した図である。これにより、図8のアプリケーションログの1行目における処理開始から、4行目のエラー発生検知までの一連の情報を特定して収集することができる。この場合の検索方法としては、自分のログより先に出ているログのうち、受信ポートと送信ポートが同じケースとしてC1を検索し、自己のIPと要求先IPが同じケースとしてC2を検索し、要求元IPと自己のIPとが同じケースとしてC3を検索することで、3行目が特定され、入力欄に「1」が入った1行目までの範囲が特定できる。 FIG. 8 is a diagram showing an example of identifying and collecting a series of information from the start of processing to the detection of error occurrence. As a result, a series of information from the start of processing in the first line of the application log of FIG. 8 to the detection of error occurrence in the fourth line can be specified and collected. As a search method in this case, among the logs appearing before your own log, C1 is searched as the case where the receive port and the send port are the same, and C2 is searched as the case where the own IP and the request destination IP are the same. By searching C3 as the case where the request source IP and the own IP are the same, the third line can be specified, and the range up to the first line in which "1" is entered in the input field can be specified.

図5の次の処理ステップS130では、スタックトレースのIPアドレスとプロセスIDとスレッドIDから、アプリケーションログのどの部分の処理にあたるか並べる。図9は、検索にかかったトレースログから同じIP、プロセスID、スレッドIDを持つエラーログを抽出した図である。薄墨の範囲が抽出されたエラーログである。 In the next processing step S130 of FIG. 5, which part of the application log is processed is arranged from the IP address, process ID, and thread ID of the stack trace. FIG. 9 is a diagram in which an error log having the same IP, process ID, and thread ID is extracted from the trace log subjected to the search. It is an error log in which the range of light ink is extracted.

図5の次の処理ステップS140では、アプリケーションログとスタックトレースを階層化に表示することで、一連の処理のどの部分で例外処理が起きたか、メソッドの部分まで表示する。 In the next processing step S140 of FIG. 5, by displaying the application log and the stack trace in a hierarchical manner, it is displayed up to the method part in which part of the series of processing the exception processing occurred.

図10は、スタックトレースとアプリケーションログを合わせ一連の処理を階層的に表示したものである。表示に際し、アプリケーションログの各行が上に記述され、スタックトレースの情報である関数名がその下に逐次表記される。 FIG. 10 is a hierarchical display of a series of processes including the stack trace and the application log. When displaying, each line of the application log is described above, and the function name, which is the information of the stack trace, is sequentially written below it.

以上説明した本発明は、これを実現するにあたり、情報処理システム、情報処理装置のログ抽出方法,並びにログ抽出プログラムとして具現化することができるものである。このうち、情報処理システムとするときには、計算機のリソースを用いて、「複数のスレッドで構成された複数のプロセスを有し、各スレッドはプログラムの部品であるDLLの読み出しを処理の途中で実行し、DLL内のモジュールに記述されたメソッドを利用するように構成されるとともに、プロセスとスレッドとDLLの間で階層を構成してプロセス間の通信を行う計算機を用いた情報処理システムであって、計算機における例外処理発生時に、どのような順番でどのような処理を呼び出したのか表示するスタックトレースと、アプリケーションごとに出力するアプリケーションログを抽出する抽出手段と、アプリケーションログから、入力操作から各プロセスの処理までのログと、各プロセスの処理のログから例外が発生したログを入手し、またスタックトレースからスレッド内でどのメソッドが使われたかを入手し、それらを組み合わせることで、入力操作から例外処理が発生したメソッドまでを判断する判断手段と、アプリケーションログとスタックトレースを合わせて階層的に表示する表示手段を有することを特徴とする情報処理システム」のように構成することで実現される。 In realizing this, the present invention described above can be embodied as an information processing system, a log extraction method of an information processing apparatus, and a log extraction program. Of these, when the information processing system is used, the resources of the computer are used to "have a plurality of processes composed of a plurality of threads, and each thread executes the reading of the PLL, which is a component of the program, in the middle of the process. , An information processing system that uses a computer that is configured to use the methods described in the modules in the PLL and that communicates between the processes by forming a hierarchy between the processes, threads, and the PLL. Stack trace that displays what kind of process was called in what order when exception handling occurred in the computer, extraction means that extracts the application log to be output for each application, and from the application log, from the input operation to each process Exception handling from input operation by obtaining the log up to the processing and the log in which the exception occurred from the processing log of each process, and by obtaining which method was used in the thread from the stack trace and combining them. It is realized by configuring it as "an information processing system characterized by having a judgment means for determining up to the method in which the above occurs and a display means for displaying the application log and the stack trace in a hierarchical manner".

また同様に、方法、ならびにプログラムとして把握することができるが、これらは適宜応用が可能なことであるので、詳細説明を省略する。 Similarly, the method and the program can be grasped, but since these can be applied as appropriate, detailed description thereof will be omitted.

PC、PC1,PC2:計算機
Pr(Pr1・・・Prn):プロセス
th:スレッド
PC, PC1, PC2: Computer Pr (Pr1 ... Prn): Process th: Thread

Claims (7)

複数のスレッドで構成された複数のプロセスを有し、各スレッドはプログラムの部品であるDLLの読み出しを処理の途中で実行し、DLL内のモジュールに記述されたメソッドを利用するように構成されるとともに、前記プロセスと前記スレッドと前記DLLの間で階層を構成してプロセス間の通信を行う計算機を用いた情報処理システムであって、
前記計算機における例外処理発生時に、どのような順番でどのような処理を呼び出したのか表示するスタックトレースと、アプリケーションごとに出力するアプリケーションログを抽出する抽出手段と、
前記アプリケーションログから、入力操作から各プロセスの処理までのログと、各プロセスの処理のログから例外が発生したログを入手し、また前記スタックトレースから前記スレッド内でどのメソッドが使われたかを入手し、それらを組み合わせることで、入力操作から例外処理が発生したメソッドまでを判断する判断手段と、
アプリケーションログとスタックトレースを合わせて階層的に表示する表示手段を有することを特徴とする情報処理システム。
It has multiple processes composed of multiple threads, and each thread is configured to read the DLL that is a component of the program in the middle of the process and use the method described in the module in the DLL. At the same time, it is an information processing system using a computer that forms a hierarchy between the process, the thread, and the DLL to communicate between the processes.
A stack trace that displays what kind of processing was called in what order when exception handling occurred in the computer, and an extraction means that extracts the application log to be output for each application.
From the application log, get the log from the input operation to the processing of each process, and from the log of the processing of each process, the log in which the exception occurred, and from the stack trace, get which method was used in the thread. And by combining them, a judgment means to judge from the input operation to the method in which the exception handling occurred,
An information processing system characterized by having a display means for displaying application logs and stack traces in a hierarchical manner.
請求項1に記載の情報処理システムであって、
情報処理システムは複数の計算機で構成されており、例外処理発生時に、複数の計算機における前記スタックトレースと、前記アプリケーションログを抽出して、処理結果を表示することを特徴とする情報処理システム。
The information processing system according to claim 1.
The information processing system is composed of a plurality of computers, and is characterized in that when an exception processing occurs, the stack trace in the plurality of computers and the application log are extracted and the processing result is displayed.
請求項1または請求項2に記載の情報処理システムであって、
前記判断手段は、前記スタックトレースからエラーが起きた計算機のIPアドレスとプロセスIDとスレッドIDを特定し、同一のIPアドレスとプロセスIDとスレッドIDをもつアプリケーションのエラーログを特定し、前記アプリケーションログからIPアドレスとポート番号を元に関連するトレースログとエラーログを収集し、前記スタックトレースのIPアドレスとプロセスIDとスレッドIDから、前記アプリケーションログのどの部分の処理にあたるか並べ、
前記表示手段に、前記アプリケーションログと前記スタックトレースを階層化に表示することで、一連の処理のどの部分で例外処理が起きたか、メソッドの部分まで表示することを特徴とする情報処理システム。
The information processing system according to claim 1 or 2.
The determination means identifies the IP address, process ID, and thread ID of the computer in which the error occurred from the stack trace, identifies the error log of the application having the same IP address, process ID, and thread ID, and identifies the application log. Collect related trace logs and error logs based on the IP address and port number from, and arrange which part of the application log is processed from the IP address, process ID, and thread ID of the stack trace.
An information processing system characterized in that, by displaying the application log and the stack trace in a layered manner on the display means, it is possible to display up to a method part in which part of a series of processes the exception processing has occurred.
複数のスレッドで構成された複数のプロセスを有し、各スレッドはプログラムの部品であるDLLの読み出しを処理の途中で実行し、DLL内のモジュールに記述されたメソッドを利用するように構成されるとともに、前記プロセスと前記スレッドと前記DLLの間で階層を構成してプロセス間の通信を行う計算機を用いた情報処理システムのログ抽出方法であって、
前記計算機における例外処理発生時に、どのような順番でどのような処理を呼び出したのか表示するスタックトレースと、アプリケーションごとに出力するアプリケーションログを抽出し、
前記アプリケーションログから、入力操作から各プロセスの処理までのログと、各プロセスの処理のログから例外が発生したログを入手し、また前記スタックトレースから前記スレッド内でどのメソッドが使われたかを入手し、それらを組み合わせることで、入力操作から例外処理が発生したメソッドまでを判断し、
アプリケーションログとスタックトレースを合わせて階層的に表示する
ことを特徴とする情報処理システムのログ抽出方法。
It has multiple processes composed of multiple threads, and each thread is configured to read the DLL that is a component of the program in the middle of the process and use the method described in the module in the DLL. At the same time, it is a log extraction method of an information processing system using a computer that forms a hierarchy between the process, the thread, and the DLL to communicate between the processes.
Extract the stack trace that displays what kind of processing was called in what order when exception handling occurred in the computer, and the application log that is output for each application.
From the application log, the log from the input operation to the processing of each process, the log in which the exception occurred is obtained from the processing log of each process, and from the stack trace, which method was used in the thread is obtained. By combining them, it is possible to judge from the input operation to the method in which the exception handling occurred.
A log extraction method for an information processing system characterized by displaying application logs and stack traces together in a hierarchical manner.
請求項4に記載の情報処理システムのログ抽出方法であって、
前記スタックトレースからエラーが起きた計算機のIPアドレスとプロセスIDとスレッドIDを特定し、同一のIPアドレスとプロセスIDとスレッドIDをもつアプリケーションのエラーログを特定し、前記アプリケーションログからIPアドレスとポート番号を元に関連するトレースログとエラーログを収集し、前記スタックトレースのIPアドレスとプロセスIDとスレッドIDから、前記アプリケーションログのどの部分の処理にあたるか並べ、
前記アプリケーションログと前記スタックトレースを階層化に表示することで、一連の処理のどの部分で例外処理が起きたか、メソッドの部分まで表示することを特徴とする情報処理システムのログ抽出方法。
The log extraction method for an information processing system according to claim 4.
The IP address, process ID, and thread ID of the computer in which the error occurred are specified from the stack trace, the error log of the application having the same IP address, process ID, and thread ID is specified, and the IP address and port are specified from the application log. Collect related trace logs and error logs based on the numbers, and arrange which part of the application log is processed from the IP address, process ID, and thread ID of the stack trace.
A log extraction method for an information processing system, characterized in that by displaying the application log and the stack trace in a layered manner, it is possible to display up to the method part in which part of a series of processes the exception handling has occurred.
複数のスレッドで構成された複数のプロセスを有し、各スレッドはプログラムの部品であるDLLの読み出しを処理の途中で実行し、DLL内のモジュールに記述されたメソッドを利用するように構成されるとともに、前記プロセスと前記スレッドと前記DLLの間で階層を構成してプロセス間の通信を行う計算機において使用されるログ抽出プログラムであって、
前記計算機における例外処理発生時に、どのような順番でどのような処理を呼び出したのか表示するスタックトレースと、アプリケーションごとに出力するアプリケーションログを抽出する抽出プログラムと、
前記アプリケーションログから、入力操作から各プロセスの処理までのログと、各プロセスの処理のログから例外が発生したログを入手し、また前記スタックトレースから前記スレッド内でどのメソッドが使われたかを入手し、それらを組み合わせることで、入力操作から例外処理が発生したメソッドまでを判断する判断プログラムと、
アプリケーションログとスタックトレースを合わせて階層的に表示する表示プログラムとで構成されることを特徴とする情報処理システムのログ抽出プログラム。
It has multiple processes composed of multiple threads, and each thread is configured to read the DLL that is a component of the program in the middle of the process and use the method described in the module in the DLL. At the same time, it is a log extraction program used in a computer that forms a hierarchy between the process, the thread, and the DLL to communicate between the processes.
A stack trace that displays what kind of processing was called in what order when exception handling occurred in the computer, and an extraction program that extracts the application log to be output for each application.
From the application log, the log from the input operation to the processing of each process, the log in which the exception occurred is obtained from the processing log of each process, and from the stack trace, which method was used in the thread is obtained. And by combining them, a judgment program that judges from the input operation to the method in which exception handling occurred,
A log extraction program for an information processing system, which is characterized by being composed of a display program that displays application logs and stack traces in a hierarchical manner.
請求項6に記載のログ抽出プログラムであって、
判断プログラムは、前記スタックトレースからエラーが起きた計算機のIPアドレスとプロセスIDとスレッドIDを特定し、同一のIPアドレスとプロセスIDとスレッドIDをもつアプリケーションのエラーログを特定し、前記アプリケーションログからIPアドレスとポート番号を元に関連するトレースログとエラーログを収集し、前記スタックトレースのIPアドレスとプロセスIDとスレッドIDから、前記アプリケーションログのどの部分の処理にあたるか並べ、
前記表示プログラムは、アプリケーションログと前記スタックトレースを階層化に表示することで、一連の処理のどの部分で例外処理が起きたか、メソッドの部分まで表示することを特徴とする情報処理システムのログ抽出プログラム。
The log extraction program according to claim 6.
The determination program identifies the IP address, process ID, and thread ID of the computer in which the error occurred from the stack trace, identifies the error log of the application having the same IP address, process ID, and thread ID, and identifies the error log of the application from the application log. Collect related trace logs and error logs based on the IP address and port number, and arrange which part of the application log is processed from the IP address, process ID, and thread ID of the stack trace.
The display program displays the application log and the stack trace in a layered manner, so that the log extraction of the information processing system is characterized in that it displays the part of the method where the exception handling occurred in a series of processes. program.
JP2020087165A 2020-05-19 2020-05-19 Information processing system, log extraction method of information processing system, and log extraction program Pending JP2021182234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020087165A JP2021182234A (en) 2020-05-19 2020-05-19 Information processing system, log extraction method of information processing system, and log extraction program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020087165A JP2021182234A (en) 2020-05-19 2020-05-19 Information processing system, log extraction method of information processing system, and log extraction program

Publications (1)

Publication Number Publication Date
JP2021182234A true JP2021182234A (en) 2021-11-25

Family

ID=78606587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020087165A Pending JP2021182234A (en) 2020-05-19 2020-05-19 Information processing system, log extraction method of information processing system, and log extraction program

Country Status (1)

Country Link
JP (1) JP2021182234A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866401A (en) * 2022-05-06 2022-08-05 辽宁振兴银行股份有限公司 Distributed transaction link log analysis method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866401A (en) * 2022-05-06 2022-08-05 辽宁振兴银行股份有限公司 Distributed transaction link log analysis method and system

Similar Documents

Publication Publication Date Title
CN110928772B (en) Test method and device
CN111459982A (en) Data query method and device, terminal device and storage medium
US20150286552A1 (en) Spreadsheet Data Transfer Objects
US20180268060A1 (en) Identifying client states
CN102207956A (en) Database management method, database management system and program thereof
WO2016026328A1 (en) Information processing method and device and computer storage medium
CN112860777B (en) Data processing method, device and equipment
CN111240876A (en) Fault positioning method and device for microservice, storage medium and terminal
JP2021182234A (en) Information processing system, log extraction method of information processing system, and log extraction program
CN110764962A (en) Log processing method and device
US6530041B1 (en) Troubleshooting apparatus troubleshooting method and recording medium recorded with troubleshooting program in network computing environment
CN112181479A (en) Method and device for determining difference between code file versions and electronic equipment
US8612941B2 (en) System and method for analysis of a large code base using partitioning
CN107544894A (en) The method, apparatus and server of a kind of log processing
KR101609915B1 (en) Method and apparatus for multi dimension time gap analysis
CN102305906A (en) Chip testing method and device
CN106227502A (en) A kind of method and device obtaining hard disk firmware version
CN102799597A (en) Content extraction method
CN113270159B (en) Interface display method and device of clinical test electronic data acquisition and management system
CN115374109A (en) Data access method, device, computing equipment and system
US7536376B2 (en) Task oriented log retrieval utilizing a self-learning search tool
CN111143006B (en) Method and device for acquiring command help information
JP6048555B1 (en) Classification information creation device, classification information creation method, classification information creation program, search device, search method, and search program
CN114064387A (en) Log monitoring method, system, device and computer readable storage medium
CN111309510A (en) Method and equipment for analyzing VSAN authentication test failure information