Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 809 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 809 Bytes

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