• Post Reply Bookmark Topic Watch Topic
  • New Topic

delete catalina.*.log older than 30 days using logrotate  RSS feed

 
rohan dowdy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for ways to use logrotate to delete "catalina.*.log" which is older than 30 days. By default catalina.log is rotating daily. I would like to know the procedure to delete these files older than 30days using logrotate and not using a script.
 
Andrew Polansky
Ranch Hand
Posts: 310
18
Linux MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need something like this

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!