---
title: Rename a BYOC Logs Cluster
description: >-
  Change the cluster ID of a BYOC Logs deployment directly or with a rolling
  migration.
breadcrumbs: Docs > BYOC Logs > Operate BYOC Logs > Rename a BYOC Logs Cluster
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Rename a BYOC Logs Cluster

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

The `config.cluster_id` Helm value identifies a BYOC Logs cluster in Datadog. Changing this value restarts the cluster nodes.

Renaming a cluster changes its BYOC Logs index names from `byoc--<old_cluster_id>--<index_name>` to `byoc--<new_cluster_id>--<index_name>`. Update monitors and dashboards that use the old index names.

Use the installed chart version throughout the rename so that the operation does not also upgrade your deployment.

## Rename with downtime{% #rename-with-downtime %}

Use this procedure when temporary ingestion and search failures are acceptable.

1. Change `config.cluster_id` in the Helm values file:

   ```yaml
   config:
     cluster_id: <NEW_CLUSTER_ID>
   ```

1. Upgrade the Helm release:

   ```shell
   helm upgrade <RELEASE_NAME> datadog/cloudprem \
     --version <CHART_VERSION> \
     --namespace <NAMESPACE_NAME> \
     --values datadog-values.yaml
   ```

1. Wait for the rollout to finish. During the rollout, nodes with different cluster IDs cannot communicate, which can interrupt ingestion and search.

1. Verify that all pods are ready and that ingestion and search have recovered.

## Rename without downtime{% #rename-without-downtime %}

Use `config.extra_cluster_ids` to allow nodes with the old and new cluster IDs to communicate during the rename. These aliases apply only to communication between nodes; they do not preserve the old Datadog index names. Complete each rollout before starting the next one.

After each change to the Helm values, upgrade the release with the following command:

```shell
helm upgrade <RELEASE_NAME> datadog/cloudprem \
  --version <CHART_VERSION> \
  --namespace <NAMESPACE_NAME> \
  --values datadog-values.yaml
```

1. Configure nodes with the old cluster ID to accept the new cluster ID:

   ```yaml
   config:
     cluster_id: <OLD_CLUSTER_ID>
     extra_cluster_ids:
       - <NEW_CLUSTER_ID>
   ```

1. Upgrade the Helm release and wait for the rollout to finish.

1. Change the cluster ID while retaining compatibility with the old cluster ID:

   ```yaml
   config:
     cluster_id: <NEW_CLUSTER_ID>
     extra_cluster_ids:
       - <OLD_CLUSTER_ID>
   ```

1. Upgrade the Helm release and wait for the rollout to finish.

1. Remove `extra_cluster_ids`:

   ```yaml
   config:
     cluster_id: <NEW_CLUSTER_ID>
   ```

1. Upgrade the Helm release and wait for the rollout to finish.

1. Verify that all pods are ready and that ingestion and search remain available.

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Install BYOC Logs](https://docs.datadoghq.com/byoc-logs/install.md)
- [Monitor BYOC Logs](https://docs.datadoghq.com/byoc-logs/operate/monitoring.md)
