# &write\_expire and &expire\_Func

**URL:** <https://community.zeek.org/t/write-expire-and-expire-func/3004>\
**Category:** Zeek\
**Created:** [February 14, 2014, 4:19pm UTC](https://community.zeek.org/t/write-expire-and-expire-func/3004 "2014-02-14T16:19:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaleta\_Bennett](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Shaleta\_Bennett](https://community.zeek.org/u/Shaleta_Bennett)\
**Post date:** [February 14, 2014, 4:19pm UTC](https://community.zeek.org/t/write-expire-and-expire-func/3004/1 "2014-02-14T16:19:32Z")

</div>

I’m very new to Bro as this is one of my first scripts. Can anyone explain to me how the &write\_expire and &expire\_func work on a table? I would like to change a value in a table when an event occurs and pass the table into a function.

Thanks!

---

<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:41pm UTC](https://community.zeek.org/t/write-expire-and-expire-func/3004/2 "2022-05-06T15:41:35Z")

</div>


