-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
in_tail: throws and exception on logrotation #903
Comments
Is this resolved after permission changed? |
Yes, it does not seem to cause any issues apart of this message in td-agent log. |
If so, it seems no problem. |
We tail td-agent logs by rsyslog with filtering to catch misbehaving (what happens sometimes) and the only problem is that this message is misleading. What if td-agent does one more try in a second and if no success then throws an error? |
It seems good for me. |
Problem
If td-agent is not running as root and in_tail plugin is in use then it throws and exception on log rotation (if create option is in use) from time to time.
This happens if "create" for logrotate is in use. In this case logrotate creates a new file with restricted permissions first and then changes permissions and ownership to the requested ones. If td-agent tries to read the file in between it throws an error.
Behavior of logrotate
The text was updated successfully, but these errors were encountered: