Results 1 to 9 of 9

Thread: reduce logs (cleaning process)

  1. #1
    madunix is offline Senior Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    65
    Rep Power
    7

    Default reduce logs (cleaning process)

    under logs in my mail systems i have multiple logs (/opt/zimbra/log)
    [imail log]$ du .
    90328 .

    [imail log]$ ls
    amavisd.pid zmmailboxd.out.200806280000 zmmailboxd.out.200902090000 zmmailboxd.out.200909230000
    audit.log zmmailboxd.out.200806290000
    audit.log.2010-04-17 zmmailboxd.out.200807030000 zmmailboxd.out.200902170000 zmmailboxd.out.200910010000
    audit.log.2010-04-21 zmmailboxd.out.200807070000 zmmailboxd.out.200902180000 zmmailboxd.out.200910020000
    audit.log.2010-04-22 zmmailboxd.out.200807080000 zmmailboxd.out.200902190000 zmmailboxd.out.200910030000
    clamd.log zmmailboxd.out.200807090000 zmmailboxd.out.200902200000 zmmailboxd.out.200910040000
    clamd.pid zmmailboxd.out.200807100000 zmmailboxd.out.200902210000 zmmailboxd.out.200910050000
    freshclam.log zmmailboxd.out.200807110000 zmmailboxd.out.200902220000 zmmailboxd.out.200910060000
    httpd.pid zmmailboxd.out.200807120000 zmmailboxd.out.200902230000 zmmailboxd.out.200910070000
    mailbox.log zmmailboxd.out.200807180000 zmmailboxd.out.200903010000 zmmailboxd.out.200910130000
    mailbox.log.2010-04-14 zmmailboxd.out.200807190000 zmmailboxd.out.200903020000 zmmailboxd.out.200910140000
    mailbox.log.2010-04-15 zmmailboxd.out.200807200000 zmmailboxd.out.200903030000 zmmailboxd.out.200910150000
    mailbox.log.2010-04-16 zmmailboxd.out.200807210000 zmmailboxd.out.200903040000 zmmailboxd.out.200910160000
    myslow.log zmmailboxd.out.200807280000 zmmailboxd.out.200903110000 zmmailboxd.out.200910230000
    myslow.log.1.gz zmmailboxd.out.200807290000 zmmailboxd.out.200903120000 zmmailboxd.out.200910240000
    myslow.log.2.gz zmmailboxd.out.200807300000 zmmailboxd.out.200903130000 zmmailboxd.out.200910250000
    spamtrain.log zmmailboxd.out.200807310000 zmmailboxd.out.200903140000 zmmailboxd.out.200910260000
    stacktrace.10148 zmmailboxd.out.200808010000 zmmailboxd.out.200903150000 zmmailboxd.out.200910270000
    stacktrace.10206 zmmailboxd.out.200808020000 zmmailboxd.out.200903160000 zmmailboxd.out.200910280000
    stacktrace.10702 zmmailboxd.out.200808030000 zmmailboxd.out.200903170000 zmmailboxd.out.200910290000
    stacktrace.11339 zmmailboxd.out.200808040000 zmmailboxd.out.200903180000 zmmailboxd.out.200910300000
    stacktrace.8581 zmmailboxd.out.200809250000 zmmailboxd.out.200905090000 zmmailboxd.out.200912220000
    stacktrace.9004 zmmailboxd.out.200809260000 zmmailboxd.out.200905100000 zmmailboxd.out.200912230000
    stacktrace.916 zmmailboxd.out.200809270000 zmmailboxd.out.200905110000 zmmailboxd.out.200912240000
    swatch.pid zmmailboxd.out.200809280000 zmmailboxd.out.200905120000 zmmailboxd.out.200912250000
    sync.log zmmailboxd.out.200809290000 zmmailboxd.out.200905130000 zmmailboxd.out.200912260000
    syncstate.log zmmailboxd.out.200809300000 zmmailboxd.out.200905140000 zmmailboxd.out.200912270000
    synctrace.log zmmailboxd.out.200810010000 zmmailboxd.out.200905150000 zmmailboxd.out.200912280000
    wbxml.log zmmailboxd.out.200810020000 zmmailboxd.out.200905160000 zmmailboxd.out.200912290000
    zmlogswatch.out zmmailboxd.out.200810030000 zmmailboxd.out.200905170000 zmmailboxd.out.200912300000
    zmlogswatch.out.1.gz zmmailboxd.out.200810040000 zmmailboxd.out.200905180000 zmmailboxd.out.200912310000
    zmlogswatch.out.2.gz zmmailboxd.out.200810050000 zmmailboxd.out.200905190000 zmmailboxd.out.201001010000
    zmlogswatch.out.3.gz zmmailboxd.out.200810060000 zmmailboxd.out.200905200000 zmmailboxd.out.201001020000
    zmlogswatch.out.4.gz zmmailboxd.out.200810070000 zmmailboxd.out.200905210000 zmmailboxd.out.201001030000
    zmlogswatch.out.5.gz zmmailboxd.out.200810080000 zmmailboxd.out.200905220000 zmmailboxd.out.201001040000
    zmmailboxd.out zmmailboxd.out.200810090000 zmmailboxd.out.200905230000 zmmailboxd.out.201001050000
    zmmailboxd.out.200802270000 zmmailboxd.out.200810100000 zmmailboxd.out.200905240000 zmmailboxd.out.201001060000
    zmmailboxd.out.200802280000 zmmailboxd.out.200810110000 zmmailboxd.out.200905250000 zmmailboxd.out.201001070000
    zmmailboxd.out.200802290000 zmmailboxd.out.200810120000 zmmailboxd.out.200905260000 zmmailboxd.out.201001080000
    zmmailboxd.out.200803010000 zmmailboxd.out.200810130000 zmmailboxd.out.200905270000 zmmailboxd.out.201001090000
    zmmailboxd.out.200803020000 zmmailboxd.out.200810140000 zmmailboxd.out.200905280000 zmmailboxd.out.201001100000
    zmmailboxd.out.200803030000 zmmailboxd.out.200810150000 zmmailboxd.out.200905290000 zmmailboxd.out.201001110000
    zmmailboxd.out.200803040000 zmmailboxd.out.200810160000 zmmailboxd.out.200905300000 zmmailboxd.out.201001120000
    zmmailboxd.out.200803050000 zmmailboxd.out.200810170000 zmmailboxd.out.200905310000 zmmailboxd.out.201001130000
    zmmailboxd.out.200803060000 zmmailboxd.out.200810180000 zmmailboxd.out.200906010000 zmmailboxd.out.201001140000
    zmmailboxd.out.200805070100 zmmailboxd.out.200812190000 zmmailboxd.out.200908020000 zmmailboxd.out.201003170000
    zmmailboxd.out.200805080100 zmmailboxd.out.200812200000 zmmailboxd.out.200908030000 zmmailboxd.out.201003180000
    zmmailboxd.out.200805090100 zmmailboxd.out.200812210000 zmmailboxd.out.200908040000 zmmailboxd.out.201003190000
    zmmailboxd.out.200805100100 zmmailboxd.out.200812220000 zmmailboxd.out.200908050000 zmmailboxd.out.201003200000
    zmmailboxd.out.200909200000 zmswatch.out.3.gz
    zmmailboxd.out.200806260000 zmmailboxd.out.200902070000 zmmailboxd.out.200909210000 zmswatch.out.4.gz
    zmmailboxd.out.200806270000 zmmailboxd.out.200902080000 zmmailboxd.out.200909220000 zmswatch.out.5.gz

    how can i minimize producing them or recycle them? do i need to keep them all?

    Thanks

  2. #2
    madunix is offline Senior Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    65
    Rep Power
    7

    Default

    any help in this issue??

  3. #3
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Looks like on later versions we rotate the zmmailboxd.out error log a bit / keep only 10 - I have none older than the 16th/17th on multiple boxes.

    You can run a rm -f zmmailboxd.out.* (or cron it if you really want).

    http://www.zimbra.com/forums/announc...sion-info.html

  4. #4
    madunix is offline Senior Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    65
    Rep Power
    7

    Default

    is it safe to rm them?

  5. #5
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    7

    Default

    Thats what mike wrote in post. follow what he wrote.

  6. #6
    madunix is offline Senior Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    65
    Rep Power
    7

    Default

    Thanks ... Done

  7. #7
    nrgyz is offline Intermediate Member
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    20
    Rep Power
    6

    Default

    Unfortunately, that's only a temporary solution and log files will continue to grow up. Log pruning seems incorrect.

    What is the result of
    Code:
    crontab -l
    (run it under zimbra user)

    Paste only lines that are under the 'Log pruning' section.

  8. #8
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Could add something like:
    30 2 * * * find /opt/zimbra/log/ -type f -name stacktrace.\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
    30 2 * * * find /opt/zimbra/log/ -type f -name zmmailboxd.out.\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
    Last edited by mmorse; 04-28-2010 at 11:28 AM. Reason: .out. - don't want to remove the zmmailboxd java & manager pid's

  9. #9
    madunix is offline Senior Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    65
    Rep Power
    7

    Default

    What else can I keep be it under cleansing process (75% used /opt/zimbra)?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 07-13-2009, 12:16 PM
  2. [SOLVED] Outlook no longer updating
    By jeremy.pratt in forum Zimbra Connector for BlackBerry
    Replies: 10
    Last Post: 05-30-2008, 03:22 PM
  3. Can't seem to get global in BES
    By sdemeyer in forum Zimbra Connector for BlackBerry
    Replies: 12
    Last Post: 03-19-2008, 08:22 AM
  4. Cleaning Zimbra Logger logs
    By shelta in forum Administrators
    Replies: 3
    Last Post: 02-15-2008, 05:03 AM
  5. Why JDK?
    By paladine in forum Installation
    Replies: 3
    Last Post: 11-15-2006, 02:43 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
  •