Permalink
Browse files

log client side errors; typo fixes

  • Loading branch information...
danielnaber committed Jul 9, 2017
1 parent f73c9c4 commit 565b94ab7f05dd90346660d6136a0f541ea9fbba
Showing with 12 additions and 2 deletions.
  1. +12 −2 statusmail.sh
View
@@ -107,11 +107,21 @@ echo "Warnings (without empty queries):" >>$OUT
grep "WARN" $LOG | grep -v "No query specified for search" >>$OUT
echo "" >>$OUT
echo "Errors (max. 100)": >>$OUT
echo -n "Client-side errors: " >>$OUT
grep -c "client message:" $LOG >>$OUT
echo "Client-side errors (max. 20):" >>$OUT
grep "client message:" $LOG | head -n 20 >>$OUT
echo "" >>$OUT
echo "Top client-side errors: " >>$OUT
grep "client message:" tomcat/logs/catalina.out | sed 's/.*client message: //' | sed 's/ - .*//' | sort | uniq -c | sort -r -n | head -n 10 >> $OUT
echo "" >>$OUT
echo "Errors (max. 100):" >>$OUT
grep "ERROR" $LOG | head -n 100 >>$OUT
echo "" >>$OUT
echo "Apache Errors (max. 30)": >>$OUT
echo "Apache Errors (max. 30):" >>$OUT
echo "Total Apache errors: `wc -l apache_errors.log`" >>$OUT
tail -n 30 apache_errors.log >>$OUT

0 comments on commit 565b94a

Please sign in to comment.