Kibana 5 behind reverse proxy

Is there a documentation out there describing the configuration of kibana 5 behind reverse proxy.

--
Niraj

Hi @niraj_kumar,

there is a blog post talking about deploying Elasticsearch behind nginx. Most of it would also be applicable for Kibana (with different ports, obviously). In addition, the following Kibana settings might need adjusting - depending on the specific environment:

  • server.host
  • server.port
  • server.basePath

If you have also deployed the X-Pack, these settings could be of interest:

  • xpack.reporting.kibanaServer.hostname
  • xpack.reporting.kibanaServer.port

Some other users have shared information about their reverse proxy setups preciously on this forum:

I managed to make this thing up. Here are my Proxy config below.

#Kibana 5 reverse proxies.

ProxyPass /app/kibana http://example.com:5601/app/kibana
ProxyPassReverse /app/kibana http://example.com:5601/app/kibana

ProxyPass /bundles http://example.com:5601/bundles
ProxyPassReverse /bundles http://example.com:5601/bundles

ProxyPass /elasticsearch/ http://example.com:9200
ProxyPassReverse /elasticsearch/ http://3v218.cv.hp.com:9200

ProxyPass /status http://example.com:5601/status
ProxyPassReverse /status http://example.com:/status

ProxyPass /api/status http://example.com:5601/api/status
ProxyPassReverse /api/status http://example.com:5601/api/status

ProxyPass /api/console http://example.com:5601/api/console
ProxyPassReverse /api/console http://example.com:5601/api/console

ProxyPass /plugins/kibana/ http://example.com:5601/plugins/kibana/
ProxyPassReverse /plugins/kibana/ http://example.com:5601/plugins/kibana/

ProxyPass /plugins/timelion/ http://example.com:5601/plugins/timelion/
ProxyPassReverse /plugins/timelion/ http://example.com:5601/plugins/timelion/

ProxyPass /app/sense http://example.com:5601/app/sense
ProxyPassReverse /app/sense http://example.com:5601/app/sense

ProxyPass /ui/fonts/open_sans/ http://example.com:5601/ui/fonts/open_sans/
ProxyPassReverse /ui/fonts/open_sans/ http://example.com:5601/ui/fonts/open_sans/

ProxyPass /es_admin/ http://example.com:5601/es_admin/
ProxyPassReverse /es_admin/ http://example.com:5601/es_admin/

4 Likes

Hi Kumar,

I noticed that Timelion was still not loading correctly. I've added the missing entries

<VirtualHost *:8190>
    Servername kibana
	
	DirectoryIndex /app/kibana
    
	ProxyPass /app/kibana http://localhost:5601/app/kibana
	ProxyPassReverse /app/kibana http://localhost:5601/app/kibana

	ProxyPass /app/timelion http://localhost:5601/app/timelion
	ProxyPassReverse /app/timelion http://localhost:5601/app/timelion

	ProxyPass /bundles http://localhost:5601/bundles
	ProxyPassReverse /bundles http://localhost:5601/bundles

	ProxyPass /elasticsearch/ http://localhost:9200
	ProxyPassReverse /elasticsearch/ http://localhost:9200

	ProxyPass /status http://localhost:5601/status
	ProxyPassReverse /status http://localhost:/status

	ProxyPass /api/status http://localhost:5601/api/status
	ProxyPassReverse /api/status http://localhost:5601/api/status

	ProxyPass /api/console http://localhost:5601/api/console
	ProxyPassReverse /api/console http://localhost:5601/api/console

	ProxyPass /api/timelion/run http://localhost:5601/api/timelion/run
	ProxyPassReverse /api/timelion/run http://localhost:5601/api/timelion/run

	ProxyPass /api/timelion/functions http://localhost:5601/api/timelion/functions
	ProxyPassReverse /api/timelion/functions http://localhost:5601/api/timelion/functions

	ProxyPass /plugins/kibana/ http://localhost:5601/plugins/kibana/
	ProxyPassReverse /plugins/kibana/ http://localhost:5601/plugins/kibana/

	ProxyPass /plugins/timelion/ http://localhost:5601/plugins/timelion/
	ProxyPassReverse /plugins/timelion/ http://localhost:5601/plugins/timelion/

	ProxyPass /app/sense http://localhost:5601/app/sense
	ProxyPassReverse /app/sense http://localhost:5601/app/sense

	ProxyPass /ui/fonts/open_sans/ http://localhost:5601/ui/fonts/open_sans/
	ProxyPassReverse /ui/fonts/open_sans/ http://localhost:5601/ui/fonts/open_sans/

	ProxyPass /es_admin/ http://localhost:5601/es_admin/
	ProxyPassReverse /es_admin/ http://localhost:5601/es_admin/
	
	ErrorLog "logs/kibana-error.log"
	
</VirtualHost>
1 Like

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