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?) Commented Jan 8, 2020 at 14:00
  • 1
    Logrotate is your friend Commented 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 ? Commented 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 ? Commented Jan 10, 2020 at 12:55

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.