# Topbeat limit filter

**URL:** <https://discuss.elastic.co/t/topbeat-limit-filter/134815>\
**Category:** Logstash\
**Created:** [June 6, 2018, 1:26pm UTC](https://discuss.elastic.co/t/topbeat-limit-filter/134815 "2018-06-06T13:26:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andres\_c](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@andres\_c](https://discuss.elastic.co/u/andres_c)\
**Post date:** [June 6, 2018, 1:26pm UTC](https://discuss.elastic.co/t/topbeat-limit-filter/134815/1 "2018-06-06T13:26:44Z")

</div>

hello i need help i am new  
I'm trying to add a threshold to the topbeat logstash filter, I want to add a message to tags but do not add it to me  
This is the filter I have:

filter {  
if "topbeat" in [tags]{  
if [{mem}{used} \> 1] {  
mutate {  
add\_tag =\> ["memory\_full"]  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 6, 2018, 11:10pm UTC](https://discuss.elastic.co/t/topbeat-limit-filter/134815/2 "2018-06-06T23:10:41Z")

</div>

Topbeat has been deprecated and you should really upgrade to metricbeat.

Also I don't believe that the field reference `{mem}{used}` is valid, see [https://www.elastic.co/guide/en/logstash/6.2/event-dependent-configuration.html](https://www.elastic.co/guide/en/logstash/6.2/event-dependent-configuration.html)

---

<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 4, 2018, 11:10pm UTC](https://discuss.elastic.co/t/topbeat-limit-filter/134815/3 "2018-07-04T23:10:45Z")

</div>

Closed on July 4, 2018, 11:10pm UTC

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