# Logstash JDBC Output to postgreSQL

**URL:** <https://discuss.elastic.co/t/logstash-jdbc-output-to-postgresql/72119>\
**Category:** Logstash\
**Created:** [January 19, 2017, 6:36am UTC](https://discuss.elastic.co/t/logstash-jdbc-output-to-postgresql/72119 "2017-01-19T06:36:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phi1001](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@Phi1001](https://discuss.elastic.co/u/Phi1001)\
**Post date:** [January 19, 2017, 6:36am UTC](https://discuss.elastic.co/t/logstash-jdbc-output-to-postgresql/72119/1 "2017-01-19T06:36:32Z")

</div>

i would like to put a json in my database

It works fine but i would like to convert the json "properties" in string to store it in 1 column

"name":"Product",  
"properties":  
{  
"type":"number",  
"description":"Product identifier"  
}

create table tx (  
name text,  
properties text  
}

when i try this sample it works fine, It's normal properties is not a sub json

"name":"Product",  
"properties":  
{  
"type":"number",  
"description":"Product identifier"  
}

---

<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:** [February 16, 2017, 6:36am UTC](https://discuss.elastic.co/t/logstash-jdbc-output-to-postgresql/72119/2 "2017-02-16T06:36:33Z")

</div>

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