set

Object

Sets a field to a literal value on an object, or on every object in an array. Useful for adding a constant tag, label, or computed string to every record in a pipeline.

Syntaxset:key,value
keyField name to set
valueValue to assign (parsed as JSON if valid, otherwise a string)

Use cases

All commands