I have defined two drop_event conditions to exclude a subset of logs from making it to elastic:
processors:
- add_kubernetes_metadata:
in_cluster: true
namespace: ${POD_NAMESPACE}
- drop_event:
when:
equals:
kubernetes.container.name: "filebeat"
- drop_event:
when:
not:
has_fields: ["kubernetes.namespace"]
First condition works fine, but after adding the second drop_event item, I'm getting
ERROR processors/condition.go:450 Failed to initialize lookup condition: missing condition
I'm not sure why it says condition is missing. Can I not combine not and has_fields?