Problem when setting Kibana server as a proxy for Tiles Maps Download and Maps Visualizations

Hello All,
We have a KIbana/Elasticsearch environment where the servers have access to the internet through a proxy. The web browser clients from which the users access to Kibana are also running from an environment that don't have access to the internet. Therefore the kibana maps can not display tiles maps.
In order for the Kibana to visualize tiles maps, we thought that configuring the kibana server as a proxy would enable the kibana server to download the map tiles and display it on the clients. But this is not working.
From the shell using curl we are able to access the tiles.maps.elastic.co sites, but the kibana server is unable to access.
Could someone provide some tips where to look in the kibana configuration to make this work? Thank you very much

Folllowing a log:

    {"type":"log","@timestamp":"2020-12-10T11:32:37Z","tags":["error","http"],"pid":6,"message":"Error: Unable to retrieve manifest from https://tiles.maps.elastic.co/v7.10/manifest: request to https://tiles.maps.elastic.co/v7.10/manifest?elastic_tile_service_tos=agree&my_app_name=kibana&my_app_version=7.10.0&license=0700a09b-96b2-46df-91ca-2aa06b049ca1 failed, reason: getaddrinfo ENOTFOUND tiles.maps.elastic.co tiles.maps.elastic.co:443\n    at EMSClient.getManifest (/usr/share/kibana/node_modules/@elastic/ems-client/target/node/ems_client.js:183:13)"}
    {"type":"error","@timestamp":"2020-12-10T11:32:37Z","tags":[],"pid":6,"level":"error","error":{"message":"Internal Server Error","name":"Error","stack":"Error: Internal Server Error\n    at HapiResponseAdapter.toInternalError (/usr/share/kibana/src/core/server/http/router/response_adapter.js:69:19)\n    at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:177:34)"},"url":{"protocol":null,"slashes":null,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":"?elastic_tile_service_tos=agree&my_app_name=kibana&my_app_version=7.10.0&license=0700a09b-96b2-46df-91ca-2aa06b049ca1","query":{"elastic_tile_service_tos":"agree","my_app_name":"kibana","my_app_version":"7.10.0","license":"0700a09b-96b2-46df-91ca-2aa06b049ca1"},"pathname":"/api/maps/ems/tiles/v7.10/manifest","path":"/api/maps/ems/tiles/v7.10/manifest?elastic_tile_service_tos=agree&my_app_name=kibana&my_app_version=7.10.0&license=0700a09b-96b2-46df-91ca-2aa06b049ca1","href":"/api/maps/ems/tiles/v7.10/manifest?elastic_tile_service_tos=agree&my_app_name=kibana&my_app_version=7.10.0&license=0700a09b-96b2-46df-91ca-2aa06b049ca1"},"message":"Internal Server Error"}

This when trying the connectivity to the elastic servers:

bash-4.4$ curl https://tiles.maps.elastic.co/v7.10/manifest?elastic_tile_service_tos=agree&my_app_name=kibana&my_app_version=7.10.0&license=0700a09b-96b2-46df-91ca-2aa06b049ca
[1] 4735
[2] 4736
[3] 4737
bash-4.4$ {"version": "7.10", "services": [{"id": "road_map", "name": {"en": "Road map"}, "attribution": [{"label": {"en": "OpenStreetMap contributors"}, "url": {"en": "https://www.openstreetmap.org/copyright"}}, {"label": {"en": "OpenMapTiles"}, "url": {"en": "https://openmaptiles.org"}}, {"label": {"en": "Elastic Maps Service"}, "url": {"en": "https://www.elastic.co/elastic-maps-service"}}], "formats": [{"locale": "en", "format": "vector", "url": "/v7.10/styles/osm-bright/style.json"}, {"locale": "en", "format": "raster", "url": "/v7.10/styles/osm-bright.json"}]}, {"id": "road_map_desaturated", 

Please following the instructions at https://www.elastic.co/guide/en/kibana/7.10/maps-connect-to-ems.html#_connect_to_elastic_maps_service_from_an_internal_network to proxy EMS requests from the kibana server.

1 Like

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