SumoLogic / fluentd-kubernetes-sumologic

FluentD plugin to extract logs from Kubernetes clusters, enrich and ship to Sumo logic.
Apache License 2.0
61 stars 65 forks source link

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

Open ryanwalls opened 7 years ago

ryanwalls commented 7 years ago

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

stevezau commented 7 years ago

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?

ryanwalls commented 7 years ago

@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.

stevezau commented 7 years ago

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?

ryanwalls commented 7 years ago

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