OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/docs/installation-and-operations/operation/monitoring/README.md

53 lines
1.6 KiB

---
sidebar_navigation:
title: Monitoring & Logs
priority: 6
---
# Monitoring your OpenProject installation
## Show logs
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
all current log entries. This can be accomplished using the the `–tail` flag.
See example below:
```bash
sudo openproject logs --tail
```
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/`.
In a docker-based installation, all logs are redirected to STDOUT so you can use the normal docker tools to manage your logs.
For instance for the Compose-based installation:
```bash
docker-compose logs -f --tail 1000
```
Or the all-in-one docker installation:
```bash
docker logs -f --tail 1000 openproject
```
### Raising the log level
OpenProject can log at different service levels, the default being `info`. You can set the [environment variable](https://docs.openproject.org/installation-and-operations/configuration/environment/#environment-variables) `OPENPROJECT_LOG__LEVEL` to any of the following values:
- debug, info, warn, error
For example, to set this in the packaged installation, use the following command:
```bash
openproject config:set OPENPROJECT_LOG__LEVEL="debug"
service openproject restart
```
For Docker-based installations, add the ENV variable to your env file and restart the containers.