# No output defined error in filebeat

**URL:** <https://discuss.elastic.co/t/no-output-defined-error-in-filebeat/63417>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 19, 2016, 3:51pm UTC](https://discuss.elastic.co/t/no-output-defined-error-in-filebeat/63417 "2016-10-19T15:51:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@rai](https://discuss.elastic.co/u/rai)\
**Post date:** [October 19, 2016, 3:51pm UTC](https://discuss.elastic.co/t/no-output-defined-error-in-filebeat/63417/1 "2016-10-19T15:51:33Z")

</div>

I have downloaded filebeat 5.0.0.rc and trying to configure kafka as output. Even though I have configured kafka as output but keep getting . I have tried but kee

Error Initialising publisher: No outputs are defined. Please define one under the output section.  
beat.go:161: CRIT No outputs are defined. Please define one under the output section.

here is my filebeat.yml file

> filebeat.prospectors:
> 
> - input\_type: log  
> paths:
> - /var/log/\*.log

> output.kafka:  
> hosts: ["localhost:9092"]  
> max\_retries: 0  
> topic: test  
> use\_type: true  
> worker: 1  
> client\_id: beats

I have wasted almost a day on this. Any help is highly appreciated.

---

<div class="post-metadata">

**Author:** ![rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@rai](https://discuss.elastic.co/u/rai)\
**Post date:** [October 19, 2016, 3:54pm UTC](https://discuss.elastic.co/t/no-output-defined-error-in-filebeat/63417/2 "2016-10-19T15:54:02Z")

</div>

by some how the indent of host under output hasn't shown up.

output.kafka:  
hosts: ["localhost:9092"]  
max\_retries: 0  
topic: test  
use\_type: true  
worker: 1  
client\_id: beats

---

<div class="post-metadata">

**Author:** ![rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@rai](https://discuss.elastic.co/u/rai)\
**Post date:** [October 19, 2016, 4:42pm UTC](https://discuss.elastic.co/t/no-output-defined-error-in-filebeat/63417/3 "2016-10-19T16:42:39Z")

</div>

I am able to figure out the issue. closing this.

---

<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:** [November 9, 2016, 3:51pm UTC](https://discuss.elastic.co/t/no-output-defined-error-in-filebeat/63417/4 "2016-11-09T15:51:56Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
