OpenSearch cluster logs
The Logs service is used for logging. For details about how the service works and pricing, see the Logs Service Overview manual. You can check the availability of the Logs service by location in the Logs Availability by Location manual.
To collect cluster logs in the Logs service, you need to enable logging. You can get logs in the control panel, using API requests, or via the AWS CLI. If you no longer need to collect logs, you can disable logging.
Logs are stored for 30 days.
For more information about logs in OpenSearch databases, see the Logs guide in the OpenSearch documentation.
Enable logging
You can enable logging via the API or in the Dashboard:
- when creating a cluster;
- or in an existing cluster.
Enable logging in an existing cluster
Logging consumes some of the cluster's computing resources. To control resource consumption, monitor your cluster node metrics.
- In the control panel, in the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Settings tab.
- In the Logging block, in the Logs service field, click Connect.
- Select a log group or create a new one.
- If you selected a new group, enter its name.
- Click Save.
Get logs
Follow the Get logs instructions in the Logs section.
For the OpenSearch cloud database cluster, event streams will be created: opensearch-<node_role>.log-<instance_id>, where <node_role> is the OpenSearch cluster node role, and <instance_id> is the OpenSearch cluster node ID.
Disable logging
- In the control panel, in the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Settings tab.
- In the Logging section, in the Log service field, click .
- Clear the Collect cluster technical logs into log service checkbox.
- Click Save.