I'm working on using this project to monitor traefik with multiple subdomains (virtual host field in goaccess), which is only recorded when logging access log in json. Therefore it will be great if I can customize the log-format, including time-format and date-format.
I simply made some small changes to resources/scripts/logs/traefik.sh to allow user to override the formats with -e TIME_FORMAT, -e DATE_FORMAT and -e LOG_FORMAT. However someone may come up with some more elegant solution, or just simply create a new -e LOG_TYPE=TRAEFIK
I'm working on using this project to monitor traefik with multiple subdomains (virtual host field in goaccess), which is only recorded when logging access log in json. Therefore it will be great if I can customize the
log-format
, includingtime-format
anddate-format
.I simply made some small changes to
resources/scripts/logs/traefik.sh
to allow user to override the formats with-e TIME_FORMAT
,-e DATE_FORMAT
and-e LOG_FORMAT
. However someone may come up with some more elegant solution, or just simply create a new-e LOG_TYPE=TRAEFIK
Just in case if anyone is interested, my configs are the followings