-
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
Basic nginx access.log -> stdout does nothing #3525
Comments
In a hunch I tried replacing nginx with apache. Same exact problem - zero output. let's even match
Stop nginx, install apache2. Restart td-agent through systemd. Result - nothing:
|
|
Probably td-agent process isn't permitted to read /var/log/nginx/access.log |
FYI: When td-agent is launched by systemd, the user of td-agent process is
|
Yep, that was the issue. It is not well documented and the bug not showing the file as unreadable made it frustrating to no end. By default on Ubuntu the logs are mode 640 and owned by www-data:adm. Ubuntu user is a part of that group by default but td-agent is not.
This part of the Thank you for your assistance. |
Describe the bug
I have what I assumed would be a hello-world of fluentd: source=nginx access log, output=stdout.
Instead, absolutely nothing happens at all. No sign of failed parse, zero outputs produced.
To Reproduce
(All of this as UID 0)
Create
/etc/td-agent/td-agent.conf
:Install and start nginx - zero changes to stock configuration:
Start/restart td-agent with
systemctl
.Spam nginx a bunch of times:
Logs are there:
Result: nothing. Here is tail of
/var/log/td-agent/td-agent.log
.Expected behavior
Output. Any at all.
Your Environment
Your Configuration
Your Error Log
The text was updated successfully, but these errors were encountered: