Bro scripts to write logs to Kafka fails

Hello folks:

I just installed zeek from source on a CentOS7.5 platform. Everything works fine. I can confirm that the logs are getting populated with http, dns etc. data.

I am trying to write the data to a remote Kafka topic. I believe I compiled everything correctly based on the following link:

And I am getting the expected return when I execute:

$ bro -N Apache::Kafka
Apache::Kafka - Writes logs to Kafka (dynamic, version 0.3)

Next, I edited /usr/local/bro/share/bro/site/local.bro and appended the following:

@load packages/metron-bro-plugin-kafka/Apache/Kafka redef Kafka::logs_to_send = set(HTTP::LOG, DNS::LOG); redef Kafka::kafka_conf = table( [“”] = “XX.XX.XX.XX:9092” );

Unfortunately, this part doesn’t work:

[root@localhost scripts]# broctl check
Warning: broctl config has changed (run the broctl “deploy” command)
bro scripts failed.
fatal error in /usr/local/bro/share/bro/site/local.bro, line 7: can’t find packages/metron-bro-plugin-kafka/Apache/Kafka

Has this happened to anyone before? Is there a fix for this?


Had some issues with this last week when building our ARM/ICS/IOT sensor.

Let me see if I can run down some notes.

Did you install it manually or with bro-pkg? Also, is this master or a specific release?

Try changing that to just…

@load Apache/Kafka

Plugins are automatically added to the load path.