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

Hi

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?

Michael

I do this at the docker level.

docker-daemon.json 
{
  "log-driver": "gelf",
  "log-opts": {
    "gelf-address": "udp://127.0.0.1:12201",
    "gelf-compression-type": "none",
    "labels": "com.custom.service"
      }
}

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