-
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
handle log file read permission error for in_tail #936
Comments
From your logs, the problem is not non-existent file. You should add right permission to your file for fluentd. |
I would like fluentd to issue one warning for a file it has no permissions to, and go on, just like it it ignores files that it cannot find. |
Similar to #903 ? |
Yes similar. Fluentd behaves very nicely when it encounter a log file it cannot find, I would like to see it do the same for a log file it cannot read - issue one warning and ignore that log file until next restart. |
Can we merge this issue into #903? |
Currently, in_tail rescues the event raised when fluentd tries to open a non existent log file. Can we please have it handle ENOPERM the same way so fluentd doesn't continuously barf on it
Fluentd's log file filled with:
2016-05-06 10:00:24 -0700 [error]: Permission denied @ rb_sysopen - /var/log/messages
2016-05-06 10:00:24 -0700 [error]: suppressed same stacktrace
rescue Errno::ENOENT is the relevant line
The text was updated successfully, but these errors were encountered: