# How to set limit log elasticsearch + filebeat

**URL:** <https://discuss.elastic.co/t/how-to-set-limit-log-elasticsearch-filebeat/236505>\
**Category:** Elasticsearch\
**Created:** [June 10, 2020, 12:16pm UTC](https://discuss.elastic.co/t/how-to-set-limit-log-elasticsearch-filebeat/236505 "2020-06-10T12:16:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111304](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111304/32/45740_2.png) [@111304](https://discuss.elastic.co/u/111304)\
**Post date:** [June 10, 2020, 12:16pm UTC](https://discuss.elastic.co/t/how-to-set-limit-log-elasticsearch-filebeat/236505/1 "2020-06-10T12:16:41Z")

</div>

Hi everyone, there is a setting forasticsearch + filebeat. I want to limit the number of logs that come in elasticsearch. There is a set of servers, about 20,000 events from different sets of files that filebeat scans that come every minute. The idea is to get the value not in 20,000, but in 5000-10000 from a set of existing files, or if there are a total of 2,000,000 records, then get them through at least one line. How to implement this? Or are there any other options?

---

<div class="post-metadata">

**Author:** ![111304](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111304/32/45740_2.png) [@111304](https://discuss.elastic.co/u/111304)\
**Post date:** [June 11, 2020, 11:03am UTC](https://discuss.elastic.co/t/how-to-set-limit-log-elasticsearch-filebeat/236505/2 "2020-06-11T11:03:33Z")

</div>

Hi everyone, I solved my question, it is no longer relevant. I used the article for my version. He selects the configuration for himself separately. [Configure the internal queue](https://www.elastic.co/guide/en/beats/filebeat/6.8/configuring-internal-queue.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:** [July 9, 2020, 11:03am UTC](https://discuss.elastic.co/t/how-to-set-limit-log-elasticsearch-filebeat/236505/3 "2020-07-09T11:03:35Z")

</div>

Closed on July 9, 2020, 11:03am UTC

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