We're here to assist with any of your needs, don't hestitate to reach out.
Graylog is an open-source log management application that allows you to collect, index, and analyze log data from various sources. It provides centralized storage and a web interface for searching and analyzing log data, making it easier to monitor and troubleshoot your systems.
Before installing any new packages, it is always recommended to update the system's packages to their latest versions. Open a terminal and run the following commands:
sudo apt update
sudo apt upgrade
Graylog requires Elasticsearch to store and index log data. To install Elasticsearch, run the following command:
sudo apt install elasticsearch
After the installation, you need to configure Elasticsearch to ensure it runs properly. Open the Elasticsearch configuration file using a text editor:
sudo nano /etc/elasticsearch/elasticsearch.yml
Inside the file, uncomment and modify the following lines:
network.host: localhost
http.port: 9200
Save the changes and exit the text editor. Then, start and enable the Elasticsearch service:
sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch
Graylog requires MongoDB as its underlying database. Install MongoDB by running the following command:
sudo apt install mongodb
Now, we can proceed to install Graylog itself. Add the Graylog repository key to trusted keys:
wget https://packages.graylog2.org/repo/packages/graylog-4.x-repository_latest.deb
sudo dpkg -i graylog-4.x-repository_latest.deb
Update the package lists:
sudo apt update
Install Graylog:
sudo apt install graylog-server
Graylog configuration file is located at /etc/graylog/server/server.conf
. You need to edit this file to configure Graylog settings:
sudo nano /etc/graylog/server/server.conf
Modify the following settings to match your environment:
password_secret =
root_password_sha2 =
elasticsearch_host = http://127.0.0.1:9200
Save the changes and close the file. Finally, start and enable the Graylog service:
sudo systemctl start graylog-server
sudo systemctl enable graylog-server
Open your web browser and access the Graylog web interface using the URL http://your-server-ip:9000
. You will be prompted to log in with the username "admin" and the password you set in the previous step. Congratulations! You have successfully installed Graylog on Ubuntu 22.04. You can now configure log sources, create dashboards, and start analyzing your log data. Note: It is recommended to secure the Graylog web interface with SSL/TLS certificates for secure communication.
What our customers say about us
Create your free account today.