Kafka Output Plugin -> Issues with Bootstrap_Server

Hi, I am trying to use the logstash-output-kafka

////My codes
input {
stdin {}
}

output {
kafka {
topic_id => "mytopic"
bootstrap_server => ":9092"
}
}

However, when executing this configuration, I am getting this error:

//////Output
[ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Something is wrong with your configuration."

I tried to change ":9092" to "localhost:9092", but that also fails to connect to kafka. Only when I remove the bootstrap_server configuration (which then defaults to localhost:9092) then the kafka connection seems to be established.

Is there something wrong with the bootstrap_server configuration of the kafka output plugin? i am using logstash v6.4.1, logstash-output-kafka v7.1.3

It's bootstrap_servers, not bootstrap_server.

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