-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
RBAC for beat_writer action [indices:admin/create] is unauthorized for user [beat_writer] #15040
Comments
This was closed by mistake. Reopening. :-) |
Is it really a doc issue? Why does Metricbeat require the priv if Filebeat does not? |
A user on the forum has run into other problems with the documented privileges: https://discuss.elastic.co/t/beats-privileges-documentation/214190 (Noting it here so I update the forum post when I run through and test the privileges to see if the docs require updates.) |
@dedemorton can you re-tag this as a code bug rather than doc bug? Unless it is a doc bug. |
@DanRoscigno I plan to retest the docs this week to determine whether this is indeed a doc bug. Thanks! |
@DanRoscigno I followed the documented instructions using Metricbeat 7.5.1, but was unable to reproduce this issue. Did you run the setup (with the privileges described for the setup role) before attempting to publish events? I think the docs are potentially confusing where they say, "To minimize the privileges required by the writer role, you can use the setup role to pre-load dependencies." The privileges documented under "Grant privileges and roles needed for publishing" actually assume that you've pre-loaded all dependencies. I'm going to close this issue, but please feel free to reopen it if you can reproduce the issue in 7.5.1 |
Incidentally here is the role and user that worked for me:
|
cool, glad to hear that it is fixed. I will update my configs. |
I am unable to index metric data using Metricbeat 7.5.0 with ESS 7.5.0 using the role and user described at https://www.elastic.co/guide/en/beats/metricbeat/7.5/feature-roles.html#privileges-to-publish-events
I see this warning in the output of ./metricbeat -e:
Because the warning specifies that
[indices:admin/create] is unauthorized for user [beat_writer]"
, I added the index privcreate_index
and then I was able to successfully index the data. The docs specifically say that this priv is not needed whensetup.ilm.check_exists: false
is used in metricbeat.yml, and I have that set.I am running ES and Kibana in ESS, and running metricbeat on Mac OSX.
Here is my role:
and here is my user:
One more thing: I did not need
create_index
for Filebeat 7.5.0cc: @dedemorton
The text was updated successfully, but these errors were encountered: