# Enquiry about sampling in elasticsearch

**URL:** https://discuss.elastic.co/t/enquiry-about-sampling-in-elasticsearch/266092
**Category:** Beats
**Tags:** filebeat
**Created:** [March 3, 2021, 11:10am UTC](https://discuss.elastic.co/t/enquiry-about-sampling-in-elasticsearch/266092 "2021-03-03T11:10:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![iammanmale](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@iammanmale](https://discuss.elastic.co/u/iammanmale)
#### Post date: [March 3, 2021, 11:10am UTC](https://discuss.elastic.co/t/enquiry-about-sampling-in-elasticsearch/266092/1 "2021-03-03T11:10:49Z")

</div>

As we want to reduce the amount log indexing into ES nodes, i would like to know if filebeat or logstash has filters to do sampling? For example, can the filebeat push only 1 of every 5 lines from the log files to logstash? Or can logstash can push only 1 of every 5 lines to ES nodes?

---

<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 31, 2021, 11:11am UTC](https://discuss.elastic.co/t/enquiry-about-sampling-in-elasticsearch/266092/2 "2021-03-31T11:11:41Z")

</div>

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