# Logstash output ~~ Logstash input

**URL:** <https://discuss.elastic.co/t/logstash-output-logstash-input/31887>\
**Category:** Logstash\
**Created:** [October 9, 2015, 2:24am UTC](https://discuss.elastic.co/t/logstash-output-logstash-input/31887 "2015-10-09T02:24:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![treehouse](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@treehouse](https://discuss.elastic.co/u/treehouse)\
**Post date:** [October 9, 2015, 2:24am UTC](https://discuss.elastic.co/t/logstash-output-logstash-input/31887/1 "2015-10-09T02:24:12Z")

</div>

Hi

Our architecture:

- One logstash instance accepting all of the log-courier shippers from N machines.
- Output from this logstash into two unique logstash instances, \> stage and \> production.
- Each of these instances \> stage and \> production will feed stage and production elasticsearch clusters respectively.

Question(s):

What is the best way to output from one logstash instance into the input of another logstash instance. I was thinking of probably using the lumberjack output to the lumberjack input, but does anyone have any other ideas? Curious if many people have done this before? And as to other thoughts on setting up a stage environment, is there a better way of doing it?  
thank you!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 9, 2015, 2:58am UTC](https://discuss.elastic.co/t/logstash-output-logstash-input/31887/2 "2015-10-09T02:58:01Z")

</div>

I'd put a broker in there to decouple it, redis/kafka/MQ.

---

<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:27am UTC](https://discuss.elastic.co/t/logstash-output-logstash-input/31887/3 "2017-07-06T05:27:04Z")

</div>


