Logs/CloudWatch

Add CloudWatch Logs integration

Changed on

Add a CloudWatch Logs integration.

Need to create an IAM user with programmatic permissions: CreateLogGroup, CreateLogStream, DescribeLogGroups, DescribeLogStreams, PutLogEvents

Optional permissions for retention and tags: PutRetentionPolicy, DeleteRetentionPolicy, TagResource

We recommend using CloudWatch for new integrations, which ships logs via the OpenTelemetry Collector.

post/integrations/logs/cloudwatchlog

Request

  • Base URL
    https://api.cloudamqp.com/api
  • URL
    https://api.cloudamqp.com/api/integrations/logs/cloudwatchlog
  • Auth
    HTTP basic

Request body application/x-www-form-urlencoded

regionstring required

The AWS region to use

access_key_idstring required

The access key id to use

secret_access_keystring required

The secret that goes with the key id

retentioninteger

(Optional) Number of days to retain log events. See AWS docs

tagsstring

(Optional) Enter tags like Project=A,Environment=Production. See AWS docs

Example request

{
  "region": "us-west-1"
}

Response

Integration created successfully

idinteger

Created integration ID

Example response

{
  "id": 10
}

Changes

    • breaking

      removed the success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status