View a markdown version of this page

where - 亚马逊 CloudWatch 日志

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

where

使用该where命令作为filter命令的别名。它接受相同的语法和行为。

语法

| where condition

该命令使用以下参数:

  • condition— 与filter命令接受的值相同的布尔表达式。

示例

以下查询过滤器用于筛选包含 “错误” 的日志事件。

fields @timestamp, @message | where @message like /error/