No output defined error in filebeat

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.

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

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

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