# Addtag based on which match expression was used?

**URL:** <https://discuss.elastic.co/t/addtag-based-on-which-match-expression-was-used/115769>\
**Category:** Logstash\
**Created:** [January 16, 2018, 6:07pm UTC](https://discuss.elastic.co/t/addtag-based-on-which-match-expression-was-used/115769 "2018-01-16T18:07:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nnet/32/25982_2.png) [@nnet](https://discuss.elastic.co/u/nnet)\
**Post date:** [January 16, 2018, 6:07pm UTC](https://discuss.elastic.co/t/addtag-based-on-which-match-expression-was-used/115769/1 "2018-01-16T18:07:37Z")

</div>

Hi folks,  
My match statement has an array of expressions. How can I addtag based on which expression was used?

Thanks

---

<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:** [February 13, 2018, 6:07pm UTC](https://discuss.elastic.co/t/addtag-based-on-which-match-expression-was-used/115769/2 "2018-02-13T18:07:51Z")

</div>

Closed on February 13, 2018, 6:07pm UTC

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