我正在寻找一种在实时日志文件上拖尾的好方法,并显示具有相同日期/时间的行数.
目前这是有效的:
tail -F /var/logs/request.log | [cut the date-time] | uniq -c
但性能不够好.延迟超过一分钟,并且每次以少量线路输出.
任何的想法?
bash logging tail uniq
bash ×1
logging ×1
tail ×1
uniq ×1