---
title: Amazon Lex
description: |-
  Amazon Lex is an AWS service for building conversational interfaces into
          applications using voice and text.
breadcrumbs: Docs > Integrations > Amazon Lex
---

# Amazon Lex
Integration version1.0.0
## Overview{% #overview %}

Amazon Lex is a service for building conversational interfaces into applications using voice and text.

Enable this integration to see all your Lex metrics in Datadog.

## Setup{% #setup %}

### Installation{% #installation %}

If you haven't already, set up the [Amazon Web Services integration](https://docs.datadoghq.com/integrations/amazon_web_services/) first.

### Metric collection{% #metric-collection %}

1. In the [AWS integration page](https://app.datadoghq.com/integrations/amazon-web-services), ensure that `Lex` is enabled under the `Metric Collection` tab.
1. Install the [Datadog - Amazon Lex integration](https://app.datadoghq.com/integrations/amazon-lex).

### Log collection{% #log-collection %}

#### Enable logging{% #enable-logging %}

Configure Amazon Lex to send logs either to a S3 bucket or to CloudWatch.

**Note**: If you log to a S3 bucket, make sure that `amazon_lex` is set as *Target prefix*.

#### Send logs to Datadog{% #send-logs-to-datadog %}

1. If you haven't already, set up the [Datadog Forwarder Lambda function](https://docs.datadoghq.com/logs/guide/forwarder/).

1. Once the Lambda function is installed, manually add a trigger on the S3 bucket or CloudWatch log group that contains your Amazon Lex logs in the AWS console:

   - [Add a manual trigger on the S3 bucket](https://docs.datadoghq.com/logs/guide/send-aws-services-logs-with-the-datadog-lambda-function/#collecting-logs-from-s3-buckets)
   - [Add a manual trigger on the CloudWatch Log Group](https://docs.datadoghq.com/logs/guide/send-aws-services-logs-with-the-datadog-lambda-function/#collecting-logs-from-cloudwatch-log-group)

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **aws.lex.assisted\_slot\_resolution\_model\_access\_denied\_error\_count**(count) | The number of times that Amazon Lex V2 was denied access to Amazon Bedrock.*Shown as error*                                                                                        |
| **aws.lex.assisted\_slot\_resolution\_model\_invocation\_count**(count)            | The number of times that Amazon Bedrock was invoked.*Shown as invocation*                                                                                                          |
| **aws.lex.assisted\_slot\_resolution\_model\_system\_error\_count**(count)         | The number of times that a 5xx occurred when calling Amazon Bedrock.*Shown as error*                                                                                               |
| **aws.lex.assisted\_slot\_resolution\_model\_throttling\_error\_count**(count)     | The number of times that Amazon Lex was throttled by Amazon Bedrock.*Shown as throttle*                                                                                            |
| **aws.lex.assisted\_slot\_resolution\_resolved\_slot\_count**(count)               | The number of times that Amazon Bedrock returned a slot value.*Shown as event*                                                                                                     |
| **aws.lex.runtime\_kendra\_index\_access\_error**(count)                           | The number of times that Amazon Lex V2 could not access your Amazon Kendra index.*Shown as error*                                                                                  |
| **aws.lex.runtime\_kendra\_latency**(gauge)                                        | The amount of time that it takes Amazon Kendra to respond to a request from the AMAZON.KendraSearchIntent.*Shown as millisecond*                                                   |
| **aws.lex.runtime\_kendra\_success**(count)                                        | The number of successful requests from the AMAZON.KendraSearchIntent to your Amazon Kendra index.*Shown as request*                                                                |
| **aws.lex.runtime\_kendra\_system\_errors**(count)                                 | The number of times that Amazon Lex V2 couldn't query the Amazon Kendra index.*Shown as error*                                                                                     |
| **aws.lex.runtime\_kendra\_throttled\_events**(count)                              | The number of times Amazon Kendra throttled requests from the AMAZON.KendraSearchIntent.*Shown as throttle*                                                                        |
| **aws.lex.missed\_utterance\_count**(count)                                        | The number of utterances that were not recognized in the specified period.*Shown as event*                                                                                         |
| **aws.lex.runtime\_concurrency**(gauge)                                            | The number of concurrent connections in the specified time period.*Shown as connection*                                                                                            |
| **aws.lex.runtime\_invalid\_lambda\_responses**(count)                             | The number of invalid AWS Lambda responses in the specified period.*Shown as response*                                                                                             |
| **aws.lex.runtime\_lambda\_errors**(count)                                         | The number of AWS Lambda runtime errors in the specified time period.*Shown as error*                                                                                              |
| **aws.lex.runtime\_polly\_errors**(count)                                          | The number of invalid Amazon Polly responses in the specified time period.*Shown as error*                                                                                         |
| **aws.lex.runtime\_request\_count**(count)                                         | The number of runtime requests in the specified time period.*Shown as request*                                                                                                     |
| **aws.lex.runtime\_request\_length**(gauge)                                        | Total length of a conversation with a Amazon Lex V2 bot. Only applicable to the StartConversation operation.*Shown as millisecond*                                                 |
| **aws.lex.runtime\_successful\_request\_latency**(gauge)                           | The latency for successful requests between the time the request was made and the response was passed back.*Shown as millisecond*                                                  |
| **aws.lex.runtime\_system\_errors**(count)                                         | The number of system errors in the specified period.*Shown as error*                                                                                                               |
| **aws.lex.runtime\_throttled\_events**(count)                                      | The number of throttled requests. Amazon Lex throttles a request when it receives more requests than the limit of transactions per second set for your account.*Shown as throttle* |
| **aws.lex.runtime\_user\_errors**(count)                                           | The number of user errors in the specified period.*Shown as error*                                                                                                                 |
| **aws.lex.bot\_channel\_auth\_errors**(count)                                      | The number of authentication errors returned by the messaging channel in the specified time period.*Shown as error*                                                                |
| **aws.lex.bot\_channel\_configuration\_errors**(count)                             | The number of configuration errors in the specified period.*Shown as error*                                                                                                        |
| **aws.lex.bot\_channel\_inbound\_throttled\_events**(count)                        | The number of times that messages that were sent by the messaging channel were throttled by Amazon Lex in the specified period.*Shown as throttle*                                 |
| **aws.lex.bot\_channel\_outbound\_throttled\_events**(count)                       | The number of times that outbound events from Amazon Lex to the messaging channel were throttled in the specified time period.*Shown as throttle*                                  |
| **aws.lex.bot\_channel\_request\_count**(count)                                    | The number of requests made on a channel in the specified time period.*Shown as request*                                                                                           |
| **aws.lex.bot\_channel\_response\_card\_errors**(count)                            | The number of times that Amazon Lex could not post response cards in the specified period.*Shown as error*                                                                         |
| **aws.lex.bot\_channel\_system\_errors**(count)                                    | The number of internal errors that occurred in Amazon Lex for a channel in the specified period.*Shown as error*                                                                   |
| **aws.lex.conversation\_logs\_audio\_delivery\_success**(count)                    | The number of audio logs successfully delivered to the S3 bucket in the specified time period.*Shown as event*                                                                     |
| **aws.lex.conversation\_logs\_audio\_delivery\_failure**(count)                    | The number of audio logs that failed to be delivered to the S3 bucket in the specified time period.*Shown as event*                                                                |
| **aws.lex.conversation\_logs\_text\_delivery\_success**(count)                     | The number of text logs successfully delivered to CloudWatch Logs in the specified time period.*Shown as event*                                                                    |
| **aws.lex.conversation\_logs\_text\_delivery\_failure**(count)                     | The number of text logs that failed to be delivered to CloudWatch Logs in the specified time period.*Shown as event*                                                               |

### Events{% #events %}

The Amazon Lex integration does not include any events.

### Service Checks{% #service-checks %}

The Amazon Lex integration does not include any service checks.

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
