/var/log/httpd/access_log
/var/log/httpd/error_log
tail -f /var/log/httpd/access_log
grep "關鍵字" /var/log/httpd/access_log
awk '{print $1}' /var/log/httpd/access_log | sort | uniq -c | sort -nr
grep " 404 " /var/log/httpd/access_log
使用logrotate
工具自動壓縮、刪除舊日志,配置文件為/etc/logrotate.d/httpd
。