Hi There,
I am trying to add a few vector shape files in geojson format to Kibana (running on ubuntu 18.04)
Here are what I did:
1- set up a http server for my geojson files using: python3 -m http.server 8080
2- set up a reverse proxy in Nginx to allow external access to http server
The preferred solution at the end, but I'll respond to your question first.
Your proxy-configuration here does not apply to custom region maps, configured in the kibana.yml. For those, the Kibana application (in the user's browser) issues a CORS-request directly to the server that is hosting the region-file. So the first thing to check would be to see if your server (localhost:81) is allowing CORS-requests. For more info, see here https://www.elastic.co/guide/en/kibana/current/settings.html#regionmap-settings.
... Preferred solution
If possible though, the preferred solution would be to index your geojson file into Elasticsearch. In 7.3, you can do that easily with the "Upload geojson" feature. (click Add layer, it's the first option).
Once you indexed your file like that, just add your data as an ES-document layer. To be more efficient, you can turn off the "Apply global filters" switch and the "Filter on extent" switch. That way, it will only pull the file once.
The biggest advantage is that you then will not have to worry about CORS-settings or maintaining a separate server for your custom file.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.