---
title: "ClickHouse® cluster logs"
sidebar_label: "Cluster logs"
sidebar_position: 11
description: "How to enable ClickHouse® cluster logging, get logs, and disable logging"
---

import Formbricks from '@theme/MDXComponents/Formbricks';
import EnableLogs from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/managed-databases/common/enable-logs.mdx';
import DisableLogs from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/managed-databases/common/disable-logs.mdx';
import { CustomTable } from '@selectel/docux/components';

# ClickHouse® cluster logs

The [Logs](/logs/) service is used for logging. More information about how the service works and its pricing can be found in the [Logs service description](/logs/about/about-logs.mdx) instruction. You can view the availability of the Logs service in locations in the [Availability of logs by location](/logs/about/logs-availability-by-location.mdx) instruction.

To collect cluster logs in the Logs service, you must [enable logging](#enable-logs). [Logs can be retrieved](#get-logs) in the Control Panel using API requests or via [AWS CLI](/logs/tools/aws-cli.mdx). If you no longer need to collect logs, you can [disable logging](#disable-logs).

Logs are stored for 30 days.

Learn more about logs in ClickHouse® databases in the [Logs and traces](https://clickhouse.com/docs/use-cases/observability/introduction#logs-and-traces) section of the ClickHouse® documentation.

## Enable logging \{#enable-logs}

<EnableLogs DatabaseName="ClickHouse" ArticleName="Мониторинг кластера, групп нод and нод ClickHouse" slug="clickhouse" />

## Get logs \{#get-logs}

Use the [Get logs](/logs/manage/get-logs.mdx) instruction in the Logs section.

event streams `clickhouse-<node_role>.log-<instance_id>` will be created for a ClickHouse® Managed Database cluster, where `<node_role>` is the ClickHouse® cluster node role, and `<instance_id>` is the ClickHouse cluster node ID.

## Disable logging \{#disable-logs}

<DisableLogs />

ClickHouse® is a registered trademark of ClickHouse, Inc. https://clickhouse.com.

<Formbricks />
