How to install loki and promtail on windows

How to install loki and promtail on windows because we need to collect custom logs from window server as we would like to build alerts in case of errors using grafana

Welcome to forum @tiwaridevansh13

Here is the docu for loki

The exe for both is found here

In releases under asset , what file is to be downloaded for loki and promtail if our system is intel i5 64 bit windows 10 gen? (as it is getting crashed while running loki application so just wanna know precise file to download)

image
image
image

Which one did you use?

loki-windows-amd64.exe.zip

promtail-windows-386.exe.zip

AND THEN

loki-windows-amd64.exe.zip

promtail-windows-amd64.exe.zip

Plz tell me which is best suited file to download

confusing as to which one you extracted and which one you ran. both of those exe cause errors?

Is this been resolved? i installed loki and promtail with NSSM but i was not able to start the services. Almost all the reference are installation to linux and almost no reference on how to install and configure loki and promtail on windows. Please help.

how did you install it using nssm ?

C:\Installer\nssm-2.24\nssm-2.24\win64>nssm.exe install loki C:\nstaller\loki-canary-windows-amd64.exe

Service “loki” installed successfully!l

As I suspected. Loki canary is a different product

You need to use loki-windows-amd64.exe
image

https://github.com/grafana/loki/releases/download/v3.1.1/loki-windows-amd64.exe.zip

Also so as not to lose your lgtm products as a suggestion always install them as follows so they bubble up to the top of your services

image

nssm.exe install _lgtm_loki
nssm.exe install _lgtm_grafana
nssm.exe install _lgtm_promtail

etc