/kubernetes-logging-syslog

Docker image that forwards Kubernetes pod logs to syslog

Primary LanguageDockerfileMIT LicenseMIT

Kubernetes Container Log Syslog Forwarder

This container is designed to run as a DaemonSet and forwards pod logs to a syslog listener for all pods running on a node. Log forwarding is implemented with RSYSLOG and uses omfwd module.

Configuration Options

Configuration can be done with environment variables:

  • RSYSLOG_TARGET - Remote syslog listener
  • RSYSLOG_PORT - Remote syslog listener port
  • RSYSLOG_PROTOCOL - Remote syslog listener protocol (udp/tcp)

Example DaemonSet

DaemonSet example requires a privileged SCC if using k8s v1.5+ or OpenShift and probably needs rsyslog already installed in order to use /var/lib/rsyslog on the host as the place for the file state directory