App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.
In addition to viewing basic logs in App Platform, you can forward application runtime logs to external log management providers. This allows you to use the provider to search, index, and retain the logs. Forwarding logs does not count towards application’s bandwidth usage and you cannot use dedicated IP addresses to forward logs at this time.
Currently, App Platform supports log forwarding to OpenSearch, Papertrail, Datadog, and Logtail. If you want to use a DigitalOcean Managed OpenSearch Cluster, you can use this same workflow to forward logs.
To configure log forwarding, go to the Apps section of the control panel, click on your app, and click on the Settings tab. In the Log Forwarding section, click Edit and select your log collection provider. Then provide the applicable values for your provider:
Provider | Settings |
---|---|
OpenSearch (Beta) | Endpoint: The endpoint URL of your OpenSearch cluster, in the following format: |
Papertrail | Endpoint: The provider endpoint where App Platform forwards the logs. Use TLS-encrypted syslog endpoint. For more information, see the Papertrail documentation. |
Datadog | Endpoint: The provider endpoint where App Platform forwards the logs. Use the HTTP endpoint API Key : The token generated by Datadog. For more information, see the Datadog documentation. |
Logtail | Token: The token used to access a Ryslog source in Logtail. For more information, see the Logtail documentation. |
Select the resources of the app that should forward logs to the provider.
Click the Add Log Destination button to enable remote logging for the provider.