使用 Amazon EventBridge 监控 Amazon Elasticsearch Service 事件 - Amazon Elasticsearch Service
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 Amazon Web Services 服务入门

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

使用 Amazon EventBridge 监控 Amazon Elasticsearch Service 事件

Amazon Elasticsearch Service (Amazon ES) 与 Amazon EventBridge 集成,以通知您影响您的域名的特定事件。Amazon服务中的事件将近乎实时传输到 EventBridge。同样的事件也会发送到Amazon CloudWatch Events,Amazon EventBridge 的前身。您可以编写简单规则来指示您关注的事件,并指示要在事件匹配规则时执行的自动化操作。可自动触发的操作包括:

  • 调用 Amazon Lambda 函数

  • 调用 Amazon EC2 Run Command

  • 将事件中继到 Amazon Kinesis Data Streams

  • 激活AmazonStep Functions 状态机

  • 通知 Amazon SNS 主题或 Amazon SQS 队列

有关更多信息,请参阅 。开始使用 Amazon EventBridge中的Amazon EventBridge 用户指南

服务软件更新事件

亚马逊 ES 将事件发送到 EventBridge,当以下任一情况服务软件更新事件发生。

提供服务软件更新

Amazon ES 将在服务软件更新可用时发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "Amazon ES Service Software Update Notification", "source": "aws.es", "account": "123456789012", "time": "2016-11-01T13:12:22Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Service Software Update", "status": "Available", "severity": "Informational", "description": "Service software update [R20200330-p1] available." } }

开始服务软件更新

Amazon ES 将在服务软件更新开始时发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "Amazon ES Service Software Update Notification", "source": "aws.es", "account": "123456789012", "time": "2016-11-01T13:12:22Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Service Software Update", "status": "Started", "severity": "Informational", "description": "Service software update [R20200330-p1] started." } }

服务软件更新完成

Amazon ES 会在服务软件更新完成后发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "Amazon ES Service Software Update Notification", "source": "aws.es", "account": "123456789012", "time": "2016-11-01T13:12:22Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Service Software Update", "status": "Completed", "severity": "Informational", "description": "Service software update [R20200330-p1] completed." } }

服务软件更新失败

当服务软件更新失败时,Amazon ES 会发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "Amazon ES Service Software Update Notification", "source": "aws.es", "account": "123456789012", "time": "2016-11-01T13:12:22Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Service Software Update", "status": "Failed", "severity": "Medium", "description": "Service software update [R20200330-p1] failed." } }

需要更新服务软件

Amazon ES 在需要更新服务软件时会发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "Amazon ES Service Software Update Notification", "source": "aws.es", "account": "123456789012", "time": "2016-11-01T13:12:22Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Service Software Update", "status": "Required", "severity": "High", "description": "Service software update [R20200330-p1] available. Update will be automatically installed after [30/04/2020] if no action is taken." } }

自动调整事件

亚马逊 ES 将事件发送到 EventBridge,当以下任一情况自动调整事件发生。

自动调整挂起

当自动调整确定了改进集群性能和可用性的优化建议时,Amazon ES 将发送此事件。只有禁用了自动调整的域,您才会看到此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "3acb26c8-397c-4c89-a80a-ce672a864c55", "detail-type": "Amazon ES Auto-Tune Notification", "source": "aws.es", "account": "123456789012", "time": "2020-10-30T22:06:31Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Auto-Tune Event", "severity": "Informational", "status": "Pending", "description": "Auto-Tune recommends new settings for your domain. Enable Auto-Tune to improve cluster stability and performance.", "scheduleTime": "{iso8601-timestamp}" } }

自动调整已开始

当 “自动调整” 开始将新设置应用到您的域时,Amazon ES 会发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "3acb26c8-397c-4c89-a80a-ce672a864c55", "detail-type": "Amazon ES Auto-Tune Notification", "source": "aws.es", "account": "123456789012", "time": "2020-10-30T22:06:31Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Auto-Tune Events", "severity": "Informational", "status": "Started", "scheduleTime": "{iso8601-timestamp}", "startTime": "{iso8601-timestamp}", "description" : "Auto-Tune is applying new settings to your domain." } }

自动调节需要计划蓝色/绿色部署

当自动调整确定了需要预定蓝/绿部署的调整建议时,Amazon ES 将发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "3acb26c8-397c-4c89-a80a-ce672a864c55", "detail-type": "Amazon ES Auto-Tune Notification", "source": "aws.es", "account": "123456789012", "time": "2020-10-30T22:06:31Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Auto-Tune Event", "severity": "Low", "status": "Pending", "startTime": "{iso8601-timestamp}", "description": "Auto-Tune has identified new settings for your domain that require a blue/green deployment. You can schedule the deployment for your preferred time." } }

自动调整已取消

由于没有待处理的优化建议,Amazon ES 会在自动调整计划被取消时发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "3acb26c8-397c-4c89-a80a-ce672a864c55", "detail-type": "Amazon ES Auto-Tune Notification", "source": "aws.es", "account": "123456789012", "time": "2020-10-30T22:06:31Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Auto-Tune Event", "severity": "Low", "status": "Cancelled", "scheduleTime": "{iso8601-timestamp}", "description": "Auto-Tune has cancelled the upcoming blue/green deployment." } }

自动调整已完成

当自动调整完成蓝色/绿色部署并且集群正常运行时,Amazon ES 将发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "3acb26c8-397c-4c89-a80a-ce672a864c55", "detail-type": "Amazon ES Auto-Tune Notification", "source": "aws.es", "account": "123456789012", "time": "2020-10-30T22:06:31Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Auto-Tune Event", "severity": "Informational", "status": "Completed", "completionTime": "{iso8601-timestamp}", "description": "Auto-Tune has completed the blue/green deployment and successfully applied the updated settings." } }

已禁用自动调整并恢复更改

当禁用自动调整并回滚应用的更改时,Amazon ES 会发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "3acb26c8-397c-4c89-a80a-ce672a864c55", "detail-type": "Amazon ES Auto-Tune Notification", "source": "aws.es", "account": "123456789012", "time": "2020-10-30T22:06:31Z", "region": "us-east-1", "resources": [ "arn:aws:es:us-east-1:123456789012:domain/test-domain" ], "detail": { "event": "Auto-Tune Event", "severity": "Informational", "status": "Completed", "description": "Auto-Tune is now disabled. All settings have been reverted. Auto-Tune will continue to evaluate cluster performance and provide recommendations.", "completionTime": "{iso8601-timestamp}" } }

已禁用自动调整并保留更改

当禁用自动调整并保留应用的更改时,Amazon ES 会发送此事件。

示例

以下是此类型的示例事件:

{ "version": "0", "id": "3acb26c8-397c-4c89-a80a-ce672a864c55", "detail-type": "Amazon ES Auto-Tune Notification", "source": "aws.es", "account": "123456789012", "time": "2020-10-30T22:06:31Z", "region": "us-east-1", "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"], "detail": { "event": "Auto-Tune Event", "severity": "Informational", "status": "Completed", "description": "Auto-Tune is now disabled. The most-recent settings by Auto-Tune have been retained. Auto-Tune will continue to evaluate cluster performance and provide recommendations.", "completionTime": "{iso8601-timestamp}" } }