Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Log File Sizes = HUGE

  1. #1
    Join Date
    Jan 2008
    Location
    Villa Park, IL
    Posts
    92
    Rep Power
    7

    Default Log File Sizes = HUGE

    I have been trying to track down my growing disk usage and found that zimbra-stats.log is up to 2.1GB and zimbra.log is now a whopping 3.8GB. My entire store is less than 3GB (Only a handful of accounts). I find it curious that 2 of the log files are double the size of the entire mail store

    First, can I change the maximum size of those log files? And how can I find out why they aren't rotating?

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Check in /etc/logrotate.d for a zimbra file. By default the logs should rotate on a daily basis.

  3. #3
    Join Date
    Jan 2008
    Location
    Villa Park, IL
    Posts
    92
    Rep Power
    7

    Default

    Thanks for the amazingly fast response.

    I did check that and it is set to daily.

  4. #4
    Join Date
    Jan 2008
    Location
    Villa Park, IL
    Posts
    92
    Rep Power
    7

    Default

    Also, is there a setting for the level of detail in these logs?

  5. #5
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Check the permissions on the existing files ... they should be
    Code:
    [root@office logrotate.d]# ls -l /var/log/zimbra*
    -rw-r--r-- 1 zimbra zimbra   217027 Apr 13 16:08 /var/log/zimbra.log
    -rw-r--r-- 1 zimbra zimbra 16897168 Apr 13 16:09 /var/log/zimbra-stats.log
    You should also check that logrotate is set to run from /etc/cron.daily.

  6. #6
    Join Date
    Jan 2008
    Location
    Villa Park, IL
    Posts
    92
    Rep Power
    7

    Default

    Yes, that is exactly the permissions set. And logrotate is set to run every night.

  7. #7
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    On the current file check the top record
    Code:
    head /var/log/zimbra.log
    Has it rolled over at all ? Are you just processing a huge amount of email ?

  8. #8
    Join Date
    Jan 2008
    Location
    Villa Park, IL
    Posts
    92
    Rep Power
    7

    Default

    The head shows April 1 which I am assuming is this past April 1. So there must be some rotation happening.

    No, I am not processing a lot of mail. There are actually only 2 of us on this server. I have 6 or so accounts for my business and a couple of websites that I run. And my wife has 3 or so accounts. Truly nothing major in email counts.

    So I am thinking that I will stop Zimbra, clear those logs and then watch for a bit and see how fast they grow.

  9. #9
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Is cron running ?
    Code:
    ps aux | grep cron

  10. #10
    Join Date
    Jan 2008
    Location
    Villa Park, IL
    Posts
    92
    Rep Power
    7

    Default

    Yes. Cron jobs have been running without fail near as I can tell. I get my nightly logwatch and admin email reports and a cron message. The logs are the only thing that have been an issue.

    I've just cleared the logs and restarted the server. I'll watch a bit and see where it goes.

    Thanks again for all your help.

Similar Threads

  1. Zimbra 5.0.18 Upgrade to 6.0.4 - Some Issues
    By LMStone in forum Administrators
    Replies: 25
    Last Post: 07-30-2010, 10:00 AM
  2. [SOLVED] Error running mailboxd after script backup
    By ttortosa in forum Administrators
    Replies: 5
    Last Post: 10-22-2008, 02:33 AM
  3. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 12:24 PM
  4. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  5. Errors in log file
    By layer3guru in forum Administrators
    Replies: 2
    Last Post: 08-11-2006, 05:20 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
  •