Use cron script to rotate log files daily. You will basically rename your logfile.logto logfile-YYYY-MM-DD.log. Thus, instead of one huge log file, you have smaller ones and you can easily find registered messages from a certain period of time. If you also compress your rotated logs, you will save even more disk space.
source
share