As per previous support post, I got this working (can’t use X-Forwarded-From because it only parses two hyphenated parts) and it was working yesterday.
But today it has stopped working again saying that the log format is invalid though I have made no changes to the log format configuration.
Anyone got any ideas why?
]]>If you set your own excluded status codes in the widget configuration, these are not honoured and the default excluded list is used instead.
I have submitted a PR to GitHub to correct this issue.
]]>I am trying to configure the log format.
Hosting company says here that log format is:
%h %l %u %t \"%r\" %s %b %v \"%{Referer}i\" \"%{User-agent}i\" \"%{X-Forwarded-For}i\"
I have tried it both with and without the escaped ” and cannot get it to work.
The example log entry shown by the widget is:
195.166.157.5 - - [19/Feb/2015:00:00:18 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 47 www.eastdevonalliance.org.uk "https://www.eastdevonalliance.org.uk/wp-admin/plugins.php" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0" "-"
I have also tried:
%a %l %u [%{%d/%b/%G:%H:%M:%S %z}t] "%r" %s %b %v "%{Referer}i" "%{User-agent}i" "%{X-Forwarded-For}i"
and
%a %l %u %{[%d/%b/%G:%H:%M:%S %z]}t "%r" %s %b %v "%{Referer}i" "%{User-agent}i" "%{X-Forwarded-For}i"
Unfortunately this plugin does not explain where the parsing fails – it just says “Log format has problems”.
Any help gratefully received.
]]>