You can use the message log management feature provided by ApsaraMQ for Confluent to push the message logs of ApsaraMQ for Confluent instances to Simple Log Service. You can enable the feature to query the logs of all requests on a client.
Prerequisites
An ApsaraMQ for Confluent instance is created. For more information, see Purchase and deploy instances.
Simple Log Service is activated, and a project and a Logstore are created in Simple Log Service. For more information, see Resource management overview.
Usage notes
If you delete the created Simple Log Service project or Logstore or revoke the permissions on ApsaraMQ for Confluent, logs cannot be pushed as expected.
You can configure a logging bucket for each ApsaraMQ for Confluent instance. By default, logging buckets are not configured.
After the message logs of ApsaraMQ for Confluent are pushed to Simple Log Service, you are charged for items such as storage space, traffic, and the number of requests in Simple Log Service. For more information, see Billable items of pay-by-feature.
Procedure
Configure a logging bucket for the ApsaraMQ for Confluent instance that you created to push logs to Simple Log Service.
Log on to the ApsaraMQ for Confluent console. In the left-side navigation pane, click Instances.
In the top navigation bar, select the region where the instance that you want to manage resides. On the Instances page, click the name of the instance that you want to manage.
In the left-side navigation pane, click Log Management.
(Optional) In the ApsaraMQ for Kafka Service-Linked Role dialog box, click OK.
If ApsaraMQ for Confluent is authorized to access cloud resources, skip this step.
On the Log Management page, select the project to which you want to push message logs from the Project Name drop-down list, select the Logstore to which you want to push message logs from the Logstore drop-down list, and then click Enable.
What to do next
You can log on to the Simple Log Service console to query and analyze logs. For more information, see Query and analyze logs.