Unable to login to kibana

Hi Team,

I am unable to login to kibana dashboard.

We have kibana url as ``. It's only accessible from intranet. We have haproxy where request first goes and from there it goes to kibana server on 8601.

# Ansible managed
logging.verbose: true
server.port: 8601
server.host: "0.0.0.0"
server.name: kibana_1

elasticsearch.requestTimeout: 30000

elasticsearch.hosts: ["http://<IP of Server1>:5200", "http://<IP of Server2>:5200", "http://<IP of Server3>:5200"]
elasticsearch.username: "elastic"
elasticsearch.password: "Password"

Nov 26 16:00:58 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:30:58Z","tags":["debug","upgrade_assistant","reindex_worker"],"pid":81134,"message":"Polling for reindex operations"}
Nov 26 16:01:00 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:00Z","tags":["debug","monitoring","kibana-monitoring"],"pid":81134,"message":"Received Kibana Ops event data"}
Nov 26 16:01:00 kibana[81134]: {"type":"response","@timestamp":"2020-11-26T10:31:00Z","tags":,"pid":81134,"method":"get","statusCode":200,"req":{"url":"/login","method":"get","headers":{},"remoteAddress":"","userAgent":""},"res":{"statusCode":200,"responseTime":14,"contentLength":9},"message":"GET /login 200 14ms - 9.0B"}
Nov 26 16:01:01 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:01Z","tags":["plugin","debug"],"pid":81134,"message":"Checking Elasticsearch version"}
Nov 26 16:01:01 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:01Z","tags":["debug","monitoring","kibana-monitoring"],"pid":81134,"message":"Received Kibana Ops event data"}
Nov 26 16:01:02 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:02Z","tags":["license","debug","xpack"],"pid":81134,"message":"Calling [data] Elasticsearch _xpack API. Polling frequency: 30001"}
Nov 26 16:01:02 kibana[81134]: {"type":"response","@timestamp":"2020-11-26T10:31:02Z","tags":,"pid":81134,"method":"get","statusCode":200,"req":{"url":"/login","method":"get","headers":{},"remoteAddress":"","userAgent":""},"res":{"statusCode":200,"responseTime":10,"contentLength":9},"message":"GET /login 200 10ms - 9.0B"}
Nov 26 16:01:03 kibana[81134]: {"type":"ops","@timestamp":"2020-11-26T10:31:03Z","tags":,"pid":81134,"os":{"load":[0.7333984375,0.79833984375,0.6513671875],"mem":{"total":16637550592,"free":204046336},"uptime":807708},"proc":{"uptime":7447.135,"mem":{"rss":428773376,"heapTotal":304443392,"heapUsed":230252056,"external":1728026},"delay":0.08951210975646973},"load":{"requests":{"8601":{"total":3,"disconnects":0,"statusCodes":{"200":3}}},"responseTimes":{"8601":{"avg":12.333333333333334,"max":14}},"sockets":{"http":{"total":0},"https":{"total":0}}},"message":"memory: 219.6MB uptime: 2:04:07 load: [0.73 0.80 0.65] delay: 0.090"}
Nov 26 16:01:04 kibana[81134]: {"type":"response","@timestamp":"2020-11-26T10:31:04Z","tags":,"pid":81134,"method":"get","statusCode":200,"req":{"url":"/login","method":"get","headers":{},"remoteAddress":"","userAgent":""},"res":{"statusCode":200,"responseTime":8,"contentLength":9},"message":"GET /login 200 8ms - 9.0B"}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","monitoring","kibana-monitoring"],"pid":81134,"message":"Received Kibana Ops event data"}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","http","server","Kibana","cookie-session-storage"],"pid":81134,"message":"Error: Unauthorized"}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","plugins","security","basic"],"pid":81134,"message":"Trying to authenticate user request to /."}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","plugins","security","basic"],"pid":81134,"message":"Trying to authenticate via header."}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","plugins","security","basic"],"pid":81134,"message":"Authorization header is not presented."}
Nov 26 16:01:05 kibana[81134]: {"type":"response","@timestamp":"2020-11-26T10:31:05Z","tags":,"pid":81134,"method":"get","statusCode":302,"req":{"url":"/","method":"get","headers":{"host":":10443","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36","sec-fetch-mode":"navigate","sec-fetch-user":"?1","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3","sec-fetch-site":"same-origin","referer":"https://:10443/login?next=%2F","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","x-forwarded-proto":"https","x-forwarded-port":"443","x-forwarded-for":"","connection":"close"},"remoteAddress":"","userAgent":"","referer":"https://:10443/login?next=%2F"},"res":{"statusCode":302,"responseTime":5,"contentLength":9},"message":"GET / 302 5ms - 9.0B"}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","http","server","Kibana","cookie-session-storage"],"pid":81134,"message":"Error: Unauthorized"}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","plugins","security","basic"],"pid":81134,"message":"Trying to authenticate user request to /bundles/app/login/bootstrap.js."}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","plugins","security","basic"],"pid":81134,"message":"Trying to authenticate via header."}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","plugins","security","basic"],"pid":81134,"message":"Authorization header is not presented."}
Nov 26 16:01:05 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:05Z","tags":["debug","plugins","security","authentication"],"pid":81134,"message":"Could not handle authentication attempt"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["plugin","debug"],"pid":81134,"message":"Checking Elasticsearch version"}
Nov 26 16:01:06 kibana[81134]: {"type":"response","@timestamp":"2020-11-26T10:31:06Z","tags":,"pid":81134,"method":"get","statusCode":304,"req":{"url":"/built_assets/dlls/vendors.bundle.dll.js","method":"get","headers":{"host":":10443","sec-fetch-mode":"no-cors","user-agent":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36","accept":"/","sec-fetch-site":"same-origin","referer":"https://:10443/login?next=%2F","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","if-none-match":""f59d40dae5b71e4572763cd32f42e22d9ceb8a68-/built_assets/dlls/-gzip"","x-forwarded-proto":"https","x-forwarded-port":"443","x-forwarded-for":"","connection":"close"},"remoteAddress":"","userAgent":"","referer":"https://:10443/login?next=%2F"},"res":{"statusCode":304,"responseTime":2,"contentLength":9},"message":"GET /built_assets/dlls/vendors.bundle.dll.js 304 2ms - 9.0B"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","stats-collection"],"pid":81134,"message":"Fetching data from sample-data collector"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","stats-collection"],"pid":81134,"message":"Fetching data from kibana_settings collector"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","stats-collection"],"pid":81134,"message":"not sending [kibana_settings] monitoring document because [undefined] is null or invalid."}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","stats-collection"],"pid":81134,"message":"Fetching data from apm collector"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","stats-collection"],"pid":81134,"message":"Fetching data from upgrade-assistant-telemetry collector"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","stats-collection"],"pid":81134,"message":"Fetching data from uptime collector"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","stats-collection"],"pid":81134,"message":"Fetching data from reporting collector"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","monitoring","kibana-monitoring"],"pid":81134,"message":"Uploading bulk stats payload to the local cluster"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","monitoring","kibana-monitoring"],"pid":81134,"message":"Uploaded bulk stats payload to the local cluster"}
Nov 26 16:01:06 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:06Z","tags":["debug","monitoring","kibana-monitoring"],"pid":81134,"message":"Received Kibana Ops event data"}
Nov 26 16:01:07 kibana[81134]: {"type":"response","@timestamp":"2020-11-26T10:31:07Z","tags":,"pid":81134,"method":"get","statusCode":304,"req":{"url":"/bundles/login.bundle.js","method":"get","headers":{"host":":10443","sec-fetch-mode":"no-cors","user-agent":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36","accept":"/","sec-fetch-site":"same-origin","referer":"https://:10443/login?next=%2F","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","if-none-match":""dc14e480c267671ab41cc2631cf2cf3e104d4f09-/bundles/-gzip"","x-forwarded-proto":"https","x-forwarded-port":"443","x-forwarded-for":"","connection":"close"},"remoteAddress":"","userAgent":"","referer":"https://:10443/login?next=%2F"},"res":{"statusCode":304,"responseTime":2,"contentLength":9},"message":"GET /bundles/login.bundle.js 304 2ms - 9.0B"}
Nov 26 16:01:09 kibana[81134]: {"type":"response","@timestamp":"2020-11-26T10:31:09Z","tags":,"pid":81134,"method":"get","statusCode":304,"req":{"url":"/ui/images/bg_top_branded.svg","method":"get","headers":{"host":":10443","sec-fetch-mode":"no-cors","user-agent":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36","accept":"image/webp,image/apng,image/,/*;q=0.8","sec-fetch-site":"same-origin","referer":"https://:10443/built_assets/css/plugins/security/index.light.css","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","if-none-match":""db3622756413533cdb3a029b8a6b4e26380bf693-gzip"","if-modified-since":"Fri, 27 Sep 2019 09:20:33 GMT","x-forwarded-proto":"https","x-forwarded-port":"443","x-forwarded-for":"","connection":"close"},"remoteAddress":"","userAgent":"","referer":"https://:10443/built_assets/css/plugins/security/index.light.css"},"res":{"statusCode":304,"responseTime":1,"contentLength":9},"message":"GET /ui/images/bg_top_branded.svg 304 1ms - 9.0B"}
Nov 26 16:01:10 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:10Z","tags":["debug","monitoring","kibana-monitoring"],"pid":81134,"message":"Received Kibana Ops event data"}
Nov 26 16:01:10 kibana[81134]: {"type":"response","@timestamp":"2020-11-26T10:31:10Z","tags":,"pid":81134,"method":"get","statusCode":200,"req":{"url":"/login","method":"get","headers":{},"remoteAddress":"","userAgent":""},"res":{"statusCode":200,"responseTime":9,"contentLength":9},"message":"GET /login 200 9ms - 9.0B"}
Nov 26 16:01:11 kibana[81134]: {"type":"log","@timestamp":"2020-11-26T10:31:11Z","tags":["plugin","debug"],"pid":81134,"message":"Checking Elasticsearch version"}

Hi All,

Can someone please reply.

That's pretty much it. have you checked that the request doesn't get malformed when send via HAProxy? Has it worked before? Did something change in your setup since then?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.