India Bhushan

Greenhorn
+ Follow
since Aug 19, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by India Bhushan

Thanks you for the prompt reply. I will test and let you know.


Thanks again,
Bharat
9 years ago
Hi,

I have applied log rotation using the /etc/logratate.d/

/app/Autonomy/Interwoven/LiveSiteDisplayServices/runtime/tomcat/logs/* {
copytruncate
missingok
notifempty
compress
daily
rotate 4
}

The logs are rotating fine, however for every zip file it is creating another zip following is the sample from log directory

-rw-r--r-- 1 root root 76078 Aug 19 12:27 catalina.out
-rw-r--r-- 1 root root 923937 Aug 18 03:09 catalina.out-20140810.gz-20140812.gz-20140814.gz-20140816.gz-20140818.gz
-rw-r--r-- 1 root root 3114 Aug 19 03:25 catalina.out-20140811.gz-20140813.gz-20140815.gz-20140817.gz-20140819.gz
-rw-r--r-- 1 root root 4271 Aug 18 03:09 catalina.out-20140812.gz-20140814.gz-20140816.gz-20140818.gz
-rw-r--r-- 1 root root 28719 Aug 19 03:25 catalina.out-20140813.gz-20140815.gz-20140817.gz-20140819.gz
-rw-r--r-- 1 root root 2063 Aug 18 03:09 catalina.out-20140814.gz-20140816.gz-20140818.gz
-rw-r--r-- 1 root root 1475 Aug 19 03:25 catalina.out-20140815.gz-20140817.gz-20140819.gz
-rw-r--r-- 1 root root 2975 Aug 18 03:09 catalina.out-20140816.gz-20140818.gz
-rw-r--r-- 1 root root 438 Aug 19 03:25 catalina.out-20140817.gz-20140819.gz
-rw-r--r-- 1 root root 5989 Aug 19 03:25 catalina.out-20140819.gz

Can someone advice how to prevent this.

Thanks in advance.


Bharat
9 years ago