I need an if else statement to check if a sub field exists. I want ed to know if a sub-field "city_name" exists in main field dst_geoip. Below is what I'm trying to do
if ![dst_geoip][city_name] {mutate{add_field => { "[dst_geoip][city_name]" => "nil" }}}
Anyone knows the right way to write the if else statement
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.