How to make Logstash multiple output?

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

And what is the problem?

1 Like

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