You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serilog file sink allows to rotate log file. On each rotation a new file will be created and the log will be written in this file. Therefor the file name changes on each rotation. Some active firewall software such as fail2ban won't work if the file name keeps on changing, as it wouldn't know which will be the next file name.
Therefor I have modified serilog sink file to add a configuration parameter so it always write to the same filename. On each file rotation the current file is copied to a new name, and the current file is emptied.
I would like to contribute my changes, are you interested ?
Best regards,
Numa
The text was updated successfully, but these errors were encountered:
Hello,
Serilog file sink allows to rotate log file. On each rotation a new file will be created and the log will be written in this file. Therefor the file name changes on each rotation. Some active firewall software such as fail2ban won't work if the file name keeps on changing, as it wouldn't know which will be the next file name.
Therefor I have modified serilog sink file to add a configuration parameter so it always write to the same filename. On each file rotation the current file is copied to a new name, and the current file is emptied.
I would like to contribute my changes, are you interested ?
Best regards,
Numa
The text was updated successfully, but these errors were encountered: