Caddy and GoAccess

Add into the config of your vhost:

log {
   output file /var/log/caddy/access.log 
   format json
}

Restart caddy.

Now run goaccess with:

cat /var/log/caddy/access.log | goaccess  --log-format CADDY -