ripgrep 筛选指定时间范围日志
yum install yum-utils -y
yum-config-manager --add-repo=https://copr.fedorainfracloud.org/coprs/carlwgeorge/ripgrep/repo/epel-7/carlwgeorge-ripgrep-epel-7.repo
yum install ripgrep -y
rg "04/Mar/2021" access.log | sed -n '/00:00:00/,/23:59:59/p' > 04-gateway01.log
rg -z "2021-04-19" debug.log-2021-04-19_20-1618835401.gz | sed -n '/20:29:00/,/20:29:10/p' > xxx.log
最后更新于