# Can you ingest geojson in Logstash?

**URL:** <https://discuss.elastic.co/t/can-you-ingest-geojson-in-logstash/198319>\
**Category:** Logstash\
**Created:** [September 5, 2019, 9:46pm UTC](https://discuss.elastic.co/t/can-you-ingest-geojson-in-logstash/198319 "2019-09-05T21:46:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![beezit](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@beezit](https://discuss.elastic.co/u/beezit)\
**Post date:** [September 5, 2019, 9:46pm UTC](https://discuss.elastic.co/t/can-you-ingest-geojson-in-logstash/198319/1 "2019-09-05T21:46:43Z")

</div>

Can you ingest geojson thru Logstash for ElasticSearch and Kibana use?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [September 5, 2019, 10:35pm UTC](https://discuss.elastic.co/t/can-you-ingest-geojson-in-logstash/198319/2 "2019-09-05T22:35:00Z")

</div>

logstash can ingest JSON, and GeoJSON is also JSON, so the answer is yes. Whether that is useable in kibana is more of a kibana question.

---

<div class="post-metadata">

**Author:** ![beezit](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@beezit](https://discuss.elastic.co/u/beezit)\
**Post date:** [September 5, 2019, 11:34pm UTC](https://discuss.elastic.co/t/can-you-ingest-geojson-in-logstash/198319/3 "2019-09-05T23:34:43Z")

</div>

My final goal is to use it in ElasticSearch really, Kibana part I am not too worried about. Care to show me where to start or what documentation to look at.

Thanks

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [September 6, 2019, 12:28pm UTC](https://discuss.elastic.co/t/can-you-ingest-geojson-in-logstash/198319/4 "2019-09-06T12:28:20Z")

</div>

If the JSON is in a file then I suggest you start with a [file](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html) input, along with either a json [codec](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-json.html) or a json [filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-json.html) (not both).

---

<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:** [October 4, 2019, 12:28pm UTC](https://discuss.elastic.co/t/can-you-ingest-geojson-in-logstash/198319/5 "2019-10-04T12:28:23Z")

</div>

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