winston-loki icon indicating copy to clipboard operation
winston-loki copied to clipboard

winston-loki not working properly with Grafana v7.1.3

Open dimascrocco opened this issue 3 years ago • 4 comments

Hello, I have a working application using winston-loki, but after updating the grafana server to a new version (7.1.3) I found out that most part of the log messages are not being logged in the grafana server.

I've tried the winston-loki v5.1.2 (some messages are logged in grafana) and winston-loki v6.0.0-rc.4 (no messages are logged in grafana).

Any help? When u said that the latest winston-loki should work within the latest grafana server, which version of grafana are u talking about?

Thanks in advance!

dimascrocco avatar Oct 27 '20 16:10 dimascrocco

Thanks for pointing this out! You're right, there's definitely something wrong when using the current version, as the examples don't seem to work either. Happy to help, but not sure if I have the time to dig deep into 1.5.0 – 2.0.0 compatibility before the weekend.

I released the examples in April, and on that note the latest working version should be around 1.4.0. Sorry for using such vague language in defining what versions have been deemed working with the latest build. I recommend everyone using the latest, version ^6.0.0 of this package, since it has the changes needed to work with Grafana Loki version 1.0.0, and because the winston-loki 5.1.2 uses soon-to-be deprecated API endpoints.

Have to take a look into their latest change logs, but I recommend tinkering a bit with the examples and the docker-compose.yaml, as that's what I would do in a situation like this.

What's your configuration exactly and what do you mean by Grafana Server? Do you mean the dashboard GUI itself without the promtail and loki components, or is this a bundle of some sort?

JaniAnttonen avatar Oct 27 '20 23:10 JaniAnttonen

It seems that Grafana Server 7.0.0 has removed support for deprecated endpoints: "Datasource/Loki: Support for deprecated Loki endpoints has been removed."

https://github.com/grafana/grafana/blob/master/CHANGELOG.md#breaking-changes-2

JaniAnttonen avatar Oct 28 '20 11:10 JaniAnttonen

Really sorry for the very very very late response!

For grafana server, I used the available .deb package from grafana download section (version 7.1.3): https://grafana.com/grafana/download

For both promtail and loki binaries I got them from here (version 1.6.0): https://github.com/grafana/loki/releases/

So right now, I'm going to downgrade the loki/promtail versions to 1.4.1 to see what happens. Thanx in advance for your attention. Happy new year =)

dimascrocco avatar Jan 08 '21 17:01 dimascrocco