# Data from Mysql JSON column to Elasticsearch

**URL:** <https://discuss.elastic.co/t/data-from-mysql-json-column-to-elasticsearch/91559>\
**Category:** Logstash\
**Created:** [July 2, 2017, 2:17pm UTC](https://discuss.elastic.co/t/data-from-mysql-json-column-to-elasticsearch/91559 "2017-07-02T14:17:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduard\_Kubanda](https://avatars.discourse-cdn.com/v4/letter/e/76d3ee/32.png) [@Eduard\_Kubanda](https://discuss.elastic.co/u/Eduard_Kubanda)\
**Post date:** [July 2, 2017, 2:17pm UTC](https://discuss.elastic.co/t/data-from-mysql-json-column-to-elasticsearch/91559/1 "2017-07-02T14:17:08Z")

</div>

Hi there,  
I checked Logstash reference and some tutorials about Mysql -\> Logstash -\> Elasticsearch data migration scenario, but I still have some questions to answer. (Mysql 5.7, Elasticsearch 5.4)  
I have table "pre\_build\_content", which has column "content". This column is JSON type - it contains valid JSON data object. Is it possible to pass data from json column of Mysql table to Elasticsearch using Logstash (if yes, how) ?  
Turorials and examples for Mysql-\>Logstash-\>Elastic scenarios use json codec, which transfers fetched data to json format - in my situation I already have json stored in DB.  
Please, could you give me example of configuration file of logstash to fulfill my requirements ?  
Thank you.

---

<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:** [July 2, 2017, 5:28pm UTC](https://discuss.elastic.co/t/data-from-mysql-json-column-to-elasticsearch/91559/2 "2017-07-02T17:28:47Z")

</div>

Use a json filter to deserialize the JSON string stored in one of the columns from the result set.

---

<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:** [July 30, 2017, 5:28pm UTC](https://discuss.elastic.co/t/data-from-mysql-json-column-to-elasticsearch/91559/3 "2017-07-30T17:28:50Z")

</div>

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