how to store zimbra.log, for example 30 days, without external scripts?
now zimbra.log stored only 4 days.
how to store zimbra.log, for example 30 days, without external scripts?
now zimbra.log stored only 4 days.
Log file rotation is controlled by the zimbra script in /etc/logrotate.d and log file purging is controlled by the two entries below in the zimbra user's crontab:
You can control log file retention via one or more settings in /etc/logrotate.d/zimbra as well as by modifying zimbra's crontab.Code:# Log pruning # 30 2 * * * find /opt/zimbra/mailboxd/logs/ -type f -name \*log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1 30 2 * * * find /opt/zimbra/log/ -type f -name stacktrace.\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
Just remember that when you upgrade Zimbra your changes will not be saved!
Hope that helps,
Mark
___________________________________
L. Mark Stone, Managing Member
"Uptime. All the time."®
Ten Years In Business! 2003 - 2013!
477 Congress Street, Suite 812 | Portland, ME 04101 | (207) 772-5678
proactive maintenance and monitoring | technology consulting
Zimbra groupware | cloud hosting | business continuity
Maine's only managed services and cloud hosting provider with a
SOC 2 Type II audit covering Security, Availability and Confidentiality
There are currently 1 users browsing this thread. (0 members and 1 guests)