parsemap

Extracts all the keys from the map to the field.

Syntax

parsemap [overlay=BOOL] field=TARGET_FIELD
Required Parameters
field=TARGET_FIELD
Field to be parsed in the input data stream
Optional Parameters
overlay=BOOL
Option to control data-overwrite (default: f).
  • t: Outputs both the parsed data and the original data.
  • f: Outputs the parsed data only.

Usage

Extract all key-value pairs of the complex field into the fields.

json "{'complex': {'id':100, 'name':'Logpresso'} }" | parsemap field=complex