unique() function

The unique() function returns all records containing unique values in a specified column. Group keys, record columns, and values are not modified.

*Function type: Selector
**
Output data type:* Record

  1. unique(column: "_value")

Empty tables

unique() drops empty tables.

Parameters

column

The column searched for unique values. Defaults to "_value".

*Data type: String*

Examples

  1. from("example-bucket")
  2. |> range(start: -15m)
  3. |> filter(fn: (r) => r._measurement == "syslog")
  4. |> unique(column: "message")