# How to push two inputs data as a single event(docment) in logstash.yml

**URL:** https://discuss.elastic.co/t/how-to-push-two-inputs-data-as-a-single-event-docment-in-logstash-yml/84272
**Category:** Logstash
**Created:** [May 2, 2017, 1:26pm UTC](https://discuss.elastic.co/t/how-to-push-two-inputs-data-as-a-single-event-docment-in-logstash-yml/84272 "2017-05-02T13:26:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kabali12345](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kabali12345](https://discuss.elastic.co/u/kabali12345)
#### Post date: [May 2, 2017, 1:26pm UTC](https://discuss.elastic.co/t/how-to-push-two-inputs-data-as-a-single-event-docment-in-logstash-yml/84272/1 "2017-05-02T13:26:21Z")

</div>

Hi.....all  
How can i push two inputs data as a single event(docment) in logstash.yml  
For example  
I have two indexes that must be separated:

```auto
// index = `order_item`
{
    "ID": 1,
    "Name": "Shoes",
    "Price": 9.99,
    "OrderID": 82
},{
    "ID": 1,
    "Name": "Hat",
    "Price": 19.99,
    "OrderID": 82
}

// index = `order`
{
    "ID": 82,
    "Customer": "John Smith"
}
How would I join these two tables on a single index such that entire data should be on single event:

results = {
    "ID": 1,
    "Name": "Shoes",
    "Price": 9.99,
    "Order.ID": 82,
    "Customer": "John Smith"
},{
    "ID": 1,
    "Name": "Hat",
    "Price": 19.99,
    "Order.ID": 82,
    "Customer": "John Smith"
}
```

---

<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: [May 30, 2017, 1:38pm UTC](https://discuss.elastic.co/t/how-to-push-two-inputs-data-as-a-single-event-docment-in-logstash-yml/84272/2 "2017-05-30T13:38:53Z")

</div>

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