Posted By

rowntreerob on 06/17/09


Tagged

php apache


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

huynguye


apache error log - profile php errors by type


 / Published in: Bash
 

drop the prefix fields and sort , profile by type

  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  

You need to login to post a comment.