# Metrics filter not working on 5.5

**URL:** https://discuss.elastic.co/t/metrics-filter-not-working-on-5-5/97042
**Category:** Logstash
**Created:** [August 15, 2017, 1:33am UTC](https://discuss.elastic.co/t/metrics-filter-not-working-on-5-5/97042 "2017-08-15T01:33:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rohit\_Goel](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rohit\_Goel](https://discuss.elastic.co/u/Rohit_Goel)
#### Post date: [August 15, 2017, 1:33am UTC](https://discuss.elastic.co/t/metrics-filter-not-working-on-5-5/97042/1 "2017-08-15T01:33:58Z")

</div>

Hello,  
I am trying to use metrics plugin with logstash 5.5 and it does not look to be working.  
Below is my original code  
metrics {  
meter =\> ["http\_%{responsecode}"]  
add\_tag =\> "globanetmetrics"  
flush\_interval =\> 300  
clear\_interval =\> 300  
}  
Through stdout and in kibana I have verified that responsecode field exists. But this tag is not getting added.  
To avoid any data issue, I changed the above filter to  
metrics {  
add\_field =\> { "rohit\_test" =\> "test" }  
add\_tag =\> "globanetmetrics"  
}  
But even with this the new field or tag is not getting added, the data can still be seen in kibana and stdout does not give any error.

Please let me know if I am missing anything.

Thank you in advance.

---

<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: [September 12, 2017, 1:34am UTC](https://discuss.elastic.co/t/metrics-filter-not-working-on-5-5/97042/2 "2017-09-12T01:34:01Z")

</div>

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