strlen()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Returns the length, in characters, of the input string.
Note
This function counts Unicode code points.
strlen(
source)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
source | string |
✔️ | The string for which to return the length. |
Returns the length, in characters, of the input string.
Kusto
print length = strlen("hello")
Output
length |
---|
5 |
Kusto
print length = strlen("⒦⒰⒮⒯⒪")
Output
length |
---|
5 |
Kusto
print strlen('Çedilla') // the first character is a grapheme cluster
// that requires 2 code points to represent
Output
length |
---|
8 |