# How we can send updated mysql record to elastic using logstash

**URL:** <https://discuss.elastic.co/t/how-we-can-send-updated-mysql-record-to-elastic-using-logstash/105224>\
**Category:** Logstash\
**Created:** [October 25, 2017, 11:08am UTC](https://discuss.elastic.co/t/how-we-can-send-updated-mysql-record-to-elastic-using-logstash/105224 "2017-10-25T11:08:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)\
**Post date:** [October 25, 2017, 11:08am UTC](https://discuss.elastic.co/t/how-we-can-send-updated-mysql-record-to-elastic-using-logstash/105224/1 "2017-10-25T11:08:05Z")

</div>

How we can chnage logstash config, so that when any updated record found in mysql database, logstash fetch only that. Is it possible.

my config. file is like this...  
input {  
jdbc {  
jdbc\_driver\_library =\> "/root/mysql-connector-java-5.1.44/mysql-connector-java-5.1.44-bin.jar"  
jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
jdbc\_connection\_string =\> "jdbc:mysql://localhost:3306/database"  
jdbc\_user =\> "**"  
jdbc\_password =\> "**\*"  
statement =\> "SELECT \* FROM testing"  
jdbc\_paging\_enabled =\> "true"  
jdbc\_page\_size =\> "26000"  
}  
}  
output {  
elasticsearch {  
action =\> "index"  
hosts =\> ["localhost:9200"]  
index =\> "test"  
document\_type =\> "product"  
document\_id =\> "%{id}"  
}  
stdout{  
codec =\> json\_lines  
}  
}

---

<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:** [October 25, 2017, 12:07pm UTC](https://discuss.elastic.co/t/how-we-can-send-updated-mysql-record-to-elastic-using-logstash/105224/2 "2017-10-25T12:07:39Z")

</div>

It seems you're asking the same question that this thread covers: [Auto Update logs without running logstash](https://discuss.elastic.co/t/auto-update-logs-without-running-logstash/104855)

---

<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:** [November 22, 2017, 12:07pm UTC](https://discuss.elastic.co/t/how-we-can-send-updated-mysql-record-to-elastic-using-logstash/105224/3 "2017-11-22T12:07:39Z")

</div>

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