/ Published in: Bash
drop the prefix fields and sort , profile by type
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
sed 's/^\[.*\] //' /var/log/httpd/error_log | awk -F\: ' { print $1 } ' | grep -v ^script | sort | uniq -c sed 's/^\[.*\] //' /var/log/httpd/error_log | sort | uniq -c | sort -k1 -nr | head -50