#26·ngxtop

log_format of apache access logs

Author: lukashesCreated Mar 31, 2014Updated Mar 3, 2021

Hi!

I have log like this:

192.168.7.40 - - [31/Mar/2014:04:02:02 +0400] "POST /my/url HTTP/1.0" 200 16 "-" "Zend_Http_Client"

It successfully parsed by ngxtop, but if I have this format:

192.168.7.40 192.168.7.41 - [31/Mar/2014:04:02:02 +0400] "POST /my/url HTTP/1.0" 200 16 "-" "Zend_Http_Client"

It does not parse.

How can I parsed this log? I tried to use --log-format but it did not help me.