---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ydb.tech/docs/en/devops/observability/logging.md?version=v25.4
  - https://ydb.tech/docs/ru/devops/observability/logging.md?version=v25.4
  - href: en/devops/observability/logging.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
sourcePath: en/core/devops/observability/logging.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# 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 {#log_setup}

Logging configuration for individual components can be done in the [embedded interface](https://ydb.tech/docs/en/reference/embedded-ui/logs.md?version=v25.4#change_log_level) of YDB.

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

### Manually {#log_setup_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 {#log_setup_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.