# Mismatch in count of actual log and log inserted on ES

**URL:** <https://discuss.elastic.co/t/mismatch-in-count-of-actual-log-and-log-inserted-on-es/45968>\
**Category:** Logstash\
**Created:** [March 31, 2016, 4:09pm UTC](https://discuss.elastic.co/t/mismatch-in-count-of-actual-log-and-log-inserted-on-es/45968 "2016-03-31T16:09:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajays](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@ajays](https://discuss.elastic.co/u/ajays)\
**Post date:** [March 31, 2016, 4:09pm UTC](https://discuss.elastic.co/t/mismatch-in-count-of-actual-log-and-log-inserted-on-es/45968/1 "2016-03-31T16:09:59Z")

</div>

Hello,

I have inserted few logs in ES using logstash. But when I check the count of actual log and data inserted in ES, it is not matching. Seems like logstash is dropping few messages.

If I check the count in kibana using "[ab.cd](http://ab.cd):device", I get 2000  
and  
count of cd=device gives 2001

So my question is where is my 1 log and why is it not showing in first query.

Ajays

---

<div class="post-metadata">

**Author:** ![andrewvc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewvc/32/5064_2.png) [@andrewvc](https://discuss.elastic.co/u/andrewvc)\
**Post date:** [March 31, 2016, 4:16pm UTC](https://discuss.elastic.co/t/mismatch-in-count-of-actual-log-and-log-inserted-on-es/45968/2 "2016-03-31T16:16:01Z")

</div>

Have you checked the Logstash logs? Are there any errors?

---

<div class="post-metadata">

**Author:** ![ajays](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@ajays](https://discuss.elastic.co/u/ajays)\
**Post date:** [March 31, 2016, 4:19pm UTC](https://discuss.elastic.co/t/mismatch-in-count-of-actual-log-and-log-inserted-on-es/45968/3 "2016-03-31T16:19:02Z")

</div>

I used rubydebug in logstash configuration and send the output to a file. When I checked the file I found no error at all. I thought I would get one \_grokparsefailure error but I got no errors at all.

---

<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:** [July 6, 2017, 5:04am UTC](https://discuss.elastic.co/t/mismatch-in-count-of-actual-log-and-log-inserted-on-es/45968/4 "2017-07-06T05:04:28Z")

</div>

Closed on July 6, 2017, 5:04am UTC


