Saturday, April 25, 2020

Quick parse Apache httpd error log

[user@logs]# cat error_log | cut -d " " -f 11,13,14 | sort -n | uniq -c | sort -r
    728 script not found
    101 AH01276: serve directory
     57 AH02811: not found
     25 PHP  Undefined
      3 server does NOT
      3 PHP  session_start():
      1 slotmem mod_heartmonitor
      1 mpm (prefork.c) is
      1 line: -D FOREGROUND'
      1 () PHP/7.3.11 configured
     

      ---

So most often error message is "script not found". A concrete example of error that needs to be addressed is the below:
[client 173.212.201.253:34544] script '/var/www/html/sitedomain/prod/wp-login.php' not found or unable to stat, referer: http://sitedomain.com/wp-login.php

This is to be tackled in another article :)

No comments:

Post a Comment