# a tree structure with Bro records

**URL:** <https://community.zeek.org/t/a-tree-structure-with-bro-records/1269>\
**Category:** Zeek\
**Created:** [November 30, 2007, 6:01pm UTC](https://community.zeek.org/t/a-tree-structure-with-bro-records/1269 "2007-11-30T18:01:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vern](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/vern/32/630_2.png) [@Vern](https://community.zeek.org/u/Vern)\
**Post date:** [November 30, 2007, 6:01pm UTC](https://community.zeek.org/t/a-tree-structure-with-bro-records/1269/1 "2007-11-30T18:01:16Z")

</div>

> You could fake it up using table[string] of XYZ, where XYZ records include  
> a string that point back into the table. Not pretty, but seems it should  
> work.

(or, slightly easier, a table[count] of XYZ, along with a counter that you  
just increment every time you add a new node, which becomes its identifier)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:38pm UTC](https://community.zeek.org/t/a-tree-structure-with-bro-records/1269/2 "2022-05-06T15:38:26Z")

</div>


