# Digital Ocean Managed Database Clusters

## Start logging in 3 minutes

Collect logs from your [managed Digital Ocean database clusters](https://docs.digitalocean.com/products/databases/).

[info]
Please note this option is currently available for **PostgreSQL**, **MySQL**, **Valkey**, **Kafka**, and **OpenSearch** databases.

Digital Ocean plans to introduce the RSyslog log drain for **MongoDB** in the future, though there's no ETA just yet. 
[/info]

### 1. Create a new source in Better Stack

[Create a new Digital Ocean source](https://telemetry.betterstack.com/team/0/sources/new?platform=digitalocean ";_blank") in Better Stack Logs.

Copy the **Source token** and **Ingesting host** from the source data ingestion details.

### 2. Open database settings in Digital Ocean

Go to your [Digital Ocean → Databases](https://cloud.digitalocean.com/databases).

Select your database and click the **Settings** tab.

### 3. Add a new Rsyslog forwarding

Click **Log forwarding** → **Edit**.

Select **+ Rsyslog**.

![Xnapper-2025-10-14-21.23.49.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/317f5dbd-2b06-4c63-669b-1a42d6687000/lg2x =4088x1544)

![Xnapper-2025-10-14-21.24.49.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/110932df-9275-40f4-5807-7df6b4b20b00/md2x =4058x1720)

### 4. Configure the Rsyslog forwarding

```plaintext
[label Digital Ocean Rsyslog forwarding config]
Destination name:  Better Stack (or any name of your choice)
Endpoint:          $INGESTING_HOST_VEC
Port:              6514
Message format:    Custom
Log line template: <%pri%>1 %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [logtail@11993 source_token="$SOURCE_TOKEN"] %msg%
```  

![Xnapper-2025-10-14-21.01.57.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/689becf0-8444-49b6-3033-8f8f60be2800/public =2512x2078)

### 5. Click **Save Destination**, and you're done. 🎉

You should see your logs in [Better Stack → Live tail](https://telemetry.betterstack.com/team/0/tail ";_blank").



