Docker Container Log Streaming Policy

The Docker_ContainerlogStreaming policy configures following after deploying the Docker Log Collection aspect:

  • Configures Docker daemon to send all the logs to syslog server running on the host node.
  • Configures the host to receive messages from the Docker container log via UDP protocol at port 514.
  • Configures syslog and Docker daemon to use local 6 facility for the container logs. Messages from local 6 facility is sent to /var/log/Docker. If host is configured to send local 6 facility to other than /var/log/Docker, then the container log is written to the respective file.
  • The data collected is structured as <SourceHost> <string1> <timestamp> <message>, here <string1> is Docker <container ID>. This log file structure must not be modified. An alert or event is sent if the log file does not exist in the specified location.