Web server log displays only numbers now

gilles

Active Member
#1
I am running lsws 1.7.4 and the logs/access.log now looks like this:

<ip_address> - - [09/Sep/2020:09:20:27 +0000] "" 400 B1209​
<ip_address> - - [09/Sep/2020:09:34:41 +0000] "" 400 B1209​
<ip_address> - - [09/Sep/2020:21:04:58 +0000] "" 200 O-​
<ip_address> - - [09/Sep/2020:21:05:06 +0000] "" 200 O-​

instead of:

<ip_address> - - [04/Sep/2020:08:47:18 +0000] "GET / HTTP/1.0" 404 1236 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.2 Safari/537.36"​

I have tried to change the log format in the webadmin console to no avail.

If someone has a clue on how to fix this, please advise. Thank you :)
 

gilles

Active Member
#2
Apparently I had to do:
sudo service lsws restart​

after enabling Referrer/User Agent/Host in the log headers and setting the log format to:
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"​

to make it all work. Doing a restart from the webadmin console was not sufficient.
 
Top