Login failed for both ElasticSearch and Kibana, here is three method which I've tried.
1. https://localhost:9200/?authorization=<token>
2. http://localhost:5601/?jwtparam=<token>
3. http://localhost:5601 with header
Add the following lines in config/log4j2.properties and restart your node:
logger.searchguard.name = com.floragunn
logger.searchguard.level = debug
This will already print out a lot if helpful information in your log file. If this information is not sufficient, you can also set the log level to trace.
{"message":"no permissions for [indices:data/read/search] and User [name=admin, roles=[sg_all_access], requestedTenant=null]: [security_exception] no permissions for [indices:data/read/search] and User [name=admin, roles=[sg_all_access], requestedTenant=null]","statusCode":403,"error":"Forbidden"}If i logined by kibanaserver:
Error: Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"security_exception","reason":"no permissions for [indices:data/read/search] and User [name=kibanaserver, roles=[sg_all_access], requestedTenant=null]"}],"type":"security_exception","reason":"no permissions for [indices:data/read/search] and User [name=kibanaserver, roles=[sg_all_access], requestedTenant=null]"},"status":403}
at http://localhost:5601/bundles/kibana.bundle.js?v=16350:61:650116
at Function.Promise.try (http://localhost:5601/bundles/commons.bundle.js?v=16350:56:19076)
at http://localhost:5601/bundles/commons.bundle.js?v=16350:56:18464
at Array.map (<anonymous>)
at Function.Promise.map (http://localhost:5601/bundles/commons.bundle.js?v=16350:56:18422)
at callResponseHandlers (http://localhost:5601/bundles/kibana.bundle.js?v=16350:61:649694)
at http://localhost:5601/bundles/kibana.bundle.js?v=16350:61:639054
at processQueue (http://localhost:5601/bundles/commons.bundle.js?v=16350:35:132456)
at http://localhost:5601/bundles/commons.bundle.js?v=16350:35:133349
at Scope.$digest (http://localhost:5601/bundles/commons.bundle.js?v=16350:35:144239)