How to generate correct LOG?

#1
Hello,

I remember that a while ago, my log was detailed with IP, date and the LINK accessed in that moment, but now the log is coming without any details, would anyone know how to help me?

To summarize: I wanted the application to generate a log from where the client is accessing

Look the logs:
Code:
["Example"] 172.68.24.113 - - [28/Jun/2020:11:14:14 -0300] "" 200 85  
["Example"] 172.68.23.196 - - [28/Jun/2020:11:14:16 -0300] "" 200 171  
["Example"] 46.229.124.162 - - [28/Jun/2020:11:14:19 -0300] "" 200 11533  
["Example"] 172.68.27.176 - - [28/Jun/2020:11:14:19 -0300] "" 404 705  
["Example"] 162.158.108.206 - - [28/Jun/2020:11:14:20 -0300] "" 301 -  
["Example"] 172.69.69.101 - - [28/Jun/2020:11:14:21 -0300] "" 200 11528
thanks
 
#3
Figured it out. You can change the log format on the log tab. Make sure to check Referrer/User Agent/Host or provide a log format such as:

"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"​

You can find other options by clicking on the log format help bubble. Then restart lsws from the webadmin console or by doing 'sudo service lsws restart' on the cmd line.
 
Top