View Full Version : Access Log Customization
paTRon
07-04-2007, 01:22 PM
Hi Folks,
I'm new member in this forum.
I have been using Lite Speed about 1 year. I'm very pleased but i have a little problem.
I don't have any chance to look around in this forum.
I want to customize my access.log format. For example I want to log cookie parameters.
How can I do it ?
Thanks for your replies.
Kursad.
mistwang
07-04-2007, 01:27 PM
You can set custom access log format like that in Apache with Enterprise edition.
SoreGUms
07-18-2007, 02:19 AM
So just taking this line and plonk it into the log format box will work?
cause it doesn't work for me....
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
SoreGUms
07-18-2007, 02:26 AM
Ok sorted it out - the web form encodes all the bits that shouldn't be...
So i changed it in the vhconf.xml file
mistwang
07-18-2007, 07:02 AM
You should put
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""Not the whole line.
I think the encoding is fine, that's just standarded XML encoding, please let me know what is wrong exactly.
SoreGUms
07-18-2007, 03:29 PM
I didn't put the whole line :)
I just took out the bit that needs to go in there.
<logFormat>%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"</logFormat>
I also typed that in as " > not with the encoding... But it works like that ^^
Also you can't actually edit this in the browser because of the greater than character - I don't even know what it does... I just needed combined logging format for awtstats as the included one doesn't work the way I want it to.
Pics attached of browser behaviour
mistwang
07-18-2007, 08:13 PM
Looks like a bug in the admin console code, will be fixed.
paTRon
07-19-2007, 08:05 AM
is it using in Enterprise Edition ?
I didn't put the whole line :)
I just took out the bit that needs to go in there.
<logFormat>%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"</logFormat>
I also typed that in as " > not with the encoding... But it works like that ^^
Also you can't actually edit this in the browser because of the greater than character - I don't even know what it does... I just needed combined logging format for awtstats as the included one doesn't work the way I want it to.
Pics attached of browser behaviour
SoreGUms
07-19-2007, 08:07 AM
is it using in Enterprise Edition ?
Nope, Standard
mistwang
07-19-2007, 12:37 PM
Nope, Standard
Custom logging will not work with standard. It is a feature only available to Enterprise. Apache combined log format is the default log format.
SoreGUms
07-19-2007, 06:27 PM
Custom logging will not work with standard. It is a feature only available to Enterprise. Apache combined log format is the default log format.
Well then, thats good - another thing I don't have to worry about, top stuff :)