Hi, It looks like that there is no log rotation possible when logging to files. Though I can fix it locally, it would be nice to include support for this in the future versions, as log files may be quite large and not everyone is using syslog. It could be done using birdc or some (unused yet) signal. Thank you! -- With best regards, Alexander.
Alexander, you can simply use standard 'logrotate' program. Don't forget to run 'birdc configure' after log rotation in logrotate. 2014-08-26 17:33 GMT+03:00 Alexander Demenshin <aldem-bird.2014@nk7.net>:
Hi,
It looks like that there is no log rotation possible when logging to files.
Though I can fix it locally, it would be nice to include support for this in the future versions, as log files may be quite large and not everyone is using syslog. It could be done using birdc or some (unused yet) signal.
Thank you!
-- With best regards, Alexander.
On 2014-08-26 16:47, Stanislav Datskevich wrote:
Alexander, you can simply use standard 'logrotate' program. Don't forget to run 'birdc configure' after log rotation in logrotate.
Yes, I know - but I want to avoid reset/restart of all protocols, especially BGP - as this is border gateway of my AS. Full reconfiguration is always a pain (or could be) - once, while doing so, the daemon segfaulted (unfortunately, I couldn't reproduce it, it happened only once). -- With best regards, Alexander.
On 26.8.2014 17:19, Alexander Demenshin wrote:
On 2014-08-26 16:47, Stanislav Datskevich wrote:
Alexander, you can simply use standard 'logrotate' program. Don't forget to run 'birdc configure' after log rotation in logrotate.
Yes, I know - but I want to avoid reset/restart of all protocols, especially BGP - as this is border gateway of my AS.
Full reconfiguration is always a pain (or could be) - once, while doing so, the daemon segfaulted (unfortunately, I couldn't reproduce it, it happened only once).
If nothing changes, there should be no reconfiguration at all. Don't you have a core dump? Ondrej
-- With best regards, Alexander.
On 2014-08-26 18:02, Ondrej Filip wrote:
If nothing changes, there should be no reconfiguration at all. Don't you have a core dump?
Oh, this does the trick - thank you! I didn't run "configure" without any changes before, so I didn't know that. No, I don't have a core dump, unfortunately - but I'll have it next time, if this happens again. I only remember that I did some complex changes in protocols (OSPF & BGP), which included changes in many parameters and filters, perhaps some combination of changes together with massive BGP/OSPF processing led to this. I've tried to run it under valgrind but it is extremely slow when feeded with full BGP table... -- With best regards, Alexander.
participants (3)
-
Alexander Demenshin -
Ondrej Filip -
Stanislav Datskevich