# redef

**URL:** <https://community.zeek.org/t/redef/137>\
**Category:** Zeek\
**Created:** [March 8, 2001, 5:15pm UTC](https://community.zeek.org/t/redef/137 "2001-03-08T17:15:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kerberos\_kkk](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@kerberos\_kkk](https://community.zeek.org/u/kerberos_kkk)\
**Post date:** [March 8, 2001, 5:15pm UTC](https://community.zeek.org/t/redef/137/1 "2001-03-08T17:15:32Z")

</div>

hi,

Can we do a redef of a variable in side an event ?  
I am getting a parse error when i do this.  
whereas outside the event/fucntion i am able to do the redef.

Thanks for all the help

---

<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:36pm UTC](https://community.zeek.org/t/redef/137/2 "2022-05-06T15:36:17Z")

</div>


