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!
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?"
}
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.