This doesn,t worked for us.
sg_roles.yml
sg_pt-ns_role:
index_permissions:
- allowed_actions:
- SGS_INDICES_ALL
- 'indices:data/read/scroll/clear'
index_patterns:
- pt-ns-*
We got below error.
{"type":"error","@timestamp":"2020-12-22T09:37:07Z","tags":["error","Stream error"],"pid":10,"level":"error","error":{"message":"[security_exception] no permissions for [indices:data/read/scroll/clear] and User [name=appdev01, backend_roles=[pt-ns], requestedTenant=null]","name":"Error","stack":"Error: [security_exception] no permissions for [indices:data/read/scroll/clear] and User [name=appdev01, backend_roles=[pt-ns], requestedTenant=null]\n at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)\n at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)\n at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)\n at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4929:19)\n at IncomingMessage.emit (events.js:203:15)\n at endReadableNT (_stream_readable.js:1145:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)"},"message":"[security_exception] no permissions for [indices:data/read/scroll/clear] and User [name=appdev01, backend_roles=[pt-ns], requestedTenant=null]"}
{"type":"log","@timestamp":"2020-12-22T09:37:07Z","tags":["connection","client","error"],"pid":10,"message":"Stream Closed : [security_exception] no permissions for [indices:data/read/scroll/clear] and User [name=appdev01, backend_roles=[pt-ns], requestedTenant=null] :: {\"path\":\"/_search/scroll\",\"query\":{},\"body\":\"{\\\"scroll_id\\\":\\\"FGluY2x1ZGVfY29udGV4dF91dWlkDXF1ZXJ5QW5kRmV0Y2gBFFdzN1BpWFlCQWl4Q2NUZThObGNvAAAAAAAAAHIWbExaV0Jnb0dRZnlneDVmcXh0S25YZw==\\\"}\",\"statusCode\":403,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"no permissions for [indices:data/read/scroll/clear] and User [name=appdev01, backend_roles=[pt-ns], requestedTenant=null]\\\"}],\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"no permissions for [indices:data/read/scroll/clear] and User [name=appdev01, backend_roles=[pt-ns], requestedTenant=null]\\\"},\\\"status\\\":403}\"}"}
{"type":"request","@timestamp":"2020-12-22T09:37:07Z","tags":["info","Stream Close"],"pid":10,"message":"request ended/disconnected"}