Please share your full pipeline, it is not possible to understand what is happening without context.
Your mutate error means that logstash is trying to access the data field as it is an array, and get the second element, but this second element does not exist, which could mean that the data field is not an array.
But you need to share your full pipeline to show how you are creating this data field.
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.