Grant users access to APM Server indices
editGrant users access to APM Server indices
editTo enable users to access the indices APM Server creates, grant them read
and view_index_metadata privileges on the APM Server indices. If they’re
using Kibana, they also need the kibana_user role.
X-Pack security provides a built-in role called apm_user that you can explicitly assign to users.
This role grants them the necessary read and view_index_metadata privileges on the APM Server indices.
-
Assign your users the
apm_userrole so they can access the APM Server indices. For Kibana users who need to visualize the data, also assign thekibana_userrole:-
If you’re using the
nativerealm, you can assign roles with the Management > Users UI in Kibana or through theuserAPI. For example, the following request grantsapm_accounttheapm_userandkibana_userroles:POST /_security/user/apm_account { "password" : "YOUR_PASSWORD", "roles" : [ "apm_user","kibana_user"], "full_name" : "APM Server account" } -
If you’re using the LDAP, Active Directory, or PKI realms, you assign the roles in the
role_mapping.ymlconfiguration file. For example, the following snippet grantsapm_accounttheapm_userandkibana_userroles:apm_user: - "cn=apm_account,dc=example,dc=com" kibana_user: - "cn=apm_account,dc=example,dc=com"
For more information, see Using Role Mapping Files.
-