dansguardian logging

Does anyone know of a way to make dansguardian keep its logs longer than 5 days?
dlbearcaveAsked:
Who is Participating?
 
sectekConnect With a Mentor Commented:
Look for the 'logrotation' script that you should have created a cron for. If you open the script in an editor(vi, pico, nano) you should see:

NUM_LOGS=4

Change that to the number of days worth of logs you would like to keep.
0
 
dlbearcaveAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.