Results 1 to 3 of 3
  1. #1

    Small problem with our logrotate...

    Well, not a problem really, more of an annoyance.

    This is our logrotate definition for Apache's logs folder:

    /var/log/httpd/*log {
        rotate 5
            /bin/kill -HUP `cat /var/run/ 2>/dev/null` 2> /dev/null || true
    Yet, while it does truncate logs in five, we seem to have fairly different sizes: 182M, 168M, 968M (!)... It seems to be ignoring "size=100M", any ideas why?


  2. #2
    Join Date
    May 2008
    I'm not certain it's your problem, but the man page shows it as "size 100M", without the "="...
    Dan Hildebrandt, Developer / Support, WebGroup Media LLC. -
    Cerberus Helpdesk 5.x is a CRM toolkit. Remember anything about anybody, swiftly reply to a flood of e-mail,
    capture feedback organically, track time, flag opportunities, share tasks, and more.

  3. #3
    Join Date
    Aug 2008
    Shoreline WA
    I do actually see it both with the = and without for an out of the box CentOS 5.3 system, so I think both work. It might be more of an issue of, daily, the logrotate program is ran, and if when it checks the logs, they are larger than the given size, then it rotates them. This gives the varying sizes that you see, due to the fact it does not check every minute, but once a day.
    Last edited by Jonathan Kinney; 06-23-2009 at 02:16 PM. Reason: typo
    Jonathan Kinney
    Data Systems Specialist
    Advantagecom Networks, Inc.

Similar Threads

  1. logrotate problem
    By kennlee in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-13-2004, 02:09 PM
  2. Replies: 4
    Last Post: 02-17-2002, 11:20 PM
  3. Logrotate
    By Omair Haroon in forum Dedicated Server
    Replies: 7
    Last Post: 02-11-2002, 06:18 PM
  4. Webalizer & logrotate problem
    By Franki in forum Dedicated Server
    Replies: 6
    Last Post: 09-21-2001, 06:04 PM
  5. logrotate problem
    By Starhost in forum Dedicated Server
    Replies: 0
    Last Post: 08-09-2001, 06:27 PM

Posting Permissions

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