cronolog.org
flexible web log rotation
HOME
DOWNLOAD
FEATURES
USAGE
FAQ
BLOG
KNOWN BUGS
SECURITY
PATCHES
USERS
TO DO
HISTORY
LINKS
FEEDBACK
MAILING LIST
ADVERTISING

support cronolog development



Google   HELP


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CRONOLOG: sync with cron scripts



> 
> Tuc wrote:
> 
> > >
> > > Can cronolog be forced in some way to rotate the logs at midnight whether
> > > there is traffic or not?
> > >
> >         Run a script at 0 0 * * * * that sleeps for a few seconds, runs a
> > lynx/GET/wget to dump the main page to /dev/null, and exit. A tad of a kludge,
> > but it works!  (We rotate logs hourly for a customer)
> >
> >                 Tuc/TTSG Internet Services, Inc.
> 
> whats with:
> 
> "...
> CustomLog "| /path/cronolog /path2logs/access_log.%Y%m%d%H" combined
> ..."
> 
> in httpd.conf?
> 
> (we use ...access_log.%Y%m... for automatic monthly rotated log-files ... works)
> 
        Ok, apparently I doughnt speek gud englush. More than 1 person has
told me they didn't understand why I was having problems.
        Objective: Obtain logs on an hourly basis
        Problem: If no traffic arrives for an hour or more, cronolog does not
                disconnect the file handle from the first file and create the
                next file.
        Solution: Force a query at the top of every hour, so that your
                guaranteed that the filehandle disconnects and a new file is
                created.
        I'm not having "problems". I don't see it as a cronolog issue really.
I see it as a low traffic site issue.  We manipulate the files hourly (Customer
request) and we found that there were filehandle issues if we started moving
it and stuff while the filehandle was still open to it.
                        Tuc/TTSG Internet Services, Inc.

Copyright © 1996-2010 Andrew Ford and Ford & Mason Ltd