# Sampling\_rate

**URL:** https://discuss.elastic.co/t/sampling-rate/153544
**Category:** Beats
**Tags:** filebeat
**Created:** [October 23, 2018, 8:26am UTC](https://discuss.elastic.co/t/sampling-rate/153544 "2018-10-23T08:26:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://discuss.elastic.co/u/merceskoba)
#### Post date: [October 23, 2018, 8:26am UTC](https://discuss.elastic.co/t/sampling-rate/153544/1 "2018-10-23T08:26:36Z")

</div>

Hello dear,  
Is there `sampling_rate` in filebeat service ?  
For example,  
`sampling_rate: 0.1`, it means 0.1 is 10/100 or 10%. So, filebeat will send the logs only 10% of logs.

sampling\_rate or sampling\_filter maybe...

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [October 23, 2018, 11:00am UTC](https://discuss.elastic.co/t/sampling-rate/153544/2 "2018-10-23T11:00:59Z")

</div>

Sampling is not supported by beats yet.

---

<div class="post-metadata">

### Author: ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://discuss.elastic.co/u/merceskoba)
#### Post date: [October 23, 2018, 11:34am UTC](https://discuss.elastic.co/t/sampling-rate/153544/3 "2018-10-23T11:34:25Z")

</div>

Thank you very much for your confirmation.  
Will it be implemented in the future maybe ? 🙂

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [October 24, 2018, 5:40pm UTC](https://discuss.elastic.co/t/sampling-rate/153544/4 "2018-10-24T17:40:50Z")

</div>

We're thinking about adding QoS, rate limiting, and sampling. Even in conjunction with defining groups, group hierarchies, and conditionals, so to allow you to configure actions (e.g. more aggressive filtering) on soft and hard limits.

Some experimental code here (I'm not yet satisfied by it, though): [https://github.com/elastic/beats/pull/7082](https://github.com/elastic/beats/pull/7082)

---

<div class="post-metadata">

### Author: ![GuiBacon](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@GuiBacon](https://discuss.elastic.co/u/GuiBacon)
#### Post date: [October 24, 2018, 6:01pm UTC](https://discuss.elastic.co/t/sampling-rate/153544/5 "2018-10-24T18:01:41Z")

</div>

What is interesting is that, how your old system was able to perform good using this cursed DAQ Assistant. If you want to program NI hardware properly, do not use DAQ Assistant! It initializes and releases HW at every iteration! Use proper DAQmx functions! Create/start task BEFORE the loop, and only stop it AFTER! You should have only the "DAQmx Read.vi" function inside the loop.

[turnkey pcb](https://www.7pcb.ca/)

---

<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: [November 21, 2018, 6:07pm UTC](https://discuss.elastic.co/t/sampling-rate/153544/6 "2018-11-21T18:07:00Z")

</div>

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