Skip to main content

OpenSearch cluster logs

Logging uses the Logs service. For more about how the service works and its pricing, see the General information about the Logs service guide. You can check Logs service availability in regions in the Logs availability matrix.

To collect cluster logs in the Logs service, you need to enable logging. Logs can be retrieved in the Dashboard, via API requests, or using AWS CLI. If you no longer need to collect logs, you can disable logging.

Logs are stored for 30 days.

More about logs in OpenSearch databases can be found in the Logs section of the OpenSearch documentation.

Enable logging

You can enable logging via the API or in the Dashboard:

Enable logging in an existing cluster

Logging consumes some of the cluster's computing resources. To control resource consumption, monitor your cluster node metrics.

  1. In the Dashboard, on the top menu, click Products and select Managed Databases.
  2. Open the Active tab.
  3. Open the cluster page → Settings tab.
  4. In the Logging block, in the Log Service field, click Connect.
  5. Select a log group or create a new one.
  6. If you selected a new group, enter its name.
  7. Click Save.

Get logs

Use the Get logs instructions in the Logs section.

For an OpenSearch Managed Database cluster, event streams will be created as opensearch-<node_role>.log-<instance_id>, where <node_role> is the OpenSearch cluster node role, <instance_id> is the OpenSearch cluster node ID.

Disable logging

  1. In the Dashboard, on the top menu, click Products and select Managed Databases.
  2. Open the Active tab.
  3. Open the cluster page → Settings tab.
  4. In the Logging block, in the Log service field, click .
  5. Uncheck the Collect cluster technical logs to log service checkbox.
  6. Click Save.