How do I send logs to GELF UDP endpoint from Kubernetes on a per-pod basis
Try to use fluentd with the Kubernetes metadata plugin to extract local json-file docker logs and send to Graylog2.
tag_to_kubernetes_name_regexp
- the regular expression used to extract Kubernetes metadata (pod name, container name, namespace) from the current fluentd tag.