Better Stack Digital Ocean Apps

Start logging in 3 minutes

Collect logs from your Digital Ocean Apps.

Set up Better Stack Digital Ocean source

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

Set up Digital Ocean App

  1. Go to your Digital Ocean → Apps.
  2. Select your app and click the Settings tab.
  3. Click Log forwarding → Edit → Add new destinations → + Logtail.
  4. Fill in Destination name and paste your Better Stack Source token into the Token field.
  5. Select the app resources to collect logs from.
  6. Click Add Log Destination, and you're done. 🎉

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

digital_ocean_log_forward.png

Using Digital Ocean Ubuntu droplets?

Follow our Ubuntu log forwarding guide to collect Logs & Metrics from the managed Ubuntu droplets.

Seeing incomplete logs in Live tail?

Digital Ocean has a hard set limit to the bytes-per-row at 2000B for log forwarding. This may cause some information in your logs to be omitted.

To avoid this limit, you can split your longer logs into multiple records, or implement logging directly in your app and skip Digital Ocean forwarding. This would give you greater control over the format of your logs.

For example, see logging directly from Javascript app.