# \[Elapsed Plugin\] Is it possible to add TAG to start event when end event match?

**URL:** https://discuss.elastic.co/t/elapsed-plugin-is-it-possible-to-add-tag-to-start-event-when-end-event-match/90690
**Category:** Logstash
**Created:** [June 24, 2017, 12:20am UTC](https://discuss.elastic.co/t/elapsed-plugin-is-it-possible-to-add-tag-to-start-event-when-end-event-match/90690 "2017-06-24T00:20:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![daian.martinho](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@daian.martinho](https://discuss.elastic.co/u/daian.martinho)
#### Post date: [June 24, 2017, 12:20am UTC](https://discuss.elastic.co/t/elapsed-plugin-is-it-possible-to-add-tag-to-start-event-when-end-event-match/90690/1 "2017-06-24T00:20:21Z")

</div>

I'm using elapsed plugin.

I have start event, and end event.

```
  if [trigger_status] == "PROBLEM" {
       mutate{ add_tag => ["taskStarted"]}
  }
  if [trigger_status] == "OK" {
       mutate{ add_tag => ["taskTerminated"]}
  }

   elapsed {
       start_tag => "taskStarted"
       end_tag => "taskTerminated"
       unique_id_field => "trigger_id"
   }

```

Is it possible to add TAG at start event when end event get match?  
maybe, searching for the last trigger\_id and adding the tag...

---

<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 22, 2017, 12:20am UTC](https://discuss.elastic.co/t/elapsed-plugin-is-it-possible-to-add-tag-to-start-event-when-end-event-match/90690/2 "2017-07-22T00:20:23Z")

</div>

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