Renames a field.

ParameterTypeRequiredDefaultDescription
asstringtrue The new name of the field.
fieldstringtrue The field name to remove.

Examples

Rename badName to goodName:

humio
rename(field=badName, as=goodName)

Rename badName to goodName, using assignment syntax:

humio
goodName := rename(badName)