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

Feature request: Create branch or repo using fluentd driver instead of tailing logs

Open ryanwalls opened this issue 8 years ago • 4 comments

Would love to see an example where containers on a k8s cluster are set to use the fluentd logging driver.

ryanwalls avatar Feb 07 '17 14:02 ryanwalls

I'm not sure this will work as we require the container ID to query kubernetes metadata from the master. Does that exist in the fluentd logging driver?

stevezau avatar Feb 07 '17 23:02 stevezau

@stevezau Yep, see https://docs.docker.com/engine/admin/logging/log_tags. Maybe could also use the k8s downward api, https://kubernetes.io/docs/user-guide/downward-api instead of querying the k8s api.

ryanwalls avatar Feb 07 '17 23:02 ryanwalls

It could work, just need to be able to work with https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter

we are open to a PR if you want to give it a go?

stevezau avatar Feb 07 '17 23:02 stevezau

@stevezau In the middle of a big push at work, but will keep it on my "to do" list for later this month.

ryanwalls avatar Feb 07 '17 23:02 ryanwalls