# Logstash-inputjdbc postgresql json type import to ES problem

**URL:** <https://discuss.elastic.co/t/logstash-inputjdbc-postgresql-json-type-import-to-es-problem/69976>\
**Category:** Logstash\
**Created:** [December 26, 2016, 6:52am UTC](https://discuss.elastic.co/t/logstash-inputjdbc-postgresql-json-type-import-to-es-problem/69976 "2016-12-26T06:52:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maleibo](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@maleibo](https://discuss.elastic.co/u/maleibo)\
**Post date:** [December 26, 2016, 6:52am UTC](https://discuss.elastic.co/t/logstash-inputjdbc-postgresql-json-type-import-to-es-problem/69976/1 "2016-12-26T06:52:03Z")

</div>

hello !  
i have a postgresql database ,some columns of type is json.  
i used input-jdbc plugin to import these datas,but there is a problem,for example:  
my json column data:  
{"type":"Point","coordinates":[106.1223,29.3467]}  
input-jdbc import data:  
{"type":"json","value":"{"type":"Point","coordinates":[106.1223,29.3467]}"}

ES can not parse this format,how can i do it?  
my english is poor,do you know my means?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 31, 2016, 10:32am UTC](https://discuss.elastic.co/t/logstash-inputjdbc-postgresql-json-type-import-to-es-problem/69976/2 "2016-12-31T10:32:01Z")

</div>

Use a json filter on your `value` field to parse the JSON string.

---

<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 28, 2017, 10:32am UTC](https://discuss.elastic.co/t/logstash-inputjdbc-postgresql-json-type-import-to-es-problem/69976/3 "2017-01-28T10:32:16Z")

</div>

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