kassner / log-parser

PHP Web Server Log Parser Library
Apache License 2.0
334 stars 64 forks source link

Support for apache error log? #34

Closed krukru closed 7 years ago

krukru commented 7 years ago

Can this parser parse apache error logs? Error logs have a slightly different format for recording time [Fri Dec 16 01:46:23 2005] [error] [client 1.2.3.4] Directory index forbidden by rule: /home/test/ then what I can see is expected in access logs [13/Sep/2006:07:01:53 -0700]

kassner commented 7 years ago

@krukru not really the goal for this library, but you can have a look on the issue #21, which has some explanation on how to use for Nginx's error.log. Should work likewise.

krukru commented 7 years ago

That's too bad, it would be very useful to be able to parse both types of apache logs :(