How to Install Loki on Windows 11
Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. In this tutorial, we will walk you through the steps to install Loki on Windows 11.
Prerequisites
Before we begin, ensure that you have the following prerequisites:
- A Windows 11 system
- Administrator access to the system
- An internet connection
Install Loki
- Download the latest version of Loki from the official website at https://grafana.com/oss/loki/.
- Extract the downloaded file to a location on your system. For example,
C:\loki. - Open a command prompt as an administrator.
- Navigate to the directory where you have extracted Loki in step 2 using the
cdcommand. For example,cd C:\loki. - Run the following command to start Loki:
loki-windows-amd64.exe --config.file=loki-local-config.yaml
- Loki will start and listen on port
3100by default. Verify that Loki is running by navigating to http://localhost:3100/metrics in your web browser. If everything is working correctly, you should see a page containing metrics data. - You can now configure your log sources to send logs to Loki for aggregation and analysis.
Conclusion
That's it! You have successfully installed Loki on Windows 11. Take some time to explore the Loki documentation to learn more about its features and how to use it.