We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
log_level on plugin scope can't be correctly defined in yaml config, without fluentd throwing a warning and/or the parameter not being recognized
log_level
# Config 1 - match: $tag: '**' $type: stdout log_level: debug
results in:
[warn]: #0 'log_level' is deprecated parameter name. use '@log_level' instead.
since @ is not supported in yaml and every other instance of it has been replaced by $, looking at the fluentd documentation, I've also tried:
@
$
# Config 2 - match: $tag: '**' $type: stdout $log_level: debug
however this results in:
[warn]: parameter '$log_level' in <match **> ... </match> is not used.
I expect Config 2 not to throw a warning message and instead set the log_level at plugin scope to the according value.
- Fluentd version: 1.16.2 - TD Agent version: - Operating system: Ubuntu 22.04 LTS - Kernel version: 5.15
see To Reproduce
No response
The text was updated successfully, but these errors were encountered:
@ng-bsy Thanks for your report! It seems that YAML format fails to take log_level setting into account.
We will check it.
Sorry, something went wrong.
We have checked this report and it appears that YAML format doesn't support the $log_level.
$log_level
We also confirmed that using log_level instead of $log_level results in warn messages, but the log_level setting works fine.
Although this may be improved by future modifications, you can use log_level (without $) for log_level setting for now.
I add description for this issue in the official document. https://docs.fluentd.org/configuration/config-file-yaml#special-yaml-elements
Successfully merging a pull request may close this issue.
Describe the bug
log_level
on plugin scope can't be correctly defined in yaml config, without fluentd throwing a warning and/or the parameter not being recognizedTo Reproduce
results in:
since
@
is not supported in yaml and every other instance of it has been replaced by$
, looking at the fluentd documentation, I've also tried:however this results in:
Expected behavior
I expect Config 2 not to throw a warning message and instead set the log_level at plugin scope to the according value.
Your Environment
Your Configuration
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: