update:
In addition, I also found that under a logical operation, there can only be one comparison condition, for example, the following "and" can only use one "equals".
I'm not sure if my understanding is correct, but I test the following statement cannot run filebeat.
Statements are just for testing, do not make any evaluation of significance.
I marked the update: section in the first post, everything after that is new questions, and my problem has been unsolved because I couldn't find any correct multi-conditional syntax to test successfully.
I only use one condition now and it is running successfully, but I want to know how to write the correct multi-condition syntax. I have sorted out some syntax formats according to the results of the forum search, but there will be corresponding problems when using it on filebeat 7.16.3.
For example this prompt expected string but got type []string in equals condition. I also made a lot of changes but I did not keep records.
Thanks, then there's nothing wrong with the not condition.
Another question, why does the following when.or not take effect? I didn't find the topic name "logs-hz" in kafka.
The condition looks good, but does the event really contain the field kubernetes.kubernetes.namespace? I would say that this field should be kubernetes.namespace.
This syntax looks mostly correct, but I think that in the second snippet, when should be at the same indentation level as topic, like this:
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.