基本的事务头查询语法是:
select * from trace_headers where timestamp between {starttime} and {endtime} and query={lucene query string} [limit {rows}]
其中,lucene query string 是有效的 Lucene 查询字符串,如同在 Workstation 的历史查询中一样(有关详细信息,请参阅《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 '01/01/07 00:00:00' and query='s*' select * from trace_headers where timestamp between '01/01/01 00:00:00' and '01/01/07 00:00:00' and query='host:blinky' select * from traces where timestamp between '01/01/01 00:00:00' and '01/01/07 00:00:00' and query='host:blinky' limit 100
跟踪查询返回的数据行包括代理信息,例如域、主机、进程和代理名称,以及事务跟踪的 XML 表示形式。
|
版权所有 © 2013 CA。
保留所有权利。
|
|