---
title: "Enable an AWS Logs integration"
method: POST
path: "/api/v1/integration/aws/logs/services"
tags: ["AWS Logs Integration"]
deprecated: true
---

# Enable an AWS Logs integration

`POST /api/v1/integration/aws/logs/services`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v1/integration/aws/logs/services`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

> **Deprecated.**

Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration.

## Request body

- AWSLogsServicesRequest: A list of current AWS services for which Datadog offers automatic log collection.
  - `account_id` string, required: Your AWS Account ID without dashes.
  - `services` string[], required: Array of services IDs set to enable automatic log collection. Discover the list of available services with the get list of AWS log ready services API endpoint.

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `403`: Authentication Error
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v1-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v1-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v1-collection/revisions/ca5871004d26?raw)
