+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
*nix Thread, Squid WARNING in Technical; logrotate is almost certainly already configured to run via cron. There will probably be a link to it in /etc/cron.daily. ...
  1. #16

    Join Date
    Oct 2007
    Location
    Lincolnshire
    Posts
    133
    Thank Post
    0
    Thanked 22 Times in 22 Posts
    Rep Power
    17
    logrotate is almost certainly already configured to run via cron. There will probably be a link to it in /etc/cron.daily.

    Assuming your logrotate.conf is in /etc, you can check your configuration by running 'logrotate -d /etc/logrotate.conf'. That will print a summary of what your config does.

    To do a test rotate, run 'logrotate -f /etc/logrotate.conf'.

    I've made my own reporting utilities so I'm not sure what SARG does, but if you have lots of reports building up there's no reason not to use logrotate to manage them.

  2. #17

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Using logrotate -d and logrotate -f produces the error:

    error: /etc/logrotate.conf:36 duplicate log entry for /var/log/squid3/access.log

  3. #18

    Join Date
    Oct 2007
    Location
    Lincolnshire
    Posts
    133
    Thank Post
    0
    Thanked 22 Times in 22 Posts
    Rep Power
    17
    It sounds like you already had logrotate set up to rotate access.log. The configuration is probably in an include file in the /etc/logrotate.d/ directory. You just need to rationalize where you're going to keep the config - either in logrotate.conf or in the include file.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Squid Transparent
    By Jackd in forum *nix
    Replies: 5
    Last Post: 10th October 2007, 02:12 PM
  2. Squid logs
    By srochford in forum How do you do....it?
    Replies: 12
    Last Post: 13th April 2007, 12:53 PM
  3. Squid authentication
    By localzuk in forum *nix
    Replies: 21
    Last Post: 14th February 2007, 08:08 AM
  4. Squid and RM proxies
    By HodgeHi in forum Wireless Networks
    Replies: 6
    Last Post: 1st November 2006, 11:02 AM
  5. Squid Screwed
    By Gatt in forum Wireless Networks
    Replies: 11
    Last Post: 10th October 2006, 02:12 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •