How to Install Graylog on Debian Latest

Graylog is a powerful open-source log management system that allows users to search, analyze, and manage large volumes of log data from various sources. This tutorial will guide you through the process of installing Graylog on Debian Latest.

Prerequisites: Before starting, make sure to have the following:

Step 1 – Update the System

  1. Connect to your Debian Latest server via SSH.

  2. Update the system packages by running the following command:

sudo apt-get update && sudo apt-get upgrade -y

Step 2 – Install Prerequisites

  1. Install the following prerequisites:
sudo apt-get install apt-transport-https openjdk-8-jre-headless uuid-runtime pwgen -y
  1. Add the Elasticsearch GPG key:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
  1. Add the Elasticsearch repository to the system:
echo "deb https://packages.elastic.co/elasticsearch/6.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
  1. Install Elasticsearch:
sudo apt-get update && sudo apt-get install elasticsearch -y
  1. Install MongoDB:
sudo apt-get install mongodb-server -y
  1. Start and enable the services:
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch
sudo systemctl enable mongodb
sudo systemctl start mongodb

Step 3 – Install Graylog

  1. Add the Graylog GPG key:
wget https://packages.graylog2.org/repo/packages/graylog-3.3-repository_latest.deb
sudo dpkg -i graylog-3.3-repository_latest.deb
sudo apt-get update && sudo apt-get install graylog-server -y
  1. Generate a random password secret:
echo -n yourpassword | shasum -a 256
  1. Set the password secret in the Graylog configuration file:
sudo nano /etc/graylog/server/server.conf
- # password_secret = This is a secret phrase used for encoding
+ password_secret = 3z2mUlyZUsR1ZjuJjMaY9XJbb0A6Mo0DH3JdP6gTrU6LExU8BIRW2Qv1YX9XgCb
  1. Set the root timezone:
sudo nano /etc/graylog/server/server.conf
- # root_timezone = UTC
+ root_timezone = America/Los_Angeles

Step 4 – Configure Graylog Web Interface

  1. Edit the Graylog configuration file:
sudo nano /etc/graylog/server/server.conf
  1. Set the web endpoint URI:
- # web_endpoint_uri = http://127.0.0.1:9000/api/
+ web_endpoint_uri = http://your_server_ip:9000/api/

Step 5 – Start Graylog

  1. Start the Graylog server:
sudo systemctl restart graylog-server
  1. Wait for the Graylog service to start.

Step 6 – Access Graylog Web Interface

  1. Launch a web browser and navigate to:
http://your_server_ip:9000
  1. Log in with the following credentials:
Username: admin
Password: YourPassword
  1. After you log in, the Graylog dashboard will be displayed.

That's it! You have successfully installed Graylog on your Debian Latest server. Now you can start configuring your log inputs, streams, and alerts to manage your logs effectively.

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!