Log files in /var/log/apache2/ are too big. I want to limit the file size. Is it possible to store only the recent 100 lines?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Take a look here:
You can save a logfile per day and delete old ones automatically with a cronjob. The lines can be done with a limitation of the file size (I think it is not necessary of it will be 120 or 100 lines?).