<div dir="ltr">Thanks Jon and Anthony for the quick responses! print-log-info.bro looks promising for what I&#39;m trying to do.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 16 Oct 2019 at 22:37, Jon Siwek &lt;<a href="mailto:jsiwek@corelight.com">jsiwek@corelight.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Oct 16, 2019 at 12:48 PM Henri Dubois-Ferriere<br>
&lt;<a href="mailto:henridf@gmail.com" target="_blank">henridf@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I&#39;m trying to print the record type for each log stream at startup. Something like:<br>
&gt;<br>
&gt;  for ( id in Log::active_streams ) {<br>
&gt;                  local stream = Log::active_streams[id];<br>
&gt;                  print stream$path, stream$columns;<br>
&gt; }<br>
&gt;<br>
&gt; doesn&#39;t work because $columns is a record type, and gets stringified &quot;&lt;no value description&gt;&quot;.<br>
<br>
Zeek 3.0 should give better descriptions for types.  This was the<br>
relevant patch which is not in any 2.6.x version:<br>
<br>
  <a href="https://github.com/bro/bro/commit/1f450c05102be6dd7ebcc2c5901d5a3a231cd675" rel="noreferrer" target="_blank">https://github.com/bro/bro/commit/1f450c05102be6dd7ebcc2c5901d5a3a231cd675</a><br>
<br>
This script may also help demonstrate things related to what you&#39;re<br>
trying to do:<br>
<br>
  <a href="https://gist.github.com/jsiwek/f843b3321f4227b6ec32d110424ebf70" rel="noreferrer" target="_blank">https://gist.github.com/jsiwek/f843b3321f4227b6ec32d110424ebf70</a><br>
<br>
It prints field descriptions of all logs either to stdout or a CSV<br>
file.  Example command:<br>
<br>
  ZEEK_ALLOW_INIT_ERRORS=1 zeek print-log-info.bro PrintLogs::csv=F<br>
<br>
Sample of output:<br>
<br>
known_hosts.log | Hosts with complete TCP handshakes<br>
  ts: time - The timestamp at which the host was detected.<br>
  host: addr - The address that was detected originating or responding<br>
to a TCP connection.<br>
<br>
- Jon<br>
</blockquote></div>