0
我想创建一个表中的一些服务端点的splunk和每个端点所需的计算时间,现在我想根据时间显示选定端点的问题。这是我写的显示字段的查询。在查询中显示splunk中的选择性字段
<query>index="test" | eval report=case(match(uri_path, "api/abc/"),
"anc", match(uri_path, "api/bcd/**"), "bcd", match(uri_path, "efc"),
"efc") | eval ms=round(microseconds/1000) | stats count, mean(ms) as
avgMillis, min(ms), max(ms), perc75(ms), perc95(ms), perc99(ms),
stdev(ms) by report | eval avgMillis=round(avgMillis) | eval
stdev(ms)=round('stdev(ms)') </query>
只有在超过1秒时才应该显示端点。
| avgMillis> 1也适用于:) – Demon