fluentd-kubernetes-sumologic icon indicating copy to clipboard operation
fluentd-kubernetes-sumologic copied to clipboard

Kubernetes_meta and Kubernetes_meta_reduce break when condition is met.

Open miguelortize opened this issue 6 years ago • 0 comments

If KUBERNETES_META is set to false and KUBERNETES_META_REDUCE is set to true, the second condition will fail as the value will not exist anymore when the first if is matched. https://github.com/SumoLogic/fluentd-kubernetes-sumologic/blob/6a0d2c078e3008d1383b954d5eba68bd0a69661b/lib/fluent/plugin/filter_kubernetes_sumologic.rb#L178

https://github.com/SumoLogic/fluentd-kubernetes-sumologic/blob/6a0d2c078e3008d1383b954d5eba68bd0a69661b/lib/fluent/plugin/filter_kubernetes_sumologic.rb#L182

Can this be adjusted through an if for the second iteration to check it exists?

miguelortize avatar Feb 21 '19 02:02 miguelortize