My server broke down with exenstive damages when a log file reached 27 gigs in a few hours. Log files are compressed daily, and are usually very small, maybe up to 10mb in 24 hours. Today there was an issue, and it caused a stack trace to be printed 20 times a second, I was sleeping, the log turned into 27gb, and when hard drive became full, serious damages and data loss occured.The log file will always be called latest.logI need a cron job that will delete this file if it becomes larger then 1GB to prevent this train wreck in the future.Thanks for helping me. 
a cron job to delete a specific file once it reaches more then 1gb size?
linux;cron