# Pipeline throttle not working properly

**URL:** https://discuss.elastic.co/t/pipeline-throttle-not-working-properly/218193
**Category:** Logstash
**Created:** [February 6, 2020, 2:22pm UTC](https://discuss.elastic.co/t/pipeline-throttle-not-working-properly/218193 "2020-02-06T14:22:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Henrique\_Gossi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henrique_gossi/32/62206_2.png) [@Henrique\_Gossi](https://discuss.elastic.co/u/Henrique_Gossi)
#### Post date: [February 6, 2020, 2:22pm UTC](https://discuss.elastic.co/t/pipeline-throttle-not-working-properly/218193/1 "2020-02-06T14:22:49Z")

</div>

Using throttle filter, same events get the tag "throttled" and some others don't.

follow the content from throttle conf file:

```
filter {
  throttle {
    before_count => -1
    after_count => 1
    period => "86400" # 1 day
    max_age => 172800 # 2 days
    add_tag => ["throttled"]
    key => "%{_id}%{message}"
  }
}

```

Example:

I send this 4 following events logs:

```
{
	"@timestamp": "2020-02-06T13:15:39.691Z",
	"_id": "10b75bn7",
	"message": "Security Policy 'Filebeat_LAN' was Enable by 'admin' from '192.168.234.9' using 'GUI'"
}

{
	"@timestamp": "2020-02-06T13:15:44.163Z",
	"_id": "10b75bn7",
	"message": "Security Policy 'Filebeat_LAN' was Disable by 'admin' from '192.168.234.9' using 'GUI'"
}

{
	"@timestamp": "2020-02-06T13:15:48.499Z",
	"_id": "10b75bn7",
	"message": "Security Policy 'Filebeat_LAN' was Enable by 'admin' from '192.168.234.9' using 'GUI'"
}

{
	"@timestamp": "2020-02-06T13:15:52.879Z",
	"_id": "10b75bn7",
	"message": "Security Policy 'Filebeat_LAN' was Disable by 'admin' from '192.168.234.9' using 'GUI'"
}

```

after the filter I drop all events with the tag "throttled".  
The problem is that only the second "Disable" log event get the tag "throttled", this way the second "Enable" log passes through the filter.

---

<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 5, 2020, 2:23pm UTC](https://discuss.elastic.co/t/pipeline-throttle-not-working-properly/218193/2 "2020-03-05T14:23:01Z")

</div>

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