Filebeat filtering, drop event processor script

Whats the mapping on event.code, are you sure its indexed as text maybe you are trying to do an equation using a string and a number.