dansguardian logging

Posted on 2008-11-13
Last Modified: 2012-05-05
Does anyone know of a way to make dansguardian keep its logs longer than 5 days?
Question by:dlbearcave

    Accepted Solution

    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:


    Change that to the number of days worth of logs you would like to keep.

    Author Closing Comment

    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
                    /etc/init.d/dansguardian stop > /dev/null 2>&1 || true
                    /etc/init.d/dansguardian start  > /dev/null 2>&1

    I changed the rotate from 5 to 31. Thanks.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
    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 (, affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now