# Feed one input event into another input

**URL:** <https://discuss.elastic.co/t/feed-one-input-event-into-another-input/44611>\
**Category:** Logstash\
**Created:** [March 16, 2016, 8:05pm UTC](https://discuss.elastic.co/t/feed-one-input-event-into-another-input/44611 "2016-03-16T20:05:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sk\_nag](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sk\_nag](https://discuss.elastic.co/u/sk_nag)\
**Post date:** [March 16, 2016, 8:05pm UTC](https://discuss.elastic.co/t/feed-one-input-event-into-another-input/44611/1 "2016-03-16T20:05:46Z")

</div>

I am looking for a way to read from a file and use the content to query elasticsearch. Basically, feeding the data from file input to elastic input.

How does one achieve this in logstash ? Any help would be appreciated.

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:06am UTC](https://discuss.elastic.co/t/feed-one-input-event-into-another-input/44611/2 "2017-07-06T05:06:43Z")

</div>


