Re: [squid-users] monthly log rotation

From: Adrian Chadd <adrian@dont-contact.us>
Date: Sat, 20 Oct 2007 16:24:40 +0800

man -k crontab

Under MacOSX its man 5 crontab which describes the crontab file
format.

     The time and date fields are:

           field allowed values
           ----- --------------
           minute 0-59
           hour 0-23
           day of month 1-31
           month 1-12 (or names, see below)
           day of week 0-7 (0 or 7 is Sun, or use names)

Set a cron entry for midnight on the first day of the month to rotate.

On Sat, Oct 20, 2007, Arun Shrimali wrote:
> Dear All /Tek
>
> I have using fedora core 6 and upgraded squid to 2.6 stable 4.
> All my configuration are default.
> My log rotate on weekly basis where as I want to rotate on monthly
> basis. that's it.
>
> Arun
>
> On 10/18/07, Tek Bahadur Limbu <teklimbu@wlink.com.np> wrote:
> > Hi Arun,
> >
> >
> > Arun Shrimali wrote:
> > > Dear All,
> > >
> > > I have configured Squid 2.5 stable 6.
> > > My all settings related to log are default, thus log automatic rotate
> > > on sunday night. I want this to be rotate on monthly basis i.e. on
> > > 30th / 31st night.
> > > where should i make the changes
> >
> >
> > How are you rotating your logs every Sunday night currently? Does your
> > log rotation include just Squid logs or everything (kernel messages,etc)?
> >
> > Is Redhat your OS? Basically, you normally use the utility called
> > logrotate to rotate your machine's various log files.
> >
> > You can check the site below for more information on using logrotate to
> > rotate Squid and Apache logs:
> >
> > http://teklimbu.wordpress.com/2007/10/16/managing-your-linuxunix-log-files-using-logrotate/
> >
> >
> > Or simply,
> >
> > Add the following entry to rotate your squid logs on the 28th of every
> > month at 1 AM in your /etc/crontab
> >
> > 00 01 28 * * root squid -k rotate > /dev/null 2>&1
> >
> >
> > Note: you may need to specify the full path of your squid binary.
> >
> >
> > By the way, I personally feel that your Squid 2.5stable6 is way too old!
> > I feel that your time has come to upgrade.
> >
> > Check out the latest stable release below:
> >
> > http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE16.tar.gz
> >
> >
> >
> > Thanking you...
> >
> >
> > >
> > > Arun
> > >
> > >
> > >
> >
> >
> > --
> >
> > With best regards and good wishes,
> >
> > Yours sincerely,
> >
> > Tek Bahadur Limbu
> >
> > System Administrator
> >
> > (TAG/TDG Group)
> > Jwl Systems Department
> >
> > Worldlink Communications Pvt. Ltd.
> >
> > Jawalakhel, Nepal
> >
> > http://www.wlink.com.np
> >
> > http://teklimbu.wordpress.com
> >
>
>
> --
> ********************************
> Arun Shrimali
> Sr. Manager (IT & QS)
> Resonance
> +91 9413353335
> www.resonance.ac.in
> *******************************

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level bandwidth-capped VPSes available in WA -
Received on Sat Oct 20 2007 - 02:23:34 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT