Logging in YDB

Each YDB component writes messages to logs at different levels. They can be used to detect severe issues or identify the root causes.

Logging setup

You can configure logging for the various components of the YDB in the Embedded UI.

There are currently two options for running YDB logging: manually or using systemd.

Manually

YDB provides standard mechanisms for collecting logs and metrics.
Logging is done to standard stdout and stderr streams and can be redirected using popular solutions.

Using systemd

Default logs are written to journald and can be retrieved via journalctl -u ydbd.