You can use a Linux logrotate command for log file maintenance [pdf].
Refer: http://linuxers.org/howto/howto-use-logrotate-manage-log-files

Technical notes, and other ideas.
You can use a Linux logrotate command for log file maintenance [pdf].
Refer: http://linuxers.org/howto/howto-use-logrotate-manage-log-files
Look here:
\nasitweb_nonprod$tst01_logststezair
From: McConnell, Chris (HAL Contractor)
Sent: Tuesday, February 21, 2012 1:52 PM
To: Guillaume Radde; Thompson, Sonya (HAL); Doan, Thomas (HAL Contractor); Smith, Robert (HAL Contractor); Ruckman, Maurice (HAL); Phatak, Sheetal (HAL); Bojja, Sridhar (HAL Contractor); Fillman, Eric (HAL); Augustine, Anila (HAL)
Cc: Schumacher, Mike (HAL); jlindesm@redhat.com
Subject: RE: Webdev logs (JBoss and Apache logs for new Infrastructure)
Hello All,
The below is the log directory structure for the new JBoss infrastructure.
Note that we will sweep through the existing DEV and TST environments are reconfigure them to write their logs to their new locations.
[root@haldevjbs01 PRD]# mount -v | grep logs
nasit:/web_nonprod/dev01_logs on /logs type nfs (rw,soft,intr,addr=10.194.45.103)
/logs/DEV
/logs/DEV/haldevweb01
/logs/DEV/haldevjbs01
/logs/DEV/haldevjbs02
/logs/TST
/logs/TST/haltstweb01
/logs/TST/haltstjbs01
/logs/TST/haltstjbs02
/logs/STG
/logs/STG/halstgweb01
/logs/STG/halstgjbs01
/logs/STG/halstgjbs02
/logs/STG/halstgjbs03
/logs/STG/halstgjbs04
Note for PRD ENV (yet to be configured/deployed),
The logs will be on a separate NFS share to be configured with the same structure:
/logs/PRD
/logs/PRD/halprdweb01
/logs/PRD/halprdjbs01
/logs/PRD/halprdjbs02
/logs/PRD/halprdjbs03
/logs/PRD/halprdjbs04
-----Original Message-----
From: Guillaume Radde [mailto:guillaume.radde@redhat.com]
Sent: Tuesday, February 21, 2012 1:15 PM
To: Thompson, Sonya (HAL); Doan, Thomas (HAL Contractor); Smith, Robert (HAL Contractor); Ruckman, Maurice (HAL); Phatak, Sheetal (HAL); Bojja, Sridhar (HAL Contractor); Fillman, Eric (HAL); Augustine, Anila (HAL)
Cc: McConnell, Chris (HAL Contractor); Schumacher, Mike (HAL); jlindesm@redhat.com
Subject: Webdev logs
You now have access to the logs from the 2 JBoss instances in webdev from your developer vm in the folders /mnt/haldevjbs01 and /mnt/haldevjbs02. We are working on standardizing the way that developers can access infrastructure server logs so those path might change in the future. We'll let everybody know if we change it.
Thanks!
-------------------------------------
Guillaume Radde
Senior Consultant, Red Hat Consulting
guillaume.radde@redhat.com
http://www.redhat.com
-------------------------------------