Updated to make compatible logstash 1.3.1

Updated filters syntax to use conditionals