# Logstash missing records in elastic search

**URL:** <https://discuss.elastic.co/t/logstash-missing-records-in-elastic-search/121842>\
**Category:** Logstash\
**Created:** [February 28, 2018, 11:33am UTC](https://discuss.elastic.co/t/logstash-missing-records-in-elastic-search/121842 "2018-02-28T11:33:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinaygarg30](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@vinaygarg30](https://discuss.elastic.co/u/vinaygarg30)\
**Post date:** [February 28, 2018, 11:33am UTC](https://discuss.elastic.co/t/logstash-missing-records-in-elastic-search/121842/1 "2018-02-28T11:33:12Z")

</div>

Hi,  
I have used the configration for logstash to dump data from MYSQL 5.5 to Elastic Search 6.1.2.  
input {  
jdbc {  
jdbc\_driver\_library =\> "/home/ubuntu/mysql-connector-java-5.1.45/mysql-connector-java-5.1.45-bin.jar"  
jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
jdbc\_connection\_string =\> "jdbc:mysql://IP:PORT/DATABASE"  
jdbc\_user =\> "username"  
jdbc\_password =\> "password"  
statement\_filepath =\> "/queries/abc.sql"  
lowercase\_column\_names =\> false  
}  
}  
output {  
stdout { codec =\> json\_lines }  
elasticsearch {  
index =\> "accounts"  
document\_type =\> "account"  
document\_id =\> "%{id}"   
hosts =\> ["elastic\_ip:9200"]  
}  
}

When i run the logstash on my local machine(input database present on a Test server and ES on local machine), the results are accurate.  
But when I try to run logstash on Test Server( both database and ES on Test Server), some records are missing randomly.

I am stuck at this point. Please help me out.  
For other indexes which have same configration with more than 50000 records are ingested correctly, but account index is missing the documents.

---

<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:** [March 28, 2018, 11:33am UTC](https://discuss.elastic.co/t/logstash-missing-records-in-elastic-search/121842/2 "2018-03-28T11:33:12Z")

</div>

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