# Logstah throttle filter dropping messages indefinitely

**URL:** https://discuss.elastic.co/t/logstah-throttle-filter-dropping-messages-indefinitely/64585
**Category:** Logstash
**Created:** [November 1, 2016, 4:11pm UTC](https://discuss.elastic.co/t/logstah-throttle-filter-dropping-messages-indefinitely/64585 "2016-11-01T16:11:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rcanzanese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcanzanese/32/12626_2.png) [@rcanzanese](https://discuss.elastic.co/u/rcanzanese)
#### Post date: [November 1, 2016, 4:11pm UTC](https://discuss.elastic.co/t/logstah-throttle-filter-dropping-messages-indefinitely/64585/1 "2016-11-01T16:11:49Z")

</div>

Trying to use the throttle plugin in logstash to drop messages if I am receiving them at too high a rate. My goal is to:

> drop excess messages if more than 100 received in a 10 second window

To accomplish this, I use the config below, but it doesn't do what I expected. Instead, when I start logstash, it allows the first 100 messages through and then throttles the rest indefinitely -- all the messages received after the first 100 are dropped. How do I accomplish the goal above?

logstash 2.4.0  
throttle 4.0.1

```
filter {
  throttle {
    after_count => 100
    period => 10
    key => "%{type}"
    add_tag => "throttled"
  }
  if "throttled" in [tags] {
    drop { }
  }
}

```

---

<div class="post-metadata">

### Author: ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)
#### Post date: [November 2, 2016, 10:14am UTC](https://discuss.elastic.co/t/logstah-throttle-filter-dropping-messages-indefinitely/64585/2 "2016-11-02T10:14:03Z")

</div>

are you using multiple workers (-w \> 1) ?

---

<div class="post-metadata">

### Author: ![rcanzanese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcanzanese/32/12626_2.png) [@rcanzanese](https://discuss.elastic.co/u/rcanzanese)
#### Post date: [November 2, 2016, 3:26pm UTC](https://discuss.elastic.co/t/logstah-throttle-filter-dropping-messages-indefinitely/64585/3 "2016-11-02T15:26:55Z")

</div>

Yes, using multiple workers.

---

<div class="post-metadata">

### Author: ![Thomas\_Schneider](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@Thomas\_Schneider](https://discuss.elastic.co/u/Thomas_Schneider)
#### Post date: [January 19, 2017, 12:12pm UTC](https://discuss.elastic.co/t/logstah-throttle-filter-dropping-messages-indefinitely/64585/4 "2017-01-19T12:12:05Z")

</div>

+1  
Same Question here

---

<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, 4:29am UTC](https://discuss.elastic.co/t/logstah-throttle-filter-dropping-messages-indefinitely/64585/5 "2017-07-06T04:29:16Z")

</div>


