I'm using the Node.js logger
winston-elasticsearch to send logs to Elastic Cloud (uses https://www.npmjs.com/package/@elastic/elasticsearch under the hood) and am using basic authentication (username & password).
I would like to create a new roll that only allows access to the functions required to add logs into Elasticsearch Cloud? Is there a built in role that is designed for this? I've tried adding the
write permissions for the indexes but this doesn't work (when I add the
superuser role it all works as expected)