apache2-log-parser icon indicating copy to clipboard operation
apache2-log-parser copied to clipboard

Nginx log parsing

Open skynet opened this issue 9 years ago • 4 comments

I suspect that this library can also parse Nginx log files. Please correct me if I am wrong.

skynet avatar Dec 19 '15 21:12 skynet

Actually, it can not. Apache and nginx uses different syntax for log format configuration. That configured log format is the key of this library. You simply copy format from config and you are ready to parse your logs. No need to write regular expressions, etc.

Back to nginx. As I said, this library doesn't support nginx log format and it probably wont.

mvar avatar Dec 19 '15 21:12 mvar

Nginx is very popular. How about a fork: nginx-log-parser

skynet avatar Dec 19 '15 21:12 skynet

Great idea. I see here is not so much work to do. Most of the code could be reused.

mvar avatar Dec 19 '15 21:12 mvar

:+1:

skynet avatar Dec 19 '15 23:12 skynet