0

on my Ubuntu cloud server often happens when i visit apache log fiiles to be 5-10 GB in a day or two, i'm a user of vestaCP and destination of log files is: var/log/apache/domains/domain.error.log and file domain.log

Also I have the same problem, for the directory /var/log/journal/system.journal growning to fast. is there any cron job that I can delete this files on daily automatic?

Best regards

3
  • what have you currently got (and why isn't it working?)
    – Smock
    Jan 8, 2020 at 14:00
  • 1
    Logrotate is your friend
    – hardillb
    Jan 8, 2020 at 14:09
  • This is ok for the apache logs but how can I use it for /var/log/journal/system.journal ?
    – Edgar
    Jan 10, 2020 at 12:55

1 Answer 1

1

You should use integrated Logrotate solution, with low retention for automatic purge

Take a look in /etc/logrotate.d/apache2

1
  • This is ok for the apache logs but how can I use it for /var/log/journal/system.journal ?
    – Edgar
    Jan 10, 2020 at 12:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .