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
Describe the bug
S3 output plugin supports <buffer> section, but we receive "[warn]: section is not used in ..." warning like below:
<buffer>
2019-08-16 23:17:26 +0900 [warn]: section <buffer> is not used in <match debug.**>
To Reproduce
We can reproduce the behavior by executing fluentd using the configuration file describged later and fluent-plugin-s3 1.1.11.
Expected behavior
I expect to receive unused parameter names in <buffer> section like below:
2019-08-16 23:20:40 +0900 [warn]: parameter 'unused_key' in <buffer> unused_key 1 </buffer> is not used.
Your Environment
% bundle exec fluentd --version fluentd 1.6.3 % git rev-parse HEAD 975ca8b4ec60274f7361c7e96b0402b4f93a1dba
% sw_vers ProductName: Mac OS X ProductVersion: 10.14.4 BuildVersion: 18E226
% uname -r 18.5.0
Your Configuration
<match debug.**> @type s3 s3_bucket dummy <buffer> unused_key 1 </buffer> </match>
Your Error Log
% bundle exec fluentd -c fluent.conf 2019-08-16 23:29:08 +0900 [info]: parsing config file is succeeded path="fluent.conf" 2019-08-16 23:29:08 +0900 [info]: using configuration file: <ROOT> <match debug.**> @type s3 s3_bucket "dummy" <buffer> unused_key 1 </buffer> </match> </ROOT> 2019-08-16 23:29:08 +0900 [info]: starting fluentd-1.6.3 pid=62109 ruby="2.6.2" 2019-08-16 23:29:08 +0900 [info]: spawn command to main: cmdline=["/Users/arabiki/.anyenv/envs/rbenv/versions/2.6.2/bin/ruby", "-Eascii-8bit:ascii-8bit", "-rbundler/setup", "/Users/arabiki/.anyenv/envs/rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/bin/fluentd", "-c", "fluent.conf", "--under-supervisor"] 2019-08-16 23:29:09 +0900 [info]: gem 'fluentd' version '1.6.3' 2019-08-16 23:29:09 +0900 [info]: gem 'fluent-plugin-s3' version '1.1.11' 2019-08-16 23:29:09 +0900 [info]: adding match pattern="debug.**" type="s3" 2019-08-16 23:29:09 +0900 [warn]: section <buffer> is not used in <match debug.**> 2019-08-16 23:29:09 +0900 [info]: #0 starting fluentd worker pid=62138 ppid=62109 worker=0 (snip)
Additional context
The behavior seems caused by the following steps:
unused_in
The text was updated successfully, but these errors were encountered:
Mark sections as used if they are used at least once
23a9698
This commit resolves fluent#2572.
9d3a127
This commit resolves fluent#2572. Signed-off-by: abicky <[email protected]>
Successfully merging a pull request may close this issue.
Describe the bug
S3 output plugin supports
<buffer>
section, but we receive "[warn]: section is not used in ..." warning like below:To Reproduce
We can reproduce the behavior by executing fluentd using the configuration file describged later and fluent-plugin-s3 1.1.11.
Expected behavior
I expect to receive unused parameter names in
<buffer>
section like below:Your Environment
Your Configuration
Your Error Log
Additional context
The behavior seems caused by the following steps:
unused_in
is set in fluent/config/section.rb#L212-L217The text was updated successfully, but these errors were encountered: