OpenSearch is an open-source search and analytics suite which serves as a centralized location to manage logs forwarded from other resources, such as databases and Droplets.
You can forward logs to your Managed OpenSearch cluster to view them in the OpenSearch Dashboard in the control panel. The DigitalOcean API natively supports forwarding logs from other Managed Database clusters.
Your OpenSearch cluster’s trusted sources settings can prevent you from forwarding certain logs to it. You can only forward logs from a MongoDB cluster if you add its node IPs to the OpenSearch cluster’s trusted sources. You cannot currently forward logs from App Platform or Kubernetes if your OpenSearch cluster has trusted sources enabled.
To forward logs from managed database clusters, you need to create a log sink using the DigitalOcean API.
sink_name
, sink_type
, and config
fields, which specify the name of the log sink, its type (rsyslog
, elasticsearch
, or opensearch
), and your desired URL or server/port configuration, respectively.