PUT _security/role/apm_api_key { "cluster": [ "manage_api_key" ], "applications": [ { "application": "apm", "privileges": [ "sourcemap:write", "event:write", "config_agent:read" ], "resources": [ "*" ] } ] }