You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opensearch Permission: The "indices:admin/create" permission is missing from the opensearch index on the user's role, preventing the opensearch user fluentd uses from creating indices.
Message:
2022-10-16 15:09:48 +0000 [debug]: #0 < {"took":4,"errors":true,"items":[{"index":{"_index":"fluentd-test","_id":null,"status":403,"error":{"type":"security_exception","reason":"no permissions for [indices:admin/create] and User [name=fluentd, backend_roles=[], requestedTenant=null]"}}},
Expected Behavior or What you need to ask
I expected the error to appear even when logs are set to info.
Instead, everything appeared to be silently working (given fluentd's feedback), but the log indices were not getting created in opensearch.
The problem only became apparent once I set the logs to debug.
Using Fluentd and OpenSearch plugin versions
OS version: Ubuntu Focal
Bare Metal or within Docker or Kubernetes or others: Opensearch in kvm, fluentd in docker
Fluentd v1.0 or later:
paste result of fluentd --version or td-agent --version: fluentd 1.14.0
OpenSearch plugin version
paste boot log of fluentd or td-agent: gem 'fluent-plugin-opensearch' version '1.0.8'
paste result of fluent-gem list, td-agent-gem list or your Gemfile.lock:
The permission error was definitely a separate problem on our side that we have since resolved.
I think the main thing that seemed like a quirk of the provider to me in the incident was that I had to turn on debug level logs to seen the error message appear on the fluentd logs (as a debug log). The errors prior to that appeared with regular log levels set as error logs if memory serves.
(check apply)
Steps to replicate
Fluentd Config:
Opensearch Permission: The "indices:admin/create" permission is missing from the opensearch index on the user's role, preventing the opensearch user fluentd uses from creating indices.
Message:
Expected Behavior or What you need to ask
I expected the error to appear even when logs are set to info.
Instead, everything appeared to be silently working (given fluentd's feedback), but the log indices were not getting created in opensearch.
The problem only became apparent once I set the logs to debug.
Using Fluentd and OpenSearch plugin versions
fluentd --version
ortd-agent --version
:fluentd 1.14.0
gem 'fluent-plugin-opensearch' version '1.0.8'
fluent-gem list
,td-agent-gem list
or your Gemfile.lock:The text was updated successfully, but these errors were encountered: