# One input two outputs

**URL:** <https://discuss.elastic.co/t/one-input-two-outputs/36069>\
**Category:** Logstash\
**Created:** [December 1, 2015, 3:45pm UTC](https://discuss.elastic.co/t/one-input-two-outputs/36069 "2015-12-01T15:45:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 1, 2015, 3:45pm UTC](https://discuss.elastic.co/t/one-input-two-outputs/36069/1 "2015-12-01T15:45:25Z")

</div>

Not sure why my earlier post disappeared.... let me try again:

Our configuration: LS 2.0, ES 2.0, Kib 4.2

We have an input config file that processes trace logs produced by our application. We filter out the data we need and wish to write the data to two separate Indices in ES.

The trouble we have is in controlling unique fields that go into each index. Out Output section has two directives - one for each index. How can we direct only specific fields we need into each Index?!

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [December 1, 2015, 4:14pm UTC](https://discuss.elastic.co/t/one-input-two-outputs/36069/2 "2015-12-01T16:14:00Z")

</div>

@jjdepaul your previous post and this one incorrect got caught by the spam filter which is why they disappeared. I am going to close this one since your original post should be now visible on the forum too.

Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [December 1, 2015, 4:14pm UTC](https://discuss.elastic.co/t/one-input-two-outputs/36069/3 "2015-12-01T16:14:05Z")

</div>

Closed on December 1, 2015, 4:14pm UTC


