Tabular Operators
project-keep operator
Select what fields from the input to keep in the output.
The order of the fileds in the result is determined by their original order in the dataset. Only the fields that were specified as arguments are kept. The other fields are excluded from the result. See also See also project.
Syntax
| project-keep FieldName1, FieldName2, ...
Arguments
name | type | description |
---|---|---|
Field Name | string | The name of the field or to be kept in the output. |
Returns
A table with fields that were named as arguments. Contains same number of rows as the input table.
Examples
['http-logs']| project-keep ['geo.city'], ['geo.country'], method