Loki is a horizontally scalable, highly available, multi-tenant log aggregation system that helps you achieve insights into your systems and applications. In this tutorial, we will guide you on how to install Loki on a Manjaro system.
An up-to-date Manjaro installation.
A user account with administrative privileges.
A reliable internet connection.
Basic knowledge of the command-line interface.
To ensure that your Manjaro system is up-to-date, run the following command:
sudo pacman -Syu
Loki can be installed from the official Arch Linux repository. To install Loki on Manjaro, run the following command:
sudo pacman -S loki
By default, Loki listens on port 3100. You can change this by editing the /etc/loki/loki-local-config.yaml
configuration file. For example, to change the listening port to 8080, run:
sudo nano /etc/loki/loki-local-config.yaml
Then, change the server.http_listen_port
parameter to 8080.
To start the Loki service, run:
sudo systemctl start loki.service
To ensure that the service starts at boot time, run:
sudo systemctl enable loki.service
You can check the status of the service by running:
sudo systemctl status loki.service
The Loki Web UI can be accessed via a web browser on port 3100. Open your browser and navigate to the following address:
http://localhost:3100
You should see the Loki web UI.
Congratulations! You have successfully installed Loki on your Manjaro system. You can now configure your applications to send logs to Loki and start exploring your logs with powerful queries.
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!