-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The frr.log file is empty after rotating log #15818
Comments
Yes, that's exactly what would cause this, without USR1 to the daemons they keep logging to the previous file so the new one will remain empty. The logrotate config shipped with FRR is intended for the "default" P.S.: 8.3 is really old at this point; we fixed at least one other issue where old logs were being kept open that might still be a problem in 8.3. If you see the old files being held open and/or still being logged to, you'll need to either update or manually backport fixes (as 8.3 is way out of community support…) |
I think the issue may occur in lasted version because the file redhat/frr.logrotate is very similar with 8.3. |
Description
I have set up the FRR to ensure that all daemon processes, such as zebra, ospfd, bgpd, etc., log their output to the /var/log/frr.log file. However, I've observed that whenever logrotate performs its rotation on frr.log, the newly created file is empty.
Version
How to reproduce
Expected behavior
After rotation, the newly created file is no longer empty.
Actual behavior
the frr.log is empty
Additional context
Upon examining the /etc/logrotate.d/frr file, I found the following configuration:
Currently, the postrotate script only sends the HUP signal to syslog. Should we be sending the USR1 signal instead to inform the daemons that are utilizing frr.log?
Checklist
The text was updated successfully, but these errors were encountered: