# Getting \_grokparsefailure on adding a tag

**URL:** <https://discuss.elastic.co/t/getting--grokparsefailure-on-adding-a-tag/58967>\
**Category:** Elasticsearch\
**Created:** [August 25, 2016, 5:53pm UTC](https://discuss.elastic.co/t/getting--grokparsefailure-on-adding-a-tag/58967 "2016-08-25T17:53:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leadfootd1](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@leadfootd1](https://discuss.elastic.co/u/leadfootd1)\
**Post date:** [August 25, 2016, 5:53pm UTC](https://discuss.elastic.co/t/getting--grokparsefailure-on-adding-a-tag/58967/1 "2016-08-25T17:53:24Z")

</div>

Here is a filer statement

filter {  
grok {  
add\_tag =\> ["name"]  
}  
}  
output {  
elasticsearch {  
hosts =\> 'host'  
flush\_size =\> 500  
}  
}

Can anyone help?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 25, 2016, 6:10pm UTC](https://discuss.elastic.co/t/getting--grokparsefailure-on-adding-a-tag/58967/2 "2016-08-25T18:10:42Z")

</div>

Please edit your post and move it to the Logstash category where it belongs.

Why are you using a grok filter just to add a tag? Use a mutate filter instead, or add a `match` option to actually use the grok filter as a grok 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:** [July 5, 2017, 10:25pm UTC](https://discuss.elastic.co/t/getting--grokparsefailure-on-adding-a-tag/58967/3 "2017-07-05T22:25:10Z")

</div>


