How to Install Loki on Manjaro

Introduction

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.

Prerequisites

  1. An up-to-date Manjaro installation.

  2. A user account with administrative privileges.

  3. A reliable internet connection.

  4. Basic knowledge of the command-line interface.

Procedure

Step 1 - Update your system

To ensure that your Manjaro system is up-to-date, run the following command:

sudo pacman -Syu

Step 2 - Install Loki

Loki can be installed from the official Arch Linux repository. To install Loki on Manjaro, run the following command:

sudo pacman -S loki

Step 3 - Configure 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.

Step 4 - Start Loki

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

Step 5 - Access the Loki Web UI

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!