前のトピック: メトリック クエリの例次のトピック: Introscope 拡張機能の構成


トランザクション追跡クエリ

基本的なトランザクション ヘッダ クエリの構文は以下のとおりです。

select * from trace_headers where timestamp between {starttime} and {endtime} and query={lucene query string} [limit {rows}]

lucene query string は、Workstation の履歴クエリにあるような、有効な Lucene クエリ文字列です(詳細については、「CA APM Workstation ユーザ ガイド」を参照)。

オプションの limit フラグは、クエリが返す行数を制限します。 制限が指定されない場合、サーバで定義されているデフォルトのトランザクション制限が使用されます。

追跡本体に対するクエリは同一ですが、異なるビューを参照します。

select * from traces where timestamp between {starttime} and {endtime} and query={lucene query string} [limit {rows}]

トランザクション追跡クエリの例

select * from trace_headers where timestamp between '01/01/01 00:00:00' and '07/01/01 00:00:00' and query='s*'

select * from trace_headers where timestamp between '01/01/01 00:00:00' and '07/01/01 00:00:00' and query='host:blinky'

select * from traces where timestamp between '01/01/01 00:00:00' and '07/01/01 00:00:00' and query='host:blinky' limit 100

追跡クエリが返したデータ行には、ドメイン、ホスト、プロセスとエージェントの名前、およびトランザクション追跡の XML 表現などのエージェント情報が含まれます。