Using Digital Ocean Ubuntu droplets?
Follow our Ubuntu log forwarding guide to collect Logs & Metrics from the managed Ubuntu droplets.
Using Digital Ocean Functions?
Follow our Digital Ocean Functions log forwarding guide.
Collect logs from your Digital Ocean Apps.
Token field.You should see your logs in Better Stack β Logs & traces.
Follow our Ubuntu log forwarding guide to collect Logs & Metrics from the managed Ubuntu droplets.
Follow our Digital Ocean Functions log forwarding guide.
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.
Digital Ocean Functions forward logs using an HTTP API sink instead of Rsyslog. To set this up, you need an HTTP source.
Add the LOG_DESTINATIONS environment variable to your project.yml file:
You can set LOG_DESTINATIONS at project, package, or function scope depending on which functions you want to forward logs from.
You can forward logs to multiple destinations at once by adding more entries to the JSON array and by creating more HTTP sources.
Deploy your project and check Better Stack β Live tail to see your function logs.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.