What is the proper syntax of comparing multiple types in logstash ?
like,
if[type] == grafana OR netdata { # is this correct ?
}
else if[type] == {
}
else {
}
What is the proper syntax of comparing multiple types in logstash ?
like,
if[type] == grafana OR netdata { # is this correct ?
}
else if[type] == {
}
else {
}
Either
if [type] == "grafana" OR [type] == "netdata" {
or
if [type] in ["grafana", "netdata"] {
See https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 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.