Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Extend documentation on monitoring and logs

Oliver Günther85d62327eec0
diff --git a/docs/installation-and-operations/operation/monitoring/README.md b/docs/installation-and-operations/operation/monitoring/README.md
index d4e2295960e..0c7f0aaf27e 100644
--- a/docs/installation-and-operations/operation/monitoring/README.md
+++ b/docs/installation-and-operations/operation/monitoring/README.md
@@ -6,7 +6,11 @@ sidebar_navigation:
# Monitoring your OpenProject installation
-## Show logs
+OpenProject provides different means of monitoring and auditing your application.
+
+## Displaying and filtering log files
+
+### Packaged installation
In a package-based installation, the `openproject` command line tool can be
used to see the log information. The most typically use case is to show/follow
@@ -19,11 +23,29 @@ sudo openproject logs --tail
You can abort this using Ctrl + C.
-Note:
-* On distributions that are based on systemd, all the logs are sent to journald, so you can also display them via `journalctl`.
-* On older distributions that use either sysvinit or upstart, all the logs are stored in `/var/log/openproject/`.
-* If you need to share the logs you can save them in a file using `tee` like this: `sudo openproject logs --tail | tee openproject.log`
+
+**systemd / journalctl**
+
+On most distributions, OpenProject does not maintain its own log files, but sends logs directly to `journalctl`. On older distributions that use either sysvinit or upstart, all the logs are stored in `/var/log/openproject/`.
+
+You can get all logs of the web processes like this:
+
+```bash
+journalctl -u openproject-web-1
+```
+
+Likewise, to get all logs of the background worker processes:
+
+```bash
+journalctl -u openproject-worker-1
+```
+
+journalctl has flexible filtering options to search for logs. For example, add `--since "1 hour ago"` to show logs printed in the past hour.
+
+
+
+### Docker-compose
In a docker-based installation, all logs are redirected to STDOUT so you can use the normal docker tools to manage your logs.
@@ -33,17 +55,26 @@ For instance for the Compose-based installation:
docker-compose logs -f --tail 1000
```
-Or the all-in-one docker installation:
+
+
+### All-in-one / Slim docker container
```shell
docker logs -f --tail 1000 openproject
```
-### Raising the log level
+
+
+## Raising the log level
OpenProject can log at different service levels, the default being `info`. You can set the [environment variable](../../configuration/environment/#environment-variables) `OPENPROJECT_LOG__LEVEL` to any of the following values:
-- debug, info, warn, error
+- `debug`: All activity, resulting in the highest amount of logging
+- `info`: Common activities such as user logins (when enabled) and information about requests, including warnings and errors
+- `warn`: Operational warnings that might need resolution as well as error messages
+- `error` Caught or uncaught application errors, as well as fatal errors.
+
+
For example, to set this in the packaged installation, use the following command:
@@ -54,7 +85,6 @@ service openproject restart
For Docker-based installations, add the ENV variable to your env file and restart the containers.
-
## Health checks
OpenProject uses the [okcomputer gem](https://github.com/sportngin/okcomputer) to provide built-in health checks on database, web, and background workers.