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:
9000
, 12900/tcp
, 12201/udp
, and 1514/udp
.Connect to your Debian Latest server via SSH.
Update the system packages by running the following command:
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install apt-transport-https openjdk-8-jre-headless uuid-runtime pwgen -y
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://packages.elastic.co/elasticsearch/6.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
sudo apt-get update && sudo apt-get install elasticsearch -y
sudo apt-get install mongodb-server -y
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch
sudo systemctl enable mongodb
sudo systemctl start mongodb
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
echo -n yourpassword | shasum -a 256
sudo nano /etc/graylog/server/server.conf
- # password_secret = This is a secret phrase used for encoding
+ password_secret = 3z2mUlyZUsR1ZjuJjMaY9XJbb0A6Mo0DH3JdP6gTrU6LExU8BIRW2Qv1YX9XgCb
sudo nano /etc/graylog/server/server.conf
- # root_timezone = UTC
+ root_timezone = America/Los_Angeles
sudo nano /etc/graylog/server/server.conf
- # web_endpoint_uri = http://127.0.0.1:9000/api/
+ web_endpoint_uri = http://your_server_ip:9000/api/
sudo systemctl restart graylog-server
http://your_server_ip:9000
Username: admin
Password: YourPassword
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!