Closed romerosergio closed 6 years ago
Update /opt/bro/lib/bro/plugins/Bro_Kafka/scripts/init.bro
to include a constant for logs_to_send (line 4):
module Kafka;
export {
const logs_to_send: set[Log::ID] &redef;
const topic_name: string = "" &redef;
const max_wait_on_shutdown: count = 3000 &redef;
const tag_json: bool = F &redef;
const kafka_conf: table[string] of string = table(
["metadata.broker.list"] = "localhost:9092"
) &redef;
const json_timestamps: JSON::TimestampFormat = JSON::TS_EPOCH &redef;
}
It looks like the bro-plugin-kafka RPM that gets installed drops that file and it doesn't include that logs_to_send
variable:
[root@bridged-rocknsm-v2 ~]# rpm -qf /opt/bro/lib/bro/plugins/Bro_Kafka/scripts/init.bro
bro-plugin-kafka-2.5-1.el7.centos.x86_64
Might have something to do with this commit? I'm not positive --> https://github.com/apache/metron-bro-plugin-kafka/commit/b145bf01f888591cbdf39ea663b34ae02254e0ea#diff-e40b343cebacb5b8a3edf6d7387b3b4c
@wesleyraptor that's a really good catch and I think that is what broke it. There's an updated RPM in the testing repo that should align with the upstream metron plugin. Can you try that to see if it fixes it for you?
Worked perfectly after that change, so i believe that's the issue and what broke it.
Thanks for the help
System: Centos 7.4 fully updated rock cloned by git and ./deploy_rock.sh
Messages: