Better Stack Digital Ocean Managed Database Clusters

Start logging in 3 minutes

Collect logs from your managed Digital Ocean database clusters.

Set up Better Stack RSyslog source

  1. Go to the Better Stack → Sources → Connect source.
  2. Name your source and select RSyslog from the Platform dropdown.
  3. Click the Create source button.
  4. Copy the Source token from the Basic information section.

Set up Digital Ocean Managed Database Clusters

  1. Go to your Digital Ocean → Databases.
  2. Select your database and click the Settings tab.
  3. Click Log forwarding → Edit → + Rsyslog.
  4. Fill in the following fields:

    • Endpoint: in.logs.betterstack.com
    • Port: 6514
    • Message format: Custom
    • Log line template:
    Set up Log line template
    <%pri%>1 %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [logtail@11993 source_token="$SOURCE_TOKEN"] %msg%
    
  5. Click Save Destination, and you're done. 🎉

You should see your logs in Better Stack → Live tail.

digital_ocean_db.png