# Send logs to logstash and elasticsearch but miss some logs

**URL:** <https://discuss.elastic.co/t/send-logs-to-logstash-and-elasticsearch-but-miss-some-logs/139937>\
**Category:** Logstash\
**Created:** [July 13, 2018, 12:05pm UTC](https://discuss.elastic.co/t/send-logs-to-logstash-and-elasticsearch-but-miss-some-logs/139937 "2018-07-13T12:05:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TLthirtyeight](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tlthirtyeight/32/33324_2.png) [@TLthirtyeight](https://discuss.elastic.co/u/TLthirtyeight)\
**Post date:** [July 13, 2018, 12:05pm UTC](https://discuss.elastic.co/t/send-logs-to-logstash-and-elasticsearch-but-miss-some-logs/139937/1 "2018-07-13T12:05:22Z")

</div>

Here is my situation.I write a java app which read my logs from file.Then the java app send logs to logstash.The logstash filter the logs and then send them to elasticsearch.However I found that some logs are missed and the more logs the more missed.Therefore I slow down the java app with Thread.sleep() each 500 logs.I guess that is because the reading speed of the java app is too fast.How could I handle this situation?

---

<div class="post-metadata">

**Author:** ![TLthirtyeight](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tlthirtyeight/32/33324_2.png) [@TLthirtyeight](https://discuss.elastic.co/u/TLthirtyeight)\
**Post date:** [July 16, 2018, 1:11am UTC](https://discuss.elastic.co/t/send-logs-to-logstash-and-elasticsearch-but-miss-some-logs/139937/2 "2018-07-16T01:11:28Z")

</div>

It seems like that is the problem of udp packet dropped by kernel.

---

<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:** [August 13, 2018, 1:11am UTC](https://discuss.elastic.co/t/send-logs-to-logstash-and-elasticsearch-but-miss-some-logs/139937/3 "2018-08-13T01:11:31Z")

</div>

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