caddy -version)?Caddy 0.9.5
logging combined format access.log
minio.example.com {
proxy / localhost:9000 {
header_upstream X-Forwarded-Proto {scheme}
header_upstream X-Forwarded-Host {host}
header_upstream Host {host}
}
log /var/log/caddy/minio/access.log "{combined}" {
rotate {
size 128
age 14
keep 10
}
}
}
/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
access.log with combined log format.
no access.log file is generated to filesystem.
If you do not use "{combined}" at Caddyfile, log file is generated and working with common log format.
There is a slightly odd format here where you need the path if you have more than just the file
so you should have
log / /var/log/caddy/minio/access.log "{combined}" {
rotate {
size 128
age 14
keep 10
}
}
note the additional /after log. This should fix your issue.
Thank you, it works.
Most helpful comment
There is a slightly odd format here where you need the path if you have more than just the file
so you should have
note the additional
/after log. This should fix your issue.