# Every message being throttled

**URL:** <https://discuss.elastic.co/t/every-message-being-throttled/48167>\
**Category:** Logstash\
**Created:** [April 22, 2016, 12:34pm UTC](https://discuss.elastic.co/t/every-message-being-throttled/48167 "2016-04-22T12:34:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgrant](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@kgrant](https://discuss.elastic.co/u/kgrant)\
**Post date:** [April 22, 2016, 12:34pm UTC](https://discuss.elastic.co/t/every-message-being-throttled/48167/1 "2016-04-22T12:34:33Z")

</div>

Hi, I'm new at using logstash. I'm trying to use throttling in my filter and every message is getting throttled for some reason. Do I have an error in my config?

I was expecting every 2nd, 3rd, and 4th message containing "STUFF" to have the tag "SEND\_EMAIL" added to it. But instead every message has the tag "throttled".

```
if "STUFF" in [message] {
    throttle {
      before_count => 2
      after_count => 4
      period => 600
      key => "%{message}"
      add_tag => "throttled"
    }
  }

if "throttled" not in [tags] {
   mutate {
      add_tag => "SEND_EMAIL"
   }
}
```

---

<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, 5:01am UTC](https://discuss.elastic.co/t/every-message-being-throttled/48167/2 "2017-07-06T05:01:06Z")

</div>


