Tabular Operators

project-keep operator

Selects specified fields from the input to keep in the output.

The order of the fields in the result is determined by their original order in the dataset. Only the fields that are specified as arguments are kept. The other fields are excluded from the result. See project for more detail.

Syntax

| project-keep FieldName1, FieldName2, ...

Arguments

nametypedescription
Field NamestringThe name of the field to be kept in the output.

Returns

A table with fields that are named as arguments. Contains the same number of rows as the input table.

Examples

['http-logs']
| project-keep  ['geo.city'], ['geo.country'], method

Was this page helpful?