我在Splunk中有一个关于获取我的场景的平均每秒事务的问题。在我的例子中,我希望在给定的时间内,获得每个webservice请求每秒的平均事务量.
当我使用以下语法时,它可以正常工作:
index="index"
| transaction "correlationId" keepevicted=true
| timechart span=1s count as TPS
| stats count avg(TPS)然后,我获得所有...but服务请求的平均每秒事务数。
如果我尝试以下几点:
index="index"
| transaction "correlationId" keepevicted=true
| timechart span=1s count as TPS
| stats count avg(TPS) by "service"...I没有得到任何结果
有什么事我做错了吗?
我们非常感谢所有的帮助和建议。
发布于 2021-12-06 18:25:41
发布于 2021-12-06 14:23:16
timechart是一个转换命令。这意味着它不会将所有字段传递给下一个命令,因此stats命令只看到'count‘和'TPS’,而不是'service‘。试试这个:
index="index" | transaction "correlationId" keepevicted=true
| timechart span=1s count as TPS by service | stats count avg(TPS) by servicehttps://stackoverflow.com/questions/70245098
复制相似问题