Logging in YDB

Each YDB component writes messages of different levels to logs. These can be used to detect critical problems or understand the causes of issues.

Logging Setup

Logging configuration for individual components can be done in the embedded interface of YDB.

Currently, there are two options for starting YDB logging: manually and using systemd.

Manually

For convenience, YDB provides standard mechanisms for collecting logs and metrics.
Logging is performed to standard stdout and stderr channels and can be redirected using popular solutions.

Using Systemd

By default, logs are written to journald and can be retrieved using journalctl -u ydbd-storage. For database nodes, change the systemd unit name appropriately.