Link to home
Start Free TrialLog in
Avatar of dlbearcave
dlbearcave

asked on

dansguardian logging

Does anyone know of a way to make dansguardian keep its logs longer than 5 days?
ASKER CERTIFIED SOLUTION
Avatar of sectek
sectek

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dlbearcave
dlbearcave

ASKER

You were close enough to send me in the right direction, in /etc/logrotate.d/dansguardian it said...

/var/log/dansguardian/access.log {
        rotate 5
        daily
        prerotate
                /etc/init.d/dansguardian stop > /dev/null 2>&1 || true
        endscript
        postrotate
                /etc/init.d/dansguardian start  > /dev/null 2>&1
        endscript
}

I changed the rotate from 5 to 31. Thanks.