# How to make Logstash multiple output?

**URL:** <https://discuss.elastic.co/t/how-to-make-logstash-multiple-output/174985>\
**Category:** Logstash\
**Created:** [April 2, 2019, 12:19pm UTC](https://discuss.elastic.co/t/how-to-make-logstash-multiple-output/174985 "2019-04-02T12:19:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allfreed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allfreed/32/42601_2.png) [@allfreed](https://discuss.elastic.co/u/allfreed)\
**Post date:** [April 2, 2019, 12:19pm UTC](https://discuss.elastic.co/t/how-to-make-logstash-multiple-output/174985/1 "2019-04-02T12:19:16Z")

</div>

Hello , i want to make multiple output , for example elasticsearch and kafka.

I was created output.conf

```
 output {

```

elasticsearch {  
hosts =\> "ip:9200"  
index =\> "ubuntu18"  
}

kafka {  
bootstrap\_server =\> "ip:9092"  
codec =\> json  
topic\_id =\> "beats"  
}  
}

i want to sent localhost elasticsearch and remote address kafka

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 2, 2019, 12:51pm UTC](https://discuss.elastic.co/t/how-to-make-logstash-multiple-output/174985/2 "2019-04-02T12:51:02Z")

</div>

And what is the problem?

---

<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:** [April 30, 2019, 12:51pm UTC](https://discuss.elastic.co/t/how-to-make-logstash-multiple-output/174985/3 "2019-04-30T12:51:02Z")

</div>

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