Would like to ask for your help with regards on having an if else condition on Filebeat’s output to elasticsearch. Would like to check if fields.age ==10 the output to be one array of hosts else other array of hosts
If fields.age ==10:
Output.elasticsearch:
Hosts:[“http:es01:9200”]
Else:
Output.elasticsearch:
Hosts: [“es01:9200, es02:9200”]
As you can see what I want to do is to check if a variable from an XPATH equals a value.
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.