Closed valankar closed 6 months ago
I tried to setup an environment variable for the loki server.
{ log default { output loki {env.LOKI_SERVER} { label { job caddy } } }
I see this in the logs:
{"level":"info","ts":1713374478.7145693,"msg":"redirected default logger","from":"stderr","to":"%7Benv.LOKI_SERVER%7D"}
Whereas normally I would see the URL. Also it seems my Loki server stopped getting any data when I do this.
I run Caddy in docker, and when I exec a shell, I can echo $LOKI_SERVER and it has the correct URL.
echo $LOKI_SERVER
Try {$LOKI_SERVER} instead please
{$LOKI_SERVER}
Yep, that works!
Awesome. Thank you for the PR and for the questions!
I tried to setup an environment variable for the loki server.
I see this in the logs:
Whereas normally I would see the URL. Also it seems my Loki server stopped getting any data when I do this.