Ignore the entire message if one field is nil

Hi, Im filtering some CSV files,and Im getting some nil fields, and if some field is nil the entire message is worthless, so how can I ignore the entire message if one of the fields value is nil?

Thanks!

if ![field_name] { drop { } }

I end up using ruby

ruby {
          code => "event.cancel if event.get('ifInUtilizationPct').nil?"
        }
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.