首页 > 其他 > 详细

获取splunk 的 latency time

时间:2019-05-21 10:33:52      阅读:156      评论:0      收藏:0      [点我收藏+]
想要获取Splunk 的latency time,只需要知道_indextime 和 _time就可以了,latency = _indextime- _time

可以直接用query在Splunk查询:

1.index=app host="****" | eval diff= _indextime - _time| search diff>60| stats count, avg(diff), min(diff), max(diff) by host

2.index=app host="****" | eval diff= _indextime - _time | eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S") |eval capturetime=strftime(_time,"%Y-%m-%d %H:%M:%S") | table indextime capturetime diff

获取splunk 的 latency time

原文:https://blog.51cto.com/14305934/2397419

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!