[FROG] Log rotation - newsyslog

Rudy Rucker rudy at monkeybrains.net
Tue May 5 17:41:09 EDT 2020


Hi,

I zebra.log gets big.  I set up  rotation:

#grep zeb /etc/newsyslog.conf
/var/log/frr/zebra.log     frr:network  644  5     5000 * N

but zebra keeps keeps the file handle open and continues to write to the 
rotated log - zebra.0

[1] is there a signal I can send to zebra (and other daemons) without 
stopping routing?
[2] feature request: have daemons check if inode file name has changed 
and automatically close/open handle on change.


PS: zebra.0 is full of mostly this crud:

2020/05/05 14:38:41 ZEBRA: [EC 100663303] kernel_rtm: 2600:1419:e::/48: 
rtm_write() unexpectedly returned -4 for command RTM_DELETE
2020/05/05 14:38:41 ZEBRA: [EC 100663303] kernel_rtm: 2804:2e40::/32: 
rtm_write() unexpectedly returned -4 for command RTM_DELETE
2020/05/05 14:38:41 ZEBRA: [EC 100663303] kernel_rtm: 2804:1768::/33: 
rtm_write() unexpectedly returned -4 for command RTM_DELETE
2020/05/05 14:38:43 ZEBRA: [EC 100663303] kernel_rtm: 
2a0b:21c0:4000::/36: rtm_write() unexpectedly returned -4 for command 
RTM_DELETE
2020/05/05 14:38:47 ZEBRA: [EC 100663303] kernel_rtm: 
2a0b:21c0:4000::/36: rtm_write() unexpectedly returned -4 for command 
RTM_DELETE

running 7.2.1.  I couldn't figure out log filter to get rid of 
RTM_DELETEs.  Advice?

# zebra.conf:
log file /var/log/frr/zebra.log errors

Thanks,

Rudy




More information about the frog mailing list