Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-2010, 12:49 AM
Senior Member
 
Posts: 63
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
Reply With Quote
  #2 (permalink)  
Old 04-24-2010, 10:27 PM
Senior Member
 
Posts: 63
Default

any help in this issue??
Reply With Quote
  #3 (permalink)  
Old 04-25-2010, 07:52 AM
Moderator
 
Posts: 6,237
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
Reply With Quote
  #4 (permalink)  
Old 04-28-2010, 06:21 AM
Senior Member
 
Posts: 63
Default

is it safe to rm them?
Reply With Quote
  #5 (permalink)  
Old 04-28-2010, 09:59 AM
Outstanding Member
 
Posts: 594
Default

Thats what mike wrote in post. follow what he wrote.
Reply With Quote
  #6 (permalink)  
Old 04-28-2010, 10:22 AM
Senior Member
 
Posts: 63
Default

Thanks ... Done
Reply With Quote
  #7 (permalink)  
Old 04-28-2010, 11:12 AM
Intermediate Member
 
Posts: 20
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.
Reply With Quote
  #8 (permalink)  
Old 04-28-2010, 11:23 AM
Moderator
 
Posts: 6,237
Default

Could add something like:
Quote:
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
Reply With Quote
  #9 (permalink)  
Old 07-28-2011, 02:03 AM
Senior Member
 
Posts: 63
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.