How to create if conditional statement in logstash config file

Absolutely i tried in this way only.