# MySQL data stops working through logstash

**URL:** <https://discuss.elastic.co/t/mysql-data-stops-working-through-logstash/182145>\
**Category:** Logstash\
**Created:** [May 22, 2019, 6:52am UTC](https://discuss.elastic.co/t/mysql-data-stops-working-through-logstash/182145 "2019-05-22T06:52:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bikingbadger](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@bikingbadger](https://discuss.elastic.co/u/bikingbadger)\
**Post date:** [May 22, 2019, 6:52am UTC](https://discuss.elastic.co/t/mysql-data-stops-working-through-logstash/182145/1 "2019-05-22T06:52:44Z")

</div>

Hi there,  
I've setup logstash to query data from a MySQL db and it is working fine up to a point. The last run file contains the correct index and i see in the log that the query is being run:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d95895ea0ba6c8a00f9fe3ebb0637cd35332621f.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/4/94e1b7311617881f33780d464f3b351697aab0c2.png)  
The issue is that in the elastic index the data does not seem to be inserted. Once I restart the logstash service though the data does get pushed through.  
I would appreciate any help in trying to debug this issue. Is there anything I can do to get some more logging info?  
One thing that I am thinking of is due to the fact that this query sometime takes a while to run or some other query takes some time that the queries are "cancelling" each other?? Again not sure but hoping that might give someone something to help me with.

---

<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:** [June 19, 2019, 7:07am UTC](https://discuss.elastic.co/t/mysql-data-stops-working-through-logstash/182145/2 "2019-06-19T07:07:00Z")

</div>

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