A way to tell authelia to reopen its logfile #4964
Labels
area/logs
Logging related features/bugs
priority/5/low
Low priority items
status/needs-design
Requires thoughtful design
type/feature
Request for adding a new feature
Description
In #3210 (comment) I can see that is is recommended to use logrotate to rotate authelia's own logfile, which is fair enough.
But, unfortunately there is no way currently (not that I know of) to tell authelia to reopen its logfile after it has been rotated.
That means only the
copytruncate
option can be used instead ofcreate
in logrotate, which has the downside of possibly losing some logs.So I'd like to see an option to tell authelia to reopen its logfile to be able to use the
create
option in logrotate. (either by handling -HUP/-USR1/-USR2 signals, or any other method)Use Case
When using authelia's own mechanism to log to a file, that file grows forever.
It is recommended to use linux's logrotate tool to rotate it, but needs a bit more support from authelia's side.
Details
No response
Documentation
https://linux.die.net/man/8/logrotate
Pre-Submission Checklist
The text was updated successfully, but these errors were encountered: