# Persistent state and bro\_init().

**URL:** <https://community.zeek.org/t/persistent-state-and-bro-init/918>\
**Category:** Zeek\
**Created:** [January 28, 2006, 8:52pm UTC](https://community.zeek.org/t/persistent-state-and-bro-init/918 "2006-01-28T20:52:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Kreibich3](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@Christian\_Kreibich3](https://community.zeek.org/u/Christian_Kreibich3)\
**Post date:** [January 28, 2006, 8:52pm UTC](https://community.zeek.org/t/persistent-state-and-bro-init/918/1 "2006-01-28T20:52:40Z")

</div>

Hi,

I have two policy files: one that builds up persistent state and one  
that uses this previously generated persistent state. I want to ensure  
that in repeated invocations of the first script, the persistent data  
structure is cleared.

I could do this in bro\_init(). Is persistent state all set up and ready  
by the time bro\_init event handlers are executed?

Cheers,  
Christian.

---

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [January 29, 2006, 4:24am UTC](https://community.zeek.org/t/persistent-state-and-bro-init/918/2 "2006-01-29T04:24:31Z")

</div>

Yes.

Robin

---

<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:37pm UTC](https://community.zeek.org/t/persistent-state-and-bro-init/918/3 "2022-05-06T15:37:46Z")

</div>


