Skip to content
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

Closed
larsf opened this issue May 6, 2016 · 6 comments
Closed

handle log file read permission error for in_tail #936

larsf opened this issue May 6, 2016 · 6 comments

Comments

@larsf
Copy link

larsf commented May 6, 2016

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

@repeatedly
Copy link
Member

Currently, in_tail rescues the event raised when fluentd tries to open a non existent log file

From your logs, the problem is not non-existent file. You should add right permission to your file for fluentd.

@larsf
Copy link
Author

larsf commented May 6, 2016

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.

@repeatedly
Copy link
Member

Similar to #903 ?

@larsf
Copy link
Author

larsf commented May 6, 2016

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.

@repeatedly
Copy link
Member

Can we merge this issue into #903?

@ashie
Copy link
Member

ashie commented Jul 30, 2021

Fixed by #3378 and #3478

@ashie ashie closed this as completed Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants