can not read ":: ldap_writes": no such variable while executing "$ msgtype matchclass equals $:: ldap_writes is there a space between $ and msgtype and between $:: and ldap_writes? $msgtype and $::ldap_writes is one word (no space).
by the way, if you are using 9.4.4+, $:: prefix is no longer required. so, you can remove it.
from:
matchclass $msgtype equals $::ldap_writes
to:
matchclass $msgtype equals ldap_writes
CMP Compatibility
http://devcentral.f5.com/wiki/iRules.CMPCompatibility.ashx?From=iRules.CMP
I do not know where put it.it is called data group in webui. it is at local traffic > irules > data group list.