Results 1 to 3 of 3

Thread: Logfile size

  1. #1
    Join Date
    Oct 2005
    Location
    Hong Kong
    Posts
    95
    Rep Power
    10

    Default Logfile size

    How can I set logfile size limit? For example my logger_myslow.log is 76mb right now...

  2. #2
    Join Date
    Nov 2005
    Posts
    51
    Rep Power
    9

    Default

    Add to /opt/zimbra/bin/zmlogrotate and/or /etc/logrotate.d/zimbra
    It is a normal logrotate style file. You can add entries for logger_myslow.log. I included a wide varity of options. More of a discription can be found at man logrotate.

    Code:
    /opt/zimbra/log/logger_myslow.log {
            daily
            missingok
            notifempty
            create 0660 zimbra zimbra
            compress
            size 5000k
            rotate 3
    }
    There is also a file /etc/logrotate.d/zimbra that is the same as zmlogrotate. I'm not sure which one to edit. I know logrotate will rotate the one in /etc/logrotate.d for sure though. To manually rotate the logs you can use logrotate /opt/zimbra/bin/zmlogrotate. I guess one could symlink one to the other to simplfy things.

    -Ben

  3. #3
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default which file?

    zmlogrotate is installed in /etc/logrotate.d - you want to edit the one in logrotate.d - I'll get this into the product for the next release.

    Thanks, guys...

Similar Threads

  1. Sort by size
    By cshepherd in forum Users
    Replies: 6
    Last Post: 01-30-2010, 11:05 PM
  2. Zimbra Email Size Limit
    By kurt2 in forum Administrators
    Replies: 7
    Last Post: 10-07-2009, 08:20 PM
  3. Get mailbox size (for create quota warning SMTP script)
    By inigoml in forum Administrators
    Replies: 28
    Last Post: 08-21-2007, 06:35 AM
  4. Increasing the size of an email
    By mansuper in forum Administrators
    Replies: 2
    Last Post: 10-29-2006, 11:36 PM
  5. Attachment size
    By kowell in forum Administrators
    Replies: 2
    Last Post: 06-14-2006, 08:43 AM

Posting Permissions

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