Logstash filter "if" condition to check if field exist or not

Is there any way in Logstash to check if a certain field exists or not?

My use-case:
I want to add a field "status: missing" when the field "httpStatus" doesn't come in the log document.

Hi,

You can try this:

if !  [httpStatus]  {}