查找在solr的最后一小时内运行的所有查询的平均QTime

.

0

linux命令:cat /service/solr/log/main/current | tai64nlocal | grep "\(`date '+%F %H'`\|`date '+%F %H %M' | awk '{print $1" 0"$2-1":"$3}'`\)" | grep QTime | awk '{print $NF}' | awk -F\= '{ s += $2} END {print s/NR}' s/NR}' {print END $2} += s '{ -F\= awk | $NF}' '{print awk | QTime grep | 0"$2-1":"$3}'`\)" $1" '{print awk | %M' %H '+%F %H'`\|`date '+%F "\(`date grep | tai64nlocal | /service/solr/log/main/current cat cat /service/solr/log/main/current | tai64nlocal | grep "\(`date '+%F %H'`\|`date '+%F %H %M' | awk '{print $1" 0"$2-1":"$3}'`\)" | grep QTime | awk '{print $NF}' | awk -F\= '{ s += $2} END {print s/NR}'rootopen.com
linux命令:cat /service/solr/log/main/current | tai64nlocal | grep "\(`date '+%F %H'`\|`date '+%F %H %M' | awk '{print $1" 0"$2-1":"$3}'`\)" | grep QTime | awk '{print $NF}' | awk -F\= '{ s += $2} END {print s/NR}' s/NR}' {print END $2} += s '{ -F\= awk | $NF}' '{print awk | QTime grep | 0"$2-1":"$3}'`\)" $1" '{print awk | %M' %H '+%F %H'`\|`date '+%F "\(`date grep | tai64nlocal | /service/solr/log/main/current cat cat /service/solr/log/main/current | tai64nlocal | grep "\(`date '+%F %H'`\|`date '+%F %H %M' | awk '{print $1" 0"$2-1":"$3}'`\)" | grep QTime | awk '{print $NF}' | awk -F\= '{ s += $2} END {print s/NR}'rootopen.com
ekly 2018-02-13 12:00:48
输出

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章