View a markdown version of this page

where - Amazon CloudWatch Logs

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

where

使用 where命令做為filter命令的別名。它接受相同的語法和行為。

語法

| where condition

命令使用下列引數:

  • condition – 與filter命令接受內容相同的布林表達式。

範例

下列查詢篩選條件適用於包含「錯誤」的日誌事件。

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