-
-
Notifications
You must be signed in to change notification settings - Fork 37
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 log file stops recording after it has been modified by a third-party process #19
Comments
I'm not sure if this behavior is a sign of any error. Is there a real use case where you need to modify log file and if so - what exactly you expect from the logger in this situation? |
Logs should continue to write after the file is released Editing a log file is just an example of lock. |
the question is why anyone even needs to open the log file for write and modify it. And what are other practical examples of any third-party application locking logs? |
I just accidentally open log file for edit in shared folder, and eventually lost a few hours of logs before restarting docker-logger container |
Additional case... You can delete the log file and after that a new file will not be created. |
I don't think this issue has anything to do with docker-logger implementation. Most likely it is a part of the (un)expected behavior of lumberjack used by docker-logger to handle files, rotation and so on. I don't see it as a good enough reason to replace or fork lumberjack. However, if you think such behavior is a bug and should be fixed, pls report to lumberjack repo. |
I have the same issue, time after time logs stops to collect, I agree it most likely lumberjack issue since the is no workaround for this issue https://docs.fluentd.org/
config
CONS:
PROS:
|
@mikhail-angelov additional CONS:
|
I'm not sure about this cons
|
Sorry, couldn't check this I have quoted docker docs: https://docs.docker.com/config/containers/logging/fluentd/ |
To reproduce the error, try the following test case:
and then log file stops recording
and i don't have any error in docker-logger.log
The text was updated successfully, but these errors were encountered: