Reputation: 385
Is there any way to store Amazon Lex log and metrics data in an Amazon S3 bucket?
Upvotes: 2
Views: 620
Reputation: 129
To turn on logs using the console
Open the Amazon Lex console https://console.aws.amazon.com/lex.
From the list, choose a bot.
Choose the Settings tab, and then from the left menu choose Conversation logs.
In the list of aliases, choose the settings icon for the alias for which you want to configure conversation logs.
Select whether to log text, audio, or both.
For text logging, enter the Amazon CloudWatch Logs log group name.
For audio logging, enter the S3 bucket information.
Optional. To encrypt audio logs, choose the AWS KMS key to use for encryption.
Choose an IAM role with the required permissions.
Choose Save to start logging conversations.
Upvotes: 2
Reputation: 2729
As of a few weeks ago, you can now save Lex text conversation logs to CloudWatch Logs (text bot), and audio conversation logs to S3.
As usual, metrics can be exported with the GetMetricData API: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html
Upvotes: 2