And now I do see some errors in the elasticsearch log:
[2022-05-04T09:47:11,935][INFO ][c.a.o.s.p.PrivilegesEvaluator] [es-master] No index-level perm match for User [name=kibanaserver, backend_roles=[], requestedTenant=null] Resolved [aliases=[*], allIndices=[*], types=[*], originalRequested=[*], remoteIndices=[]] [Action [indices:monitor/settings/get]] [RolesChecked [kibana\
_server]]
[2022-05-04T09:47:11,937][INFO ][c.a.o.s.p.PrivilegesEvaluator] [es-master] No permissions for [indices:monitor/settings/get]
I am using kibanaserver as the user that kibana uses to connect to elasticsearch.
My kibana.yml has this relevant line:
elasticsearch.username: kibanaserver