I’m using Zeek version 6.0.2-1.el9.x86_64, and I’m trying to use tcpreplay in combination with Zeek.
I’ve set up two machines on the same network:
One machine runs tcpreplay with a .pcap file
The other runs Zeek to capture and analyze the traffic
However, I noticed that Zeek does not generate any log files (e.g., http.log or conn.log) while it’s running.
The logs only appear after I stop Zeek using zeekctl stop.
Is there a way to make Zeek write logs in real time without needing to stop it?
Hey @trong - there’s also something off with the HTTP connection in your pcap - supposedly there should just be a single connection contained, but the syn/ack packet is between 1.73.137.2 and 1.73.137.2, rather than 58.186.9.210 and 1.73.137.2. Did you construct that on purpose? There’s also weird.log entries due to that. It probably causes some timeout behavior that prevents immediate logging of the log entries, but they should eventually be produced even when using tcpreplay.
I encountered the same errors with this PCAP file. I tried using tcpreplay, and I expected the logs to be created on the second replay. However, the logs only appeared after I replayed the file for the third time. So on , I cannot setup timeout for this process @@ tc19-get-full.pcap (1.6 KB)