我有3个日志分析工具预先安装在我的服务器上。 在你看来,你觉得哪三种分析工具最好?
我的目标:基本上来分析错误日志文件
软件安装:
* Analog * Awstats * Webalizer
我没有读过这个问题 – > Log Analyzer for Apache
谢谢。
您列出的三个日志分析器( Analog , Awstats和Webalizer )对Apache错误日志没有太多的帮助。
我已经使用ScanErrLog来总结Apache error_log文件好几年了。 我每天从Cron运行一次或两次,并记住它在哪里完成,能够拾取并添加到输出。 通常,我会生成一个HTML页面,其中包含计数和URL问题。 我可以制作其他格式。
四处寻找一个Apache错误日志parsing器,直到我发现这个命令,将parsing错误文件sorting错误发生:
sed 's^\[.*\]^^g' error.log | sed 's^\, referer: [^\n]*^^g' | sort | uniq -c | sort -n
输出:发生错误 – 错误文本
1 AH00126: Invalid URI in request GET HTTP/1.1 1 PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/con/libraries/joomla/database/driver/mysql.php on line 425 108 PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 512 bytes) in /var/www/es/libraries/joomla/database/driver/mysql.php on line 425 156 PHP Notice: Undefined index: select in /var/www/con/cli/form_output.php on line 3 156 PHP Notice: Undefined index: inputfrom_value in /var/www/con/cli/form_output.php on line 2 157 PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 83 bytes) in /var/www/es/libraries/joomla/database/driver/mysql.php on line 425 202 PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/es/libraries/joomla/database/driver/mysql.php on line 425 218 PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 80 bytes) in /var/www/es/libraries/joomla/database/driver/mysql.php on line 425 316 PHP Notice: Undefined index: in /var/www/con/cli/unit.php on line 513 520 PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 81 bytes) in /var/www/es/libraries/joomla/database/driver/mysql.php on line 425
要点: https : //gist.github.com/marcanuy/a08d5f2d9c19ba621399