Skip to main content

tokenize (Stream Processor)

Tokenize the list and return each key, value as new attributes in events

Syntax

list:tokenize(<OBJECT> list)
list:tokenize(<OBJECT> list, <OBJECT> ...)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
listArray list which needs to be tokenizedOBJECTNoYes

Extra Return Attributes

NameDescriptionPossible Types
indexIndex of an entry consisted in the listINT
valueValue of an entry consisted in the listOBJECT

Example 1

list:tokenize(customList)

If custom list contains (gdn, IBM, XYZ) elements, then tokenize function returns three events with value attributes gdn, IBM, and XYZ respectively.