Export access log as json via udp or tcp, e.g. using GELF?


is there a way to stream the access log to graylog using GELF? It would only require to simply stream the access log json to an udp or tcp port. Has anybody done this already?


I do this at the docker level.

  "log-driver": "gelf",
  "log-opts": {
    "gelf-address": "udp://",
    "gelf-compression-type": "none",
    "labels": "com.custom.service"

Same pragmas can be used for a singleton container with appropriate command line arguments.