Skip to main content

OpenSearch cluster logs

The Logi service is used for logging. For more information about the principle of operation and cost of the service, please refer to the instruction General information about the Logi service.To see the availability of the Logi service in the regions, please refer to the Logi availability matrix .

To collect cluster logs in the Logs service, you must enable logging. You can retrieve logs in the dashboard using API requests or through the AWS CLI.If you no longer need to collect logs, you can turn logging off.

Logs are stored for 14 days.

For more information about logs in OpenSearch databases, see the Logs instructions in the OpenSearch documentation.

Enable logging

You can enable logging through the API or in the control panel:

Enable logging in an existing cluster

Logging uses a portion of the cluster's computational resources. To control the amount of resources consumed, monitor the cluster node metrics.

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

Get the logs

Use the Get Logs instructions in the Logs section.

Opensearch event streams will be created for the OpenSearch cloud database cluster-<node_role>.log-<instance_id>, where <node_role> is the Open Search 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 Cloud Databases.
  2. Open the Active tab.
  3. Open the cluster page → Settings tab.
  4. In the Logging block, in the Logging Service field, click .
  5. Uncheck the Collect cluster technical logs to log service checkbox.
  6. Click Save.