October 2014
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

October 2014
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

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” […]

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 […]

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

 

# […]

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 […]

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 […]

ZIMBRA TIPS : ARCHIVING, HOW TO MAKE AN ARCHIVE FOR EVERY INCOMING AND OUTGOING MAIL

One of the important features that are needed on a mail server is archiving, the backup copy of all incoming and outgoing mail.

Although we can do the backup process periodically for every account, archiving more better and efficient because we have all of copy email which 100% similar with the original.

However, […]

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 […]