?
Solved

dansguardian logging

Posted on 2008-11-13
2
Medium Priority
?
258 Views
Last Modified: 2012-05-05
Does anyone know of a way to make dansguardian keep its logs longer than 5 days?
0
Comment
Question by:dlbearcave
2 Comments
 

Accepted Solution

by:
sectek earned 750 total points
ID: 22955080
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
 

Author Closing Comment

by:dlbearcave
ID: 31516570
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

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Fine Tune your automatic Updates for Ubuntu / Debian
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question