Better Stack Digital Ocean Managed Database Clusters

Start logging in 3 minutes

Collect logs from your managed Digital Ocean database clusters.

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.

1. Create a new source in Better Stack

Create a new Digital Ocean source 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.

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

Xnapper-2025-10-14-21.24.49.png

4. Configure the Rsyslog forwarding

Digital Ocean Rsyslog forwarding config
Destination name:  Better Stack (or any name of your choice)
Endpoint:          $INGESTING_HOST
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

5. Click Save Destination, and you're done. πŸŽ‰

You should see your logs in Better Stack β†’ Live tail.