I am using Logstash 2.1.1 and kafka version 2.10-0.8.2.1. I am getting following syntax error. What are the minumum required settings for kafka plugin.
Error :
For input.conf
bash-3.2$ bin/logstash -f ../l1.conf --configtest
Unknown setting 'zk_connect' for kafka {:level=>:error}
Error: Something is wrong with your configuration.
For output.conf
bash-3.2$ bin/logstash -f ../l2.conf --configtest
Error: The setting message_format in plugin kafka is obsolete and is no longer available. Setting is no longer valid. If you have any questions about this, you are invited to visit https://discuss.elastic.co/c/logstash and ask.
I want to know simple config for kafka.
1: Listen syslong event at certain port
2: Put this syslog message to kafka topic
3: Pick message from Kafka topic
4: Parse it
5: Put it in elasticsearch
bash-3.2$ bin/logstash -f ../l1.conf --configtest
Unknown setting 'zk_connect' for kafka {:level=>:error}
Error: Something is wrong with your configuration.
I'm actually at a similar stage. From looking at previous examples on the internet, it looks like there was a previous value brooker_list where you would assign the address of your kafka queue. However, now it seems to have changed to bootstrap_server.
Yeah always refer to the plugin doc for your version. Generally changes are made on the logstash side for configuration keys to match what configuration values are used in Kafka.
Under bootstrap_servers it says, "This is for bootstrapping and the producer will only use it for getting metadata (topics, partitions and replicas). The socket connections for sending the actual data will be established based on the broker information returned in the metadata. The format is host1:port1,host2:port2, and the list can be a subset of brokers or a VIP pointing to a subset of brokers."
However, does this mean that where I would previously have put the host and post opposite brooker_list, I now use bootstrap_servers?
Yes they are functionally equivalent but the new name more accurately describing the function of the parameter. Whereas previous broker_list implies you supply a list of brokers to communicate with, the new one more accurately describes what is happening, ie you provide a list of servers to bootstrap from. In both situations the Kafka producer was just using the servers to get the latest metadata.
So yes, whatever your broker_list was, you can use that value in bootstrap_servers.
logstash input plugin for kafka is not working for me: Here is my conf file:
input {
kafka { topic_id => 'logstashlogs' }
}
output {
stdout{}
}
Nothing comes up to the screen, just lostash starts, no error, nothing is coming up to the screen. Kafka topic(logstashlogs) have data. I am able to inject data into kafka queue using logstash but not able to read it. Any suggestions?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.