Hi,
I’m trying use the zeek broker with python but I’m running into an issue even with basic code from the zeek docs. I’m using the ping.zeek in section 6.3 here: 6. Python Bindings — Broker User Manual
Reposted here:
# ping.zeek
redef exit_only_after_terminate = T;
global pong: event(n: int);
event ping(n: int)
{
event pong(n);
}
event zeek_init()
{
Broker::subscribe("/topic/test");
Broker::listen("127.0.0.1", 9999/tcp);
Broker::auto_publish("/topic/test", pong);
}
However when I run it, I get this and it doesn’t seem to work since the python side doesn’t connect:
> zeek zeek/ping.zeek
warning in ./zeek/ping.zeek, line 7: handler for non-existing event cannot be invoked (ping)
I’m using zeek 6.2.1. Is this a known issue or am I doing something wrong?