# How to sync database from mysql to elasticsearch with programming?

**URL:** https://discuss.elastic.co/t/how-to-sync-database-from-mysql-to-elasticsearch-with-programming/96364
**Category:** Logstash
**Created:** [August 9, 2017, 2:40am UTC](https://discuss.elastic.co/t/how-to-sync-database-from-mysql-to-elasticsearch-with-programming/96364 "2017-08-09T02:40:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Prapat\_Polchan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prapat_polchan/32/20060_2.png) [@Prapat\_Polchan](https://discuss.elastic.co/u/Prapat_Polchan)
#### Post date: [August 9, 2017, 2:40am UTC](https://discuss.elastic.co/t/how-to-sync-database-from-mysql-to-elasticsearch-with-programming/96364/1 "2017-08-09T02:40:33Z")

</div>

i want to sync database from sybase database but sybase database using ISO8859\_1 i found a problem character on elasticsearch ??? i used JDBC and set charset but not work.

Can i writing code to encode charset custom in logstash ?

---

<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: [September 6, 2017, 2:40am UTC](https://discuss.elastic.co/t/how-to-sync-database-from-mysql-to-elasticsearch-with-programming/96364/2 "2017-09-06T02:40:48Z")

</div>

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