# Is it possible to access cloned event to add some more fields to it later on

**URL:** https://discuss.elastic.co/t/is-it-possible-to-access-cloned-event-to-add-some-more-fields-to-it-later-on/247313
**Category:** Logstash
**Created:** [September 3, 2020, 1:53am UTC](https://discuss.elastic.co/t/is-it-possible-to-access-cloned-event-to-add-some-more-fields-to-it-later-on/247313 "2020-09-03T01:53:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pk.241011](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pk.241011/32/86285_2.png) [@pk.241011](https://discuss.elastic.co/u/pk.241011)
#### Post date: [September 3, 2020, 1:53am UTC](https://discuss.elastic.co/t/is-it-possible-to-access-cloned-event-to-add-some-more-fields-to-it-later-on/247313/1 "2020-09-03T01:53:53Z")

</div>

Hi All,

I have cloned an event and removed a field from it. Now I am wondering if I can later on access this cloned event in the logstash and add another field to it.

```
    clone
    {
            clones => ["cloned"]
            add_tag => ["cloned"]
            remove_field => ["baseXml"]
    }

```

Somehow I feel it is created and gets emitted with no chance of adding any field later.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [September 3, 2020, 3:15am UTC](https://discuss.elastic.co/t/is-it-possible-to-access-cloned-event-to-add-some-more-fields-to-it-later-on/247313/2 "2020-09-03T03:15:19Z")

</div>

You can access the cloned event without any problems, like you would do with any other event.

The cloned event will be inserted in your pipeline like a normal event and will be processed by your pipeline starting from the first filter after the `clone` filter that generated the event.

If you want to access just a cloned event you need to use a conditional based on the tag.

```auto
if "cloned" in [tags] {
  filters
}

```

---

<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: [October 1, 2020, 3:15am UTC](https://discuss.elastic.co/t/is-it-possible-to-access-cloned-event-to-add-some-more-fields-to-it-later-on/247313/3 "2020-10-01T03:15:22Z")

</div>

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