Need help starting browser session with Kibana

I have a fesh install of Wazuh and Kibana on a VM in the office. The first time I tried any kind of browser session with kibana I get the heretofore mentioned 504 error after accepting the invalid (self-signed) certificate which tells me something is trying to load.

nginx error log:
2019/03/26 13:27:50 [error] 65695#65695: *6 upstream timed out (110: Connection timed out) while connecting to upstream, client:, server: , request: "GET / HTTP/1.1", upstream: "http://pub.lic.ip:5601/", host: ""

I get the security warning (self-signed cert) but get a 504 error after that
I have server_host set at "" in /etc/kibana/kibana.yml
should I have this set at something else for internal network only?
Don't want localhost

any ideas from above error log?

Of course, this is behind our firewall at the office

Thanks :slight_smile:

@Brandon_Kobel any thoughts ?

Have I even described he scenario well enough?
@Liza_Dayoub thanks for the nudge

By default, Kibana only listens on localhost, this can be configured by setting the in your kibana.yml. If you set in your kibana.yml, Kibana will listen on all network interfaces. It's generally better to only listen on the explicit network interface which you expect to receive HTTP requests from. To verify this is configured correctly, you'll want to do the equivalent of a curl http://your-public-kibana-interface:5601 to ensure that you're able to connect to Kibana from the server that is running nginx. If after setting the you're still unable to communicate with Kibana from the server running nginx, there might be a firewall running on your Kibana server that is dropping this request.

I'm not following the part about your self-signed cert, are you setting server.ssl.* in your kibana.yml to have Kibana self-host SSL? If you are, you'll have to use "https://" in your nginx configuration and ensure that nginx trusts the certificates that you're using with Kibana.

thanks @Brandon_Kobel

with curl -L I got a lot of html output in the terminal - I'm guessing that's expected? I should probably try it in the browser without https?
Well I'll be! Just loading it without https worked a charm. Must be something misconfigured with the certs - did you say there was a setting in the kibana file if using self-signed certs?

To have the Kibana server itself use HTTPS, you can enable this with the following (substituting your own paths):

server.ssl.enabled: true
server.ssl.certificate: /some/path/to/your/cert.crt
server.ssl.key: /some/path/to/your/cert.key

However, when using a reverse-proxy in front of Kibana, it's rather common to do SSL off-loading at the reverse-proxy and have Kibana itself using HTTP, and in that situation you wouldn't configure the aforementioned settings. If you want to take this approach, you'll want to make sure that the reverse-proxy is only accessible by the users which you want to be requiring to use HTTPS and they can't skip the reverse-proxy and hit the Kibana server directly on HTTP. The specifics of this really depends on your network configuration.

Thank you! I will dig a little deeper as I have fallen back on http for the time being

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