Hi All,
Could you please tell me what is wrong with the following IF condition
if [ DOCUMENT_MODEL ] == "10000" { mutate { replace => { "DOCUMENT_MODEL" => "INVOICE" } } }
Even though the DOCUMENT_MODEL is equal to 10000, it doesn't go to the replace.
Thanks
If DOCUMENT_MODEL is an integer then that would have to be
if [DOCUMENT_MODEL] == 10000 {
Note also that I removed the spaces inside the (if your field names really contain spaces then obviously you will need the spaces).
Hi @Badger, Thank you so much. Indeed the problem was spaces. Regars
© 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.