Relution Logs
In the Docker container, Relution does not write its own log file (relution.log) by default. All log output goes to the console output of the container and can be displayed with docker logs.
This is sufficient for most changes. It is recommended to provoke the error to make it visible just before working through the steps.
Find container ID
- Start a terminal and log in if necessary
- Find out what name and ID the Docker has. Display container ID and name
sudo docker ps
The terminal then displays output like the following:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5858aa05c24c relution/relution:latest "/relution-docker.sh…" 6 days ago Up 9 seconds (health: starting) 8080/tcp docker_relution
The information will be different from the one in the example. The name or the ID of the container can be used to start the log. In the example, the name was used.
Start log with container name
docker logs -f docker_relution
The -f option ensures that the log is always displayed continuously. Therefore, a lot of text is displayed quickly in the terminal. The log can be stopped with CTRL + C, after which it is possible to scroll up.
Save log to file
The following command saves the logs to a file in the current path:
docker logs -f docker_relution > my_logfile.txt
It is also possible to use an alternate path:
docker logs -f docker_relution > /opt/relution/my_logfile.txt
The file can be transferred to a local PC with Filezilla, WinSCP or another SCP client.
Log Rotation
Docker logs are inherently ephemeral. Sometimes it can be useful to retain them for a longer period. Below is an example based on a Rocky Linux 9 + Docker installation.
Configure Log Rotation for Docker Host Logs
Docker stores its standard logs under /var/lib/docker/containers/<container-id>/<container-id>-json.log. To keep these logs manageable, Docker’s integrated log rotation can be enabled via the /etc/docker/daemon.json file:
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "30"
}
}
Afterward, the Docker service is restarted:
sudo systemctl restart docker
Rotate, Zip, and Move Logs Daily to the Relution Directory
For daily archiving, logrotate can be used. It must be installed on the Linux system afterward via:
sudo dnf install logrotate
First, a logs folder must be created:
sudo mkdir /opt/relution/logs
Then, a configuration file must be created under /etc/logrotate.d/docker with the following content:
*./var/lib/docker/containers/WILDCARD/WILDCARD.log {
daily
missingok
rotate 30
compress
delaycompress
notifempty
copytruncate
create 640 root root
sharedscripts
postrotate
TIMESTAMP=$(date +%Y-%m-%d-%H%M%S)
for file in $(find /var/lib/docker/containers/ -type f -name "*.log.*.gz"); do
DIR="/opt/relution/logs"
FILENAME="$(basename "$file" | cut -c1-12)-${TIMESTAMP}.log.gz"
mv "$file" "${DIR}/${FILENAME}"
done
endscript
}
The configuration covers the logs of all containers on the host. With sharedscripts, the postrotate part runs once after all containers. Each archived file starts with the first 12 characters of the container ID as shown by docker ps; this allows the file to be assigned to its container (e.g. Relution, database, nginx).
A log can be immediately created using the following test command:
sudo logrotate --force /etc/logrotate.d/docker
Subsequently, a log file should be stored in the /opt/relution/logs folder. Because of delaycompress, the first .gz file is only created on the second run.
ls -lah /opt/relution/logs
Linux
If Relution was installed in the default directory /opt/relution, logs can be found in /opt/relution/log.
The most recent log file is called relution.log, archived log files are named relution.log.<date>.<index>.gz (e.g. relution.log.2026-10-17.0.gz).
If Relution was installed in a different location, the log directory log is located in the respective installation directory.
Windows
If Relution was installed in the default directory %ProgramFiles%\relution (usually C:\Program Files\relution), logs can be found in %ProgramFiles%\relution\log.
The most recent log file is called relution.log, archived log files are named relution.log.<date>.<index>.gz (e.g. relution.log.2026-10-17.0.gz).
If Relution was installed in a different location, the log directory log is located in the respective installation directory.
Rotation and location of the log file
Relution rotates the log file relution.log itself: daily and additionally as soon as the file reaches 128 MB. The index in the file name starts at 0 and is incremented with each further rotation on the same day. Archived files are kept for 30 days and take up at most 1 GB in total.
The environment variable RELUTION_LOGS moves the log directory to a different absolute path. Without it, the directory is the log subdirectory of the installation directory.
In the Docker container, the log file is switched off (environment variable RELUTION_LOG_FILE_LEVEL=OFF in the image). If RELUTION_LOG_FILE_LEVEL is set to ALL, Relution writes and rotates relution.log in the container as well. Only the value OFF or off switches the log file off (in the application.yml via the key relution.log.file.level). To keep the files when the container is recreated, RELUTION_LOGS points the log directory to a directory mounted as a volume. This is an alternative to the log rotation via logrotate described above.
Log output in JSON format
As of Relution 27.0.2, the console output and the log file relution.log can be written as JSON instead of text, with one JSON object per log entry. This is switched on separately via the environment variables LOGGING_STRUCTURED_FORMAT_CONSOLE=logstash (console, i.e. docker logs in the Docker container) and LOGGING_STRUCTURED_FORMAT_FILE=logstash (relution.log). Values from the log context such as organization, signed-in user and authentication method appear as separate fields. Forwarding to a syslog server remains in text format. The change takes effect after Relution is restarted.
Forwarding to a syslog server
In addition to the console and the log file, Relution can send log output to a syslog server. Forwarding uses UDP, is switched off by default and is configured in the application.yml; in the Docker container, the keys can also be set as environment variables (e.g. RELUTION_LOG_SYSLOG_LEVEL):
| Key | Default | Meaning |
|---|---|---|
relution.log.syslog.level | OFF | Minimum log level of forwarded entries, e.g. INFO; only OFF or off switches forwarding off |
relution.log.syslog.host | localhost | Host name or IP address of the syslog server |
relution.log.syslog.port | 514 | Port of the syslog server |
relution.log.syslog.facility | LOCAL0 | Syslog facility |
Forwarding to a central syslog server is particularly suitable for long-term retention of Docker logs. The change takes effect after Relution is restarted.
Adjust log level for advanced error analysis
If standard logs are not sufficient for troubleshooting an issue, the log level can be selectively raised to DEBUG (e.g. on the fly without a restart via the Web API or, after a one-time activation, via the system portal). A detailed guide can be found under Set log level →.