Kibana: 6.5.4
We run Kibana in Docker for nginx. Once you have launched the page, you’ve been receiving a message. "Kibana did not load properly. Check the server output for more information."
Follow the link:
Config proxy Nginx:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/ssl.crt;
ssl_certificate_key /etc/nginx/ssl/ssl.key;
ssl_verify_depth 3
server_name internal.server.com;
location /kibana {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://10.99.202.51:5601;
}
}
Config Kibana.yml:
server.port: 5601
server.host: "0"
server.basePath: "/kibana"
server.rewriteBasePath: true
server.maxPayloadBytes: 1048576
elasticsearch.requestTimeout: 60000
elasticsearch.shardTimeout: 60000
elasticsearch.tribe.requestTimeout: 60000
elasticsearch.url: "http://10.99.202.51:9200"
kibana.index: ".kibana"
Additionally configured to access from another proxy. Its configuration is similar, but starts with:
location /
Kibana opens with another dns using this proxy.
Logs docker container Kibana:
{"type":"response","@timestamp":"2019-02-11T12:54:09Z","tags":,"pid":1,"method":"get","statusCode":304,"req":{"url":"/plugins/searchprofiler/index.css","method":"get","headers":{"host":"internal.server.com","x-forwarded-host":"internal.server.com","x-forwarded-server":"internal.server.com","x-forwarded-for":"10.100.42.134","connection":"close","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0","accept":"text/css,/;q=0.1","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"http://internal.server.com/kibana/","if-modified-since":"Mon, 17 Dec 2018 21:33:57 GMT","if-none-match":""fdd633559f0864ace51268c661d47f7510746b6b-gzip""},"remoteAddress":"10.99.202.20","userAgent":"10.99.202.20","referer":"http://internal.server.com/kibana/"},"res":{"statusCode":304,"responseTime":3,"contentLength":9},"message":"GET /plugins/searchprofiler/index.css 304 3ms - 9.0B"}
Tell me, please, what's the problem?