Skip to main content

fields

Description

Filters the displayed fields.

Syntax

fields <filter-options> <field-list>

Required Arguments

ParameterSyntaxDescription
<field-list><field> [, <field>]List of fields to be filtered.

Optional Arguments

ParameterSyntaxDefaultDescription
<filter-options>(+|-)++ indicates that the listed fields should remain, - indicates that the listed fields should be removed from the result.
tip

The + indicator can be omitted.

Example Queries

Example #1
source radius_logs
| fields event.code, host.hostname
Example #2
source radius_logs
| fields - event.code