View a markdown version of this page

countFrequent - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

countFrequent

Use the countFrequent command (also available as count_frequent) to compute an approximate count of each unique field-value combination, sorted in descending order. The command emits an _approxcount field.

Syntax

| countFrequent field[, field ...]

The command uses the following arguments:

  • field – One or more fields to count frequencies for.

Example

The following query counts the frequency of method and status combinations.

fields method, status | countFrequent method, status