apache error log - profile php errors by type


/ Published in: Bash
Save to your folder(s)

drop the prefix fields and sort , profile by type


Copy this code and paste it in your HTML
  1. sed 's/^\[.*\] //' /var/log/httpd/error_log | awk -F\: ' { print $1 } ' | grep -v ^script | sort | uniq -c
  2.  
  3. sed 's/^\[.*\] //' /var/log/httpd/error_log | sort | uniq -c | sort -k1 -nr | head -50

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.