trea / caddy-loki-logger

Push logs from your Caddy web server directly to a Loki instance
3 stars 0 forks source link

label required? #2

Closed valankar closed 6 months ago

valankar commented 6 months ago

The main page has an example:

{
    log default {
        output loki https://myuser:password@loki.example.com {
           REGION iad  
        }
    }
}

However, is label required here? I think when I tried it without, the actual labels weren't applied and Grafana Cloud Loki complained that at least one label was needed. It could have been I misconfigured Loki, so I just wanted to check. When I added label, it started working.

trea commented 6 months ago

Seems so, then! Sorry about that! You're welcome to PR an update to the README if you'd like, otherwise I'll take another swing at it when I can.

trea commented 6 months ago

Was fixed by #5, thanks!