fields

Either selects only specific fields or selectively excludes only specific fields.

Syntax

fields [-] FIELD, ...
Required Parameters
FIELD, ...
List of fields. Use comma (,) as a separator.
Optional Parameters
-
Exclude the fields after the minus symbol (-), these fields are excluded from the output. If you omit this sign, only those fields are selected.

Usage

  1. Select only the src_ip and action fields.

    fields src_ip, action
    
  2. Remove only the line field

    fields – line