# Not able to import GeoJson file using Kibana Maps

**URL:** <https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228>\
**Category:** Kibana\
**Created:** [December 10, 2020, 8:23am UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228 "2020-12-10T08:23:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![RamyaGowda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramyagowda/32/27440_2.png) [@RamyaGowda](https://discuss.elastic.co/u/RamyaGowda)\
**Post date:** [December 10, 2020, 8:23am UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/1 "2020-12-10T08:23:03Z")

</div>

Hi Team,

I have created the custom geojson file for India region, when i try to import the file in kibana maps, it doesn't show any errors in elasticsearch log nor in the kibana UI.

But i can see below error in kibana log

> {"type":"response","@timestamp":"2020-12-10T08:10:06Z","tags":,"pid":23019,"method":"post","statusCode":408,"req":{"url":"/api/fileupload/import?id=fab78320-3abe-11eb-bffe-2965c006cf99","method":"post","headers":{"host":"xxxxx:5601","connection":"keep-alive","content-length":"11450954","kbn-version":"7.9.3","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36","content-type":"application/json","accept":"_/_","origin":"[http://xxxxx:5601](http://xxxxx:5601)","referer":"xxxxx:5601/app/maps/map","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"10.47.6.133","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36","referer":"xxxxxx:5601/app/maps/map"},"res":{"statusCode":408,"responseTime":17005,"contentLength":9},"message":"POST /api/fileupload/import?id=fab78320-3abe-11eb-bffe-2965c006cf99 408 17005ms - 9.0B"}  
> {"type":"response","@timestamp":"2020-12-10T08:10:23Z","tags":,"pid":23019,"method":"post","statusCode":400,"req":{"url":"/api/fileupload/import","method":"post","headers":{"host":"xxxx:5601","connection":"keep-alive","content-length":"169","kbn-version":"7.9.3","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36","content-type":"application/json","accept":"_/_","origin":"[http://xxxxx:5601](http://xxxxx:5601)","referer":"xxxxxx:5601/app/maps/map","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"10.47.6.133","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36","referer":"xxxxxx:5601/app/maps/map"},"res":{"statusCode":400,"responseTime":63,"contentLength":9},"message":"POST /api/fileupload/import 400 63ms - 9.0B"}

**Import File** keeps on loading and vanishes after sometime.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b26e6c387d12c9ffffcd8452ba8df72d070828a8.jpeg)

Please help me here.

Thanks in Advance,  
Ramya

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [December 10, 2020, 8:29pm UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/2 "2020-12-10T20:29:20Z")

</div>

Hello Ramya,

Any chance you can provide the geojson file you tried to upload?

Thanks,  
Aaron

---

<div class="post-metadata">

**Author:** ![RamyaGowda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramyagowda/32/27440_2.png) [@RamyaGowda](https://discuss.elastic.co/u/RamyaGowda)\
**Post date:** [December 11, 2020, 4:59am UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/3 "2020-12-11T04:59:06Z")

</div>

@Aaron_Caldwell,

where i can upload the file, it's 46MB size file

Thanks,  
Ramya

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [December 14, 2020, 5:07pm UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/4 "2020-12-14T17:07:55Z")

</div>

Hello Ramya,

Please use this link to upload the file: [`https://upload.elastic.co/u/5f501789-e185-4fd5-a39a-acc746d426d3`](https://upload.elastic.co/u/5f501789-e185-4fd5-a39a-acc746d426d3). I suspect some interplay of size and complexity is the issue but would like to verify. Generally speaking, the GeoJSON uploader can handle the majority of files up to 50MB, but there are occasional exceptions and also local client factors that can affect this limit.

You might want to check out [this other issue](https://discuss.elastic.co/t/geojson-loading-error/235137) as well. It's a slightly different situation, but the advice would apply here. Regardless, I would appreciate the chance to look at the file. Then I can tell you if I'm seeing something similar and we'll have an additional data point to identify unhandled complexeties for this utility!

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![RamyaGowda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramyagowda/32/27440_2.png) [@RamyaGowda](https://discuss.elastic.co/u/RamyaGowda)\
**Post date:** [December 15, 2020, 6:21am UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/5 "2020-12-15T06:21:50Z")

</div>

Hi @Aaron_Caldwell,

Please find the geojson file here :

curl -L -H 'Authorization: xxxxxxxxxx' -o 'india\_geojson.json' [https://upload.elastic.co/d/4b1914c8932db8aaa5f414bfc5c9a235abdb704b931d4db2f47667e043e8995c](https://upload.elastic.co/d/4b1914c8932db8aaa5f414bfc5c9a235abdb704b931d4db2f47667e043e8995c)

Thanks,  
Ramya

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [December 15, 2020, 4:01pm UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/6 "2020-12-15T16:01:56Z")

</div>

Hello Ramya,

No need to include the download instructions, I get notified when the upload's been made. Are you certain you've uploaded the correct file though? The file I received is called `all_countries.json` which is GeoJSON but is only 1MB in size. Just to be certain, here's another download link in case you need to upload something different:

[`https://upload.elastic.co/u/86e0b745-dbd5-40e3-983b-2d72dad06840`](https://upload.elastic.co/u/86e0b745-dbd5-40e3-983b-2d72dad06840)

Thanks,  
Aaron

---

<div class="post-metadata">

**Author:** ![RamyaGowda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramyagowda/32/27440_2.png) [@RamyaGowda](https://discuss.elastic.co/u/RamyaGowda)\
**Post date:** [December 16, 2020, 6:23am UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/7 "2020-12-16T06:23:36Z")

</div>

Hello Aaron,

Last time by mistakenly I have uploaded wrong file.  
I have uploaded the correct one this time, filename is India\_geojson.json

Thanks,  
Ramya

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [December 16, 2020, 6:16pm UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/8 "2020-12-16T18:16:11Z")

</div>

Hello Ramya,

Thanks, I got the correct file this time. Interestingly I had no issues uploading it:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/e/decc4dd6884e5f3a448acda5a026fadab56b37ea.jpeg)

You could try loading Kibana in a different browser and then attempting to upload the file to see if you get different results. Please let me know if you do!

I've added an item to an issue we've created to track [GeoJSON Upload Error Handling](https://github.com/elastic/kibana/issues/48194). File upload is likely to improve in the future, but details are TBD. If you don't have any luck in a different browser, your best bet would be to use [one of our other options](https://www.elastic.co/blog/how-to-ingest-data-into-elasticsearch-service) for data ingest.

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![RamyaGowda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramyagowda/32/27440_2.png) [@RamyaGowda](https://discuss.elastic.co/u/RamyaGowda)\
**Post date:** [December 23, 2020, 6:35am UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/9 "2020-12-23T06:35:33Z")

</div>

Hello Aaron,

Thanks, I tried with Chrome, Firefox and IE but no luck in loading the data.  
I also tried by increasing the `http.max_content_length` to 500mb to see if this helps, but it didn't worked.

surprisingly I'm able to load this data in a 3 ES with Kibana cluster without any changes.  
I don't understand why it is not working for single instance.

`

> but there are occasional exceptions and also local client factors that can affect this limit.

from your previous message , what are these factor?

I used beats and logstash to load different type of data to ES, but not sure how it works for GeoJSON data , can you please shed some light here.

Thanks,  
Ramya

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 20, 2021, 6:35am UTC](https://discuss.elastic.co/t/not-able-to-import-geojson-file-using-kibana-maps/258228/10 "2021-01-20T06:35:46Z")

</div>

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