Fluent-bit: filter_kubernetes: filter based on specific namespaces

Created on 6 Sep 2018  路  4Comments  路  Source: fluent/fluent-bit

Fluent Bit Kubernetes filter should provide a way to allow process or skip certain records coming from specific namespaces.

enhancement

Most helpful comment

While a direct exclusion filter on namespaces in the k8s filter would be nice, I think the more meaningful approach is to support filtering on nested fields #483.
That would be way more generic and support a lot more use cases like filtering on labels, pod names, container names, whatever fields augmented by whatever plugin running before a grep exclude filter.

All 4 comments

Any progress here?

While a direct exclusion filter on namespaces in the k8s filter would be nice, I think the more meaningful approach is to support filtering on nested fields #483.
That would be way more generic and support a lot more use cases like filtering on labels, pod names, container names, whatever fields augmented by whatever plugin running before a grep exclude filter.

Vendor runs multiple components in Kube-system namespace and maintaining their logs is usually not required. I suggest using the K8S-Logging.Exclude label on namespace to disable logging on that namespace.

Current workaround:

  • Set INPUT as _routable off_ , so data only hit the stream processor
  • In the stream processor create a new stream like:
CREATE STREAM kube WITH(tag='kube-processed') FROM STREAM:tail-kubernetes WHERE kubernetes['namespace'] = 'something';
Was this page helpful?
0 / 5 - 0 ratings

Related issues

botzill picture botzill  路  4Comments

UladzimirSemiankou picture UladzimirSemiankou  路  3Comments

mhf-ir picture mhf-ir  路  4Comments

Bulat-Gumerov picture Bulat-Gumerov  路  4Comments

mbelchin picture mbelchin  路  3Comments