I got a very simple requirement I need to achieve following
> if(doc["logSourceGroup"].value =="Palo Alto Firewall Group" OR doc["logSourceGroup"].value =="ASA Firewall"){return "Firewall";}
> else if (doc["logSourceGroup"].value =="Windows Server" OR doc["logSourceGroup"].value =="Linux Server"; ){return "OS";}
with above in Kibana I am getting an error that says Cannot support OR . Can someone provide some guidance what is the correct syntax to use multiple values with OR in ifelse statement .
I tried removing double quote with single but no luck .
Actually problem was with extra ; I removed it and now it is working . So here is the actual syntax .
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.