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:

Install Loki

  1. Download the latest version of Loki from the official website at https://grafana.com/oss/loki/.
  2. Extract the downloaded file to a location on your system. For example, C:\loki.
  3. Open a command prompt as an administrator.
  4. Navigate to the directory where you have extracted Loki in step 2 using the cd command. For example, cd C:\loki.
  5. Run the following command to start Loki:
loki-windows-amd64.exe --config.file=loki-local-config.yaml
  1. Loki will start and listen on port 3100 by 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.
  2. 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.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!