Hi,
How do I use arrays in conditionals in logstash?
I want to do the following:
if array[1] is not empty {
mutate { .... }
}
Where array is created by using mutate split.
Thanks,
James
Hi,
How do I use arrays in conditionals in logstash?
I want to do the following:
if array[1] is not empty {
mutate { .... }
}
Where array is created by using mutate split.
Thanks,
James
Assuming it's an array of strings this should work:
if [array][1] != "" {
© 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.