SLES installation
  • 23 May 2022
  • 3 Minutes to read
  • Dark

SLES installation

  • Dark

This guide describes the fastest way to install Graylog on SLES 12 SP3. All links and packages are present at the time of writing but might need to be updated later on.

This guide does not cover security settings! The server administrator must make sure the graylog server is not publicly exposed, and is following standard security best practices.


The following patterns are required for a minimal setup (see SLES 12 SP3 Deployment Guide):

- Base System
- Minimal System (Appliances)
- YaST configuration packages

This Guide assumes that the firewall is disabled and communication is possible to the outside world.

Assuming a minimal setup, you have to install the Java runtime environment:

sudo zypper install java-<version_number>-openjdk


Installing MongoDB on SLES should follow the tutorial for SLES from the MongoDB documentation. Add the GPG key and the repository before installing MongoDB:

sudo rpm --import
sudo zypper addrepo --gpgcheck "" mongodb
sudo zypper -n install mongodb-org

In order to automatically start MongoDB on system boot, you have to activate the MongoDB service by running the following commands:

sudo chkconfig mongod on
sudo systemctl daemon-reload
sudo systemctl restart mongod.service


Graylog can be used with Elasticsearch 7.x, please follow the installation instructions from the Elasticsearch installation guide.

First install the Elastic GPG key with rpm --import then add the repository file /etc/zypp/repos.d/elasticsearch.repo with the following contents:

name=Elasticsearch repository for 7.x packages

followed by the installation of the latest release with sudo zypper install elasticsearch-oss.

Make sure to modify the Elasticsearch configuration file (/etc/elasticsearch/elasticsearch.yml) and set the cluster name to graylog and uncomment action.auto_create_index: false to enable the action:

sudo tee -a /etc/elasticsearch/elasticsearch.yml > /dev/null <<EOT graylog
action.auto_create_index: false

In order to automatically start Elasticsearch on system boot, you have to activate the Elasticsearch service by running the following commands:

sudo chkconfig elasticsearch on
sudo systemctl daemon-reload
sudo systemctl restart elasticsearch.service


First install the Graylog GPG Key with rpm --import then add the repository file /etc/zypp/repos.d/graylog.repo with the following content:


After that, install the latest release with:

sudo zypper install graylog-server graylog-enterprise-plugins graylog-integrations-plugins graylog-enterprise-integrations-plugins.
If you do not want the Integrations Plugins or the Operations Plugins installed, then simply run sudo zypper install graylog-server

Make sure to follow the instructions in your /etc/graylog/server/server.conf and add password_secret and root_password_sha2. These settings are mandatory and without them, Graylog will not start!

You can use the following command to create your password_secret:

cat /dev/urandom | base64 | cut -c1-96 | head -1

You need to use the following command to create your root_password_sha2:

echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1

To be able to connect to Graylog you should set http_bind_address to the public host name or a public IP address of the machine you can connect to. More information about these settings can be found in Configuring the web interface.

If you’re operating a single-node setup and would like to use HTTPS for the Graylog web interface and the Graylog REST API, it’s possible to use NGINX or Apache as a reverse proxy.

The last step is to enable Graylog during the operating system’s startup:

$ sudo chkconfig graylog-server on
$ sudo systemctl daemon-reload
$ sudo systemctl start graylog-server.service

The next step is to ingest messages into your new Graylog Cluster and extract the messages with extractors or use the Pipelines to work with the messages.

Cluster Setup

If you plan to have multiple servers assuming different roles in your cluster like we have in this big production setup you need to modify only a few settings. This is covered in our Multi-node Setup guide. The default file location guide lists the locations of the files you need to modify.

Was this article helpful?