Send logs to AWS CloudWatch from Aiven web console#

You can find here the steps to send your Aiven service logs to the AWS CloudWatch using the Aiven web console.

Prerequisites#

You will need:

  • An AWS account, and which region it is in.

  • An Aiven account with a service running.

  • An AWS Access Key and Secret Key. Generate the credentials by visiting IAM dashboard then click in Users, open the Security credentials tab, and choose Create access key. Click on Download as you will need this shortly.

Configure the integration#

Start by configuring the link between the Aiven service and the AWS CloudWatch. This setup only needs to be done once.

  1. Choose Service integrations in the left hand menu of the web console, then choose AWS CloudWatch Logs and Add a new endpoint or Create new.

  2. Configure the settings for the new endpoint:

    • Endpoint name is how you will refer to this logs integration when linking it to other Aiven services.

    • Your AWS credentials: Access Key and Secret Key.

    • Your AWS account Region.

    • Log Group Name where your logs streams can be grouped in a group on AWS CloudWatch. If this field is not provided, it will be generated for you.

Screenshot of system integrations including AWS CloudWatch Logs endpoint
  1. Click in Create to save this endpoint.

Send logs from an Aiven service to AWS CloudWatch#

Follow the steps in this section for each of the services whose logs should be sent to AWS CloudWatch.

  1. On the Service Overview page, select Manage integrations and choose the AWS CloudWatch Logs option.

Screenshot of system integrations including AWS CloudWatch Logs
  1. Pick the endpoint by the Endpoint name you created earlier from the dropdown and choose Enable.

  2. Visit your AWS account and look under CloudWatch and explore the Logs section to see the data flowing within a few minutes.

See also

Learn more about Amazon CloudWatch and Aiven.