sed -n ‘/14:[0-9][0-9]:[0-9][0-9]/p’ haproxy.log 截取14点的日志
cat haproxy.log-20160302 | grep xslhzzx | grep -v kibana | awk ‘$3>"14:00:00" && $3<"17:00:00"‘
截取14点到17点之间的日志
时间: 2024-10-23 02:38:28
sed -n ‘/14:[0-9][0-9]:[0-9][0-9]/p’ haproxy.log 截取14点的日志
cat haproxy.log-20160302 | grep xslhzzx | grep -v kibana | awk ‘$3>"14:00:00" && $3<"17:00:00"‘
截取14点到17点之间的日志