OpenSearch cluster logs
The Logs service is used for logging. For more information on how the service works and its pricing, see the General Information About the Logs Service guide. You can check the availability of the Logs service by region in the Availability Matrix for Logs.
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 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:
- 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 Dashboard, on the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Settings tab.
- In the Logging block, in the Log 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
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
- In the Dashboard, on the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Settings tab.
- In the Logging block, in the Log service field, click .
- Uncheck the Collect cluster technical logs to log service checkbox.
- Click Save.