fields
Either selects only specific fields or selectively excludes only specific fields.
Syntax
fields [-] FIELD, ...
Required Parameter
FIELD, ...
- List of fields. Use comma (
,
) as a separator.
Optional Parameter
-
- 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
-
Select only the src_ip and action fields.
fields src_ip, action
-
Remove only the line field
fields – line