How to Install Riemann on Manjaro
Riemann is an event stream processor that aggregates and allows for real-time analysis of data streams. In this tutorial, you will learn how to install Riemann on Manjaro.
Prerequisites
Before starting this installation process, you will need:
- A Manjaro installation with sudo access
- Basic knowledge of the command line
Installation
Follow the steps below to install Riemann on Manjaro:
Open the terminal of your Manjaro installation by pressing
Ctrl + Alt + T.Update the system packages by entering the following command:
sudo pacman -Syu
- Install Java Development Kit (JDK) by entering the following command:
sudo pacman -S jdk8-openjdk
- Check if Java is installed by entering the following command:
java -version
Output:
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
- Download and extract the latest version of Riemann by entering the following command:
wget https://aphyr.com/riemann/riemann-0.3.6.tar.bz2
tar xvfj riemann-0.3.6.tar.bz2
- Move the extracted files to the designated location by entering the following command:
sudo mv riemann-0.3.6 /opt/riemann
- Create a startup script for Riemann by entering the following command:
sudo nano /etc/systemd/system/riemann.service
- Paste the following code in the editor:
[Unit]
Description=Riemann monitoring system
[Service]
ExecStart=/usr/bin/java -cp /opt/riemann-0.3.6/lib/*:/opt/riemann-0.3.6/lib /opt/riemann-0.3.6/bin/riemann /opt/riemann-0.3.6/etc/riemann.config
Restart=always
[Install]
WantedBy=multi-user.target
Save and close the editor by pressing
Ctrl + X, thenY, and thenEnter.Reload the systemd daemon by entering the following command:
sudo systemctl daemon-reload
- Start and enable the Riemann service by entering the following two commands:
sudo systemctl start riemann
sudo systemctl enable riemann
Congratulations! You have successfully installed Riemann on Manjaro. You can now use Riemann to monitor and analyze data streams.