如何使用 Terraform 启用 AWS ElasticSearch 域的错误日志

How to enable AWS ElasticSearch domain's Error logs using Terraform

我想知道是否可以从 ElasticSearch 域的 Terraform 脚本启用错误日志,可以从 AWS Console.

配置

但是根据 Terraform 文档,supported log_types for ES domain 是:INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS

您指的是“错误日志”ES_APPLICATION_LOGS 让您 => 指定 log_type = "ES_APPLICATION_LOGS"

参见例如https://docs.aws.amazon.com/cli/latest/reference/es/describe-elasticsearch-domain.html 表示

ES_APPLICATION_LOGS: Elasticsearch application logs contain information about errors and warnings raised during the operation of the service and can be useful for troubleshooting.