# Logstash generate two events on output

**URL:** https://discuss.elastic.co/t/logstash-generate-two-events-on-output/42172
**Category:** Logstash
**Created:** [February 18, 2016, 5:51pm UTC](https://discuss.elastic.co/t/logstash-generate-two-events-on-output/42172 "2016-02-18T17:51:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jeferson\_Martins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeferson_martins/32/5849_2.png) [@Jeferson\_Martins](https://discuss.elastic.co/u/Jeferson_Martins)
#### Post date: [February 18, 2016, 5:51pm UTC](https://discuss.elastic.co/t/logstash-generate-two-events-on-output/42172/1 "2016-02-18T17:51:44Z")

</div>

Hi,

There's a way in Logstash where input a Event and output two and these events with diferent informations?

For example:  
input event fields:

- name
- lastname
- adress
- age

output event 1 (output to ES 1):

- (new field type) users
- name
- lastname
- adress

output event 2 (output to ES 2):

- (new field type) ages
- name
- age

---

<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: [February 19, 2016, 6:37am UTC](https://discuss.elastic.co/t/logstash-generate-two-events-on-output/42172/2 "2016-02-19T06:37:33Z")

</div>

Yes, use the [clone filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-clone.html).

---

<div class="post-metadata">

### Author: ![Jeferson\_Martins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeferson_martins/32/5849_2.png) [@Jeferson\_Martins](https://discuss.elastic.co/u/Jeferson_Martins)
#### Post date: [February 19, 2016, 10:40am UTC](https://discuss.elastic.co/t/logstash-generate-two-events-on-output/42172/3 "2016-02-19T10:40:41Z")

</div>

Ok, 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: [July 6, 2017, 5:10am UTC](https://discuss.elastic.co/t/logstash-generate-two-events-on-output/42172/4 "2017-07-06T05:10:39Z")

</div>


