Home / Search/ Language Reference/ Functions/ Scalar Functions/ String Functions/strlen

strlen

The strlen function returns the length, in characters, of the input string.

Syntax

    strlen( Source )

Arguments

  • Source:The source string that will be measured for string length.

Results

Returns the length, in characters, of the input string.

This function counts Unicode code points.

Examples

print str1="hello" | extend fieldlen=strlen(str1)