PDA

View Full Version : Rotating Access Logs - LiveStats


Proweb-UK
05-30-2006, 04:34 AM
We run Deepmatrix LiveStats to stat our vh traffic which relies on log files rotating on an arbitrary (in our casse, daily) basis with a unique log file name such as yyddmm.log. The logs are parsed on a 10 minute basis to indicate 'who's online' etc. I cannot find any examples to duplicate apache / rotatelog behaviour using an external app / pipe logger and would be grateful for any idea's ?


Thanks in advance, cool product btw.

mistwang
05-30-2006, 07:07 AM
Just rename the log file in a cron job, litespeed will create a new log file automatically. No special care need to be taken. :)

sofatime
08-04-2006, 11:47 AM
Just to be sure: No need to restart lsws? Are the old logfiles closed? (with Apache you need a restart)

mistwang
08-04-2006, 11:58 AM
Yes, no need to restart LSWS, web server can detect it automatically, close the older file then create a new one. :-)

sofatime
08-04-2006, 12:04 PM
Cool! I am so used to Apache that I sometimes don't even think that others can do better... :-)