Log Rotation in Catalina.out

1. Remove all logs of manager& admin Remove 90 days old logs  Backup logs greater that 35MB #!/bin/bash rm -rf /app/tomcat-6.0.18/logs/*manager* /app/tomcat-6.0.18/logs/*admin* find /cda1-logs-backups -name ‘*.gz’ -mtime +90 -exec rm {} \; echo “Initiating logrotate `date +%F-%A`” >> /app/tomcat-6.0.18/logs/diskutil.log cd /app/tomcat-6.0.18/logs/ siz_catalina=`/bin/ls -l catalina.out | /bin/awk ‘{ print $5 }’` if [ $siz_catalina -ge “3600000” […]

Read more
Rotating catalina.out log files

It is possible to rotate the catalina.out log, by using a log rotation program like rotatelogs or cronolog. It is possible to rotate the catalina.out log, but it is not controlled by the standard logging.properties or log4j.properties files. The catalina.out log is stderr and stdout piped to a file. If you want to rotate this […]

Read more
catalina.out log rotation

I am interested in catalina.out log file rotation, I have an application where logging to catalina.out is very huge, say 0.5 MB / sec. So I have written one script to handle this which is shown below.   # crontab -l | grep catalina 0,30 * * * * bash /catalina_log_handler.sh  >/dev/null 2>&1   # […]

Read more
ZIMBRA IMPROVEMENT : RESTRICTED SENDER/SENDER MUST LOGIN ON ZIMBRA 8

powerful mail server, Zimbra has some system security features applied by default. We can also applying some additional security policy to increase mail server protection, such as applying PolicyD and Fail2Ban All the above security rule may be sufficient, but there are some additional security tips should be considered, especially in the case of SMTP […]

Read more
Disk usage 100% even after deleting files

Reducing Disk Usage When Linux complains that the disk is full, you will naturally try to delete some files or move them away from the filled-up partition. So you delete some large files, and check to see that the disk usage is much lower. $ sudo du -shx / 7.8G    / But df tells you […]

Read more
Zimbra 8 – Adjust max attachment size for email

his sets the maximum attachment size to 50 megabytes. Log into the shell account and type the following: su zimbra zmprov mcf zimbraMtaMaxMessageSize 50000000 zmprov mcf zimbraFileUploadMaxSize 50000000 zmprov mcf zimbraMailContentMaxSize 104857600 zmprov modifyConfig zimbraMtaMaxMessageSize 5048000 postfix reload Then restart zimbra zmcontrol restart

Read more

Hit Counter provided by dental implants orange county