[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] How do you deal with stats?
Here's a neat little trick i learned from somebody if you want to clear out
your logs after you've copied them to another file.
cat /dev/null > mylogfile.log
this way the file handle is never broken and apache can continue writing to
it with any problems and no need to restart.
mike k.
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of Christopher P.
> Lindsey
> Sent: Wednesday, December 01, 1999 8:18 PM
> To: minivend-users@minivend.com
> Subject: Re: [mv] How do you deal with stats?
>
>
> ****** message to minivend-users from "Christopher P.
> Lindsey" <lindsey@mallorn.com> ******
>
> > Yes I use a motified version of that to rotate the logs out
> to another dir which
> > I then resolve and parse with webalizer (all via cron) but
> when you rotate you
> > have to restart apaceh to create the new access and error
> files. It is this
> > short time frame I am concerned about and am probably just
> doing it wrong
> > as I dont recall that issue every being raised...
>
> I know this is way off-topic, but I've written a quick little
> perl script
> to do my log rotations. It's a little more flexible than
> most that I've
> seen, allowing for different rotation times for different logs, etc.
>
> It works for syslog, named, etc. as well.
>
http://www.mallorn.com/~lindsey/logs/
Not really fully-released; just something that I've thrown together.
Future changes include version rotation (keep last n rotations),
weekly rollovers, more action commands, etc. (actually, most of it's
done, but I haven't tried it under fire yet).
Chris
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list