reverse proxy to remote kibana server
May 19, 2015 09:28AM
Hi forum...

I'm trying to create a reverse proxy setup that may allow clients to access remotely hosted kibana dashboards.
I know it can be hard... to do same the same thing with against a munin server I had to use subs_filter, in coordination along with a precisely synced set of rewrites, break and last, in order to make it to work... (I shared in these forums my working setup just in case it may help someone in the future)

Now I'm facing the same challenge, and again, I'm pinging the comuinty just in case has walked this way before...
Any help would be very much apreciated.
By now, I'm starting to work on it, but it may probably be an esay shot for experts!

Anyhow... thankyou in advance, and best regards!
Re: reverse proxy to remote kibana server
May 19, 2015 12:49PM
I'm getting closer... but still don't work

location /kibana/ {
subs_filter_types text/html text/css text/xml;
subs_filter href=" href="http://publicwebserver.example.com/kibana/;
subs_filter src=" src="http://publicwebserver.example.com/kibana/;

proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}

location /elasticsearch/_aliases$ {
proxy_pass http://elkserver.example.net/elasticsearch/_aliases;
proxy_read_timeout 90;
}

location /elasticsearch/.*/_aliases$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}

location /elasticsearch/_nodes$ {
proxy_pass http://elkserver.example.net/elasticsearch/_nodes;
proxy_read_timeout 90;
}

location /elasticsearch/.*/_search$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}

location /elasticsearch/.*/_mapping$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}

At least I can load js, css and lot of stuff...
now I'm dealing on how to proxy elasticsearch/_ndes _search etc, atc properly to the internal elkserver in order to it perform the actual query to elasticsearch.

Will post if further success, maybe someone is interested
Re: reverse proxy to remote kibana server
May 20, 2015 09:44AM
A starting point achieved!

location /kibana/ {
subs_filter_types text/html text/css text/xml;
subs_filter href=" href="http://publicwebserver.example.com/kibana/;
subs_filter src=" src="http://publicwebserver.example.com/kibana/;

proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}

location /elasticsearch/ {
proxy_pass http://elkserver.example.net;
proxy_read_timeout 90;
}

This setup allows me to access the kibana server remotely, but with no control...


EDIT: I will open a new topic on how to achieve controlling of the site:
Ttrying to limit visitors to just their dashboard uri, and preenting them to browse around.
Hope someone will help me...

Best regards



Edited 1 time(s). Last edit at 05/20/2015 09:47AM by alexolivan.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 276
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready