If you are saying that the mutate+add_field is adding the literal value "%{[@metadata][host][1]}" when the field [@metadata][host][1] does not exist then that is expected. You can avoid it by testing whether the field exists
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.