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

Re: logresolve

Dan MacNeil wrote:
Right now it is sometimes taking longer than 24 hours to run reports (analog) on our apache logs.

Does anyone have experience/opinions on putting logresolve into the picture ?

How do you move the resolved log into the place of the unresolved one without stopping apache for long ?

maybe approximately:

    cd $RIGHT_DIR
    apachectl stop
    mv combined.log combined.log.tobe.resolved
    apachectl start
    logresolve < combined.log.tobe.resolved > combined.log.resolved
    apachectl stop
    cat combined.log >> combined.log.resolved
    mv combined.log.resolved combined.log
    apachectl start

As far as I know, apache will continue writing to a logfile if it's moved to another location on the same filesystem; you can then use "apachectl graceful" to have apache open new logfiles.


Maarten Vink

Reply to: