View a markdown version of this page

countFrequent - Amazon CloudWatch Logs

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

countFrequent

使用 countFrequent命令 (也提供 count_frequent) 來計算每個唯一欄位值組合的近似計數,依遞減順序排序。命令會發出 _approxcount 欄位。

語法

| countFrequent field[, field ...]

命令使用下列引數:

  • field – 要計算頻率的一或多個欄位。

範例

下列查詢會計算方法和狀態組合的頻率。

fields method, status | countFrequent method, status