# How to import a GeoJSON to elastic.. using Logstash or any other possible way

**URL:** <https://discuss.elastic.co/t/how-to-import-a-geojson-to-elastic-using-logstash-or-any-other-possible-way/207001>\
**Category:** Elasticsearch\
**Created:** [November 7, 2019, 7:15pm UTC](https://discuss.elastic.co/t/how-to-import-a-geojson-to-elastic-using-logstash-or-any-other-possible-way/207001 "2019-11-07T19:15:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [December 3, 2019, 4:24pm UTC](https://discuss.elastic.co/t/how-to-import-a-geojson-to-elastic-using-logstash-or-any-other-possible-way/207001/7 "2019-12-03T16:24:23Z")

</div>

Hi @Jayasri_Cimba, I believe this error is caused by an older version of GDAL that does not support Elasticsearch 7. Can you paste the output of `ogr2ogr --version`?

GDAL 3.1.0 is required to ingest into Elasticsearch 7. But GDAL 3.1.0 is not released yet. So the best way to get GDAL to support Elasticsearch 7 is by [building from source](https://trac.osgeo.org/gdal/wiki/BuildHints). This may look daunting, but should be relatively easy on most operating systems.

If you have Docker installed on your local machine, you can also try using the nightly Docker images of GDAL ([examples here](https://gist.github.com/nickpeihl/1a8f9cbecc78e9e04a73a953b30da84d#examples-using-nightly-docker-images)).

I have also written a [detailed blog post](https://www.elastic.co/blog/how-to-ingest-geospatial-data-into-elasticsearch-with-gdal) that contains most of the information I have shared with you.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-import-a-geojson-to-elastic-using-logstash-or-any-other-possible-way/207001)._
