简体   繁体   English

我可以在 S3 中保存 Amazon Lex 日志和指标数据吗?

[英]Can I save Amazon Lex log and metrics data in S3?

Is there any way to store Amazon Lex log and metrics data in an Amazon S3 bucket?有没有办法将 Amazon Lex 日志和指标数据存储在 Amazon S3 存储桶中?

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.截至几周前,您现在可以将 Lex 文本对话日志保存到 CloudWatch Logs(文本机器人),并将音频对话日志保存到 S3。

https://aws.amazon.com/blogs/machine-learning/using-amazon-lex-conversation-logs-to-monitor-and-improve-interactions/ https://aws.amazon.com/blogs/machine-learning/using-amazon-lex-conversation-logs-to-monitor-and-improve-interactions/

As usual, metrics can be exported with the GetMetricData API: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html像往常一样,可以使用 GetMetricData API 导出指标: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.ZFC35FDC70D5FC69D76988ZA822E

To turn on logs using the console使用控制台打开日志

  1. Open the Amazon Lex console https://console.aws.amazon.com/lex .打开 Amazon Lex 控制台https://console.aws.amazon.com/lex

  2. From the list, choose a bot.从列表中选择一个机器人。

  3. Choose the Settings tab, and then from the left menu choose Conversation logs.选择设置选项卡,然后从左侧菜单中选择对话日志。

  4. In the list of aliases, choose the settings icon for the alias for which you want to configure conversation logs.在别名列表中,选择要为其配置对话日志的别名的设置图标。

  5. Select whether to log text, audio, or both. Select 是否记录文本、音频或两者。

  6. For text logging, enter the Amazon CloudWatch Logs log group name.对于文本日志记录,输入 Amazon CloudWatch Logs 日志组名称。

  7. For audio logging, enter the S3 bucket information.对于音频日志记录,输入 S3 存储桶信息。

  8. Optional.可选的。 To encrypt audio logs, choose the AWS KMS key to use for encryption.要加密音频日志,请选择要用于加密的 AWS KMS 密钥。

  9. Choose an IAM role with the required permissions.选择具有所需权限的 IAM 角色。

  10. Choose Save to start logging conversations.选择保存以开始记录对话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM