<div dir="ltr">Hello,<div>I&#39;m reading a bunch of papers on interesting features for machine learning applied on network traffic. For example CSE-CIC (<a href="https://www.unb.ca/cic/datasets/ids-2018.html">https://www.unb.ca/cic/datasets/ids-2018.html</a>)</div><div><br><div>My question is: is it possible to add this type of statistic on conn.log?</div><div>- average packet size</div><div>- minimum packet size</div><div>- maximum packet size</div><div>- total time between two packets</div><div>- mean time between two packets etc.</div><div>- etc.</div><div><br></div><div>Reading in the documentation I saw this events <a href="https://docs.zeek.org/en/current/scripts/base/bif/plugins/Zeek_TCP.events.bif.zeek.html#id-tcp_packet">https://docs.zeek.org/en/current/scripts/base/bif/plugins/Zeek_TCP.events.bif.zeek.html#id-tcp_packet</a> but, as state by the documentation itself, it will lead to very poor performance.</div><div><br></div><div>The other code I think it could be relevant is the TCP analyzer: <a href="https://github.com/zeek/zeek/blob/1affbad4b7b8c8cf230ded8224c9c364607b67e9/src/analyzer/protocol/tcp/TCP.cc">https://github.com/zeek/zeek/blob/1affbad4b7b8c8cf230ded8224c9c364607b67e9/src/analyzer/protocol/tcp/TCP.cc</a> </div><div><div><br></div><div>I&#39;ve never contributed to Zeek before and I don&#39;t know the codebase at all, so do you think Zeek would be capable of generating this type of stats? Is TCP.cc the right place to implement those features? Are there issues I am overlooking?</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Federico Foschini.</div></div></div></div>