2017 © Pedro Peláez
 

library log-counter

image

matthewbaggett/log-counter

  • Wednesday, July 29, 2015
  • by matthewbaggett
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

LogCounter

A utility for parsing PHP errors inside of the apache log., (*1)

Usage:, (*2)

./logcounter /var/log/apache2/error.log, (*3)

Output:, (*4)

bob@bobsmachine ~/Projects/LogCounter $ ./logcounter /var/log/apache2/error.log
Parsing 5687 log lines...
 > 100% 5 MB.

There were 2 applications
 > Unique PIDs: 5
 > Unique Errors: 116
 > Total Errors: 1171

Top 10 errors:
 > 4e7b36a (355 times) PHP Notice:  Undefined index: select_lenders in /app/site/reporting/builder.phtml on line 146, referer: http://app/reporting/main
 > 8f4d120 (222 times) PHP Notice:  Undefined index: destination_id in /app/site/logs/transaction.phtml on line 32, referer: http://app/logs/proposal
 > 41dd513 (222 times) PHP Notice:  Undefined index: destination_id in /app/site/logs/all_transactions.phtml on line 32, referer: http://app/logs/transaction
 > 91dfa3e (42 times) PHP Notice:  Undefined index: select_proposal_status in /app/site/reporting/builder.phtml on line 21, referer: http://app/reporting/main
 > ad0b26c (18 times) PHP Notice:  Undefined index: destination_status_id in /app/site/logs/transaction.phtml on line 41, referer: http://app/logs/proposal
 > fe2d36c (18 times) PHP Notice:  Undefined index: destination_status_id in /app/site/logs/all_transactions.phtml on line 41, referer: http://app/logs/transaction
 > 515b1aa (18 times) PHP Notice:  Undefined index: select_vehicles in /app/site/reporting/builder.phtml on line 181, referer: http://app/reporting/main
 > b35c842 (9 times) PHP Notice:  Undefined index: bm_user_id in /app/site/main.phtml on line 151, referer: http://app/main
 > daadf13 (6 times) PHP Notice:  Undefined variable: has_login_quiz_module in /app/layouts/site.php on line 118, referer: http://app/reporting/main
 > 09f3300 (6 times) PHP Notice:  Undefined index: select_staff in /app/site/reporting/builder.php on line 316, referer: http://app/reporting/main

The Versions

29/07 2015

dev-master

9999999-dev

  Sources   Download

The Development Requires

by Matthew Baggett