Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
log rotation silently fails at random intervals #828
I see logs get renamed to -YYYY-MM-DD-HH-MM-SS.log , but they don't get compressed and moved to the archive directory. This happens at random intervals and is reasonably well distributed across all the logs we're writing. There are no log rotation related errors in reporter.log or std*.log .
I'm running on FreeBSD and this problem is present in 3.0.1. It has, admittedly, been around for a very long time.
This issue was brought up in a Zeeksperts call recently, so it isn't specific to our site. Pinging @sethhall as he and I have discussed this and he had some thoughts on a possible cause.
I think part of the reason there's no errors logged is because they are ignored
and throws away the result of
We should be able to replace
In general the approach https://github.com/ncsa/bro-atomic-rotate uses is the right one and fixes almost all of the log rotation issues, but if the
Integrating the atomic rotation ideas might be finally doable with the new supervisor framework.