vi /etc/crontab
*/5 * * * * root awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -n > /log/stat.txt
*/5 * * * * root awk '$9!=200{print}' /var/log/nginx/access.log > /log/!200.txt
*/5 * * * * root cat /var/log/nginx/access.log > /log/access.txt

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。