# Mysql data fetching in ELK

**URL:** <https://discuss.elastic.co/t/mysql-data-fetching-in-elk/252192>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 15, 2020, 12:38pm UTC](https://discuss.elastic.co/t/mysql-data-fetching-in-elk/252192 "2020-10-15T12:38:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waxman](https://avatars.discourse-cdn.com/v4/letter/w/c2a13f/32.png) [@Waxman](https://discuss.elastic.co/u/Waxman)\
**Post date:** [October 15, 2020, 12:38pm UTC](https://discuss.elastic.co/t/mysql-data-fetching-in-elk/252192/1 "2020-10-15T12:38:57Z")

</div>

Hello Folks,  
we got a database with data that are refreshing every hour. We'd like to fetch this data as it is to the elk (ofcourse with some filtering etc.) Can you suggest what is the best architecture and way to do that ?  
Let's say we have a 3 options:  
Mysql -\> filebeat -\> Elastic  
Mysql -\> logstash -\> elk  
Mysql -\> filebeat-\> logstash -\> elk  
any help would be appreciate,

Best regards,  
Marcin

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [October 15, 2020, 12:41pm UTC](https://discuss.elastic.co/t/mysql-data-fetching-in-elk/252192/2 "2020-10-15T12:41:42Z")

</div>

Would use the sceanrio : MySQL \> Logstash \> Elasticsearch  
With this [input plugin](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html)

---

<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 12, 2020, 2:41pm UTC](https://discuss.elastic.co/t/mysql-data-fetching-in-elk/252192/3 "2020-11-12T14:41:44Z")

</div>

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