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

A counter-intuitive behavior for fluent.(error|warn|info|trace) logs #485

Closed
kiyoto opened this issue Nov 21, 2014 · 4 comments · Fixed by #1405
Closed

A counter-intuitive behavior for fluent.(error|warn|info|trace) logs #485

kiyoto opened this issue Nov 21, 2014 · 4 comments · Fixed by #1405
Labels
enhancement Feature request or improve operations v0.12

Comments

@kiyoto
Copy link
Contributor

kiyoto commented Nov 21, 2014

Currently (at least for v0.10.57), the only way to match Fluentd's own logs is to use the fluent.** match pattern.

E.g.

The following configuration outputs fluent.warn events to stdout

<match fluent.**>
  type stdout
</match>

but the following configuration does NOT

<match fluent.warn>
  type stdout
</match>

This happens because

  1. fluent.* events are emitted by Engine.log_event_loop which is only turned on if the tag fluent is matched by an output (So, <match fluent.warn> does NOT turn this on. <match fluent.**> and <match fluent> does).
  2. But individual events have fluent.<LOG_LEVEL> tags.

This behavior breaks Fluentd's match semantics.

@kiyoto kiyoto added the bug Something isn't working label Nov 21, 2014
@tagomoris
Copy link
Member

This behavior is brought by:

@repeatedly
Copy link
Member

Another idea is introducing @LOG label to handle these logs.

@kiyoto
Copy link
Contributor Author

kiyoto commented Nov 24, 2014

@repeatedly Do you mean like @ERROR here? Perhaps it is best to start a new discussion specifically on "How plugin-specific log messages should work".

@repeatedly
Copy link
Member

Yes. The merit is to separate normal event and fluentd's internal event.
The demerit is only v0.12 or later.

@repeatedly repeatedly added enhancement Feature request or improve operations and removed bug Something isn't working labels May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations v0.12
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants