B
B
borodka_lenina2017-05-22 17:21:49
CentOS
borodka_lenina, 2017-05-22 17:21:49

Force daily logrotate?

Hello.
I have an application in centosi(7) that puts its logs in /var/log/node, there are a lot of logs, the rotation is once a day (it was), but then it turned out that at some point the logging level was increased and the disk space suddenly ran out . I changed the logrotate parameters, added the
size 1G parameter.
But now the logs are no longer saved every day, the logrotate waits until 1Gb is accumulated and archives the file. How can this be avoided? I would like the logs to be daily, and only if the size of 1Gb is exceeded, forced out-of-order archiving is performed.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question