Log rotation not working correctly on Windows #2479
-
settings from rabbitmq.conf log.file = rmq.log
log.file.rotation.size = 104857600
log.file.rotation.size = 4 All the files are continually updated and seem to be swapping log text back and forth between them on a constant basis. The only solution right now is to disable rotation. I also tried rotation by D0 but that did the exact same thing. supported by Erland 22.2 on windows server 2019 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@nick-randal your config file has a duplicate key. @lukebakken we last had to deal with log rotation on Windows in #2078, and Lager version hasn't changed since then. I could not find any new relevant issues in Lager. |
Beta Was this translation helpful? Give feedback.
-
Moved to a discussion until we have a set of steps to reproduce with |
Beta Was this translation helpful? Give feedback.
-
Log file rotation appears to work correctly on Windows. I'm using Erlang 23.1.1 and RabbitMQ 3.8.9. Note that the configuration file in the original report has two duplicate keys. I'm using debug logging to increase the amount of messages and force rotation.
Log files after starting RabbitMQ a couple times:
Note that a strict 1024-byte cutoff is not possible due to log message buffering. |
Beta Was this translation helpful? Give feedback.
Moved to a discussion until we have a set of steps to reproduce with
3.8.9
. I could not find any recent reports of issues with log rotation on Windows for either RabbitMQ or Lager (the logging library we use).