How to Install Graylog on Fedora Server Latest

Graylog is a powerful and scalable log management tool that enables users to collect, process, and analyze log data from various sources in real-time. In this tutorial, you’ll learn how to install Graylog on a Fedora Server Latest using the official Graylog package repository.

Prerequisites

Step 1 - Install Java

Graylog requires Java to be installed on your server. You can check if Java is already installed on your system with the following command:

java -version

If Java is not installed, you can install it using the following command:

sudo dnf install java

After the installation is complete, check the Java version again with the first command.

Step 2 - Install MongoDB

Graylog uses MongoDB to store its configuration and metadata. You can install MongoDB with the following command:

sudo dnf install mongodb-server

After the installation is complete, start the MongoDB service and enable it to start automatically on boot with these commands:

sudo systemctl start mongodb
sudo systemctl enable mongodb

Step 3 - Install Elasticsearch

Graylog requires Elasticsearch to store log data. You can install Elasticsearch with the following command:

sudo dnf install elasticsearch

After the installation is complete, start the Elasticsearch service and enable it to start automatically on boot with these commands:

sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch

Step 4 - Import Graylog GPG Key

The Graylog package repository is signed with a GPG key to ensure the integrity and authenticity of the packages. You need to import the Graylog GPG key into your Fedora system with the following command:

sudo rpm --import https://packages.graylog2.org/repo/packages.graylog2.org.key

Step 5 - Configure Graylog Repository

Create a new repository file named graylog.repo in the /etc/yum.repos.d/ directory with the following command:

sudo nano /etc/yum.repos.d/graylog.repo

Add the following contents to the graylog.repo file:

[graylog]
name=graylog
baseurl=https://packages.graylog2.org/repo/packages/graylog-4.x-repository-fedora33_latest/
gpgcheck=1
enabled=1
gpgkey=https://packages.graylog2.org/repo/packages.graylog2.org.key

Save and close the file.

Step 6 - Install Graylog

You can install Graylog with the following command:

sudo dnf install graylog-server

After the installation is complete, edit the Graylog configuration file named graylog.conf located at /etc/graylog/server/ with the following command:

sudo nano /etc/graylog/server/server.conf

Uncomment the http_bind_address option and set it to the IP address or hostname of your server to enable Graylog’s web interface:

http_bind_address = 192.168.1.100:9000

Save and close the file.

Step 7 - Start Graylog

Start the Graylog service and enable it to start automatically on boot with these commands:

sudo systemctl start graylog-server
sudo systemctl enable graylog-server

Step 8 - Access Graylog Web Interface

Open your web browser and navigate to http://your-server-ip-address:9000/ to access the Graylog web interface.

Conclusion

Now you have successfully installed Graylog on your Fedora Server Latest. You can now start collecting and analyzing your log data. Thanks for reading!

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!