Quote:
Originally Posted by Random 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:
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 You can control log file retention via one or more settings in /etc/logrotate.d/zimbra as well as by modifying zimbra's crontab.
Just remember that when you upgrade Zimbra your changes will not be saved!
Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO
"Uptime. All the time."
477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678
proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting