upper
upper
📝 StringConvert all alphabetic characters to uppercase
upper(string) → string string The input string with all characters converted to uppercase; null if input is null
The upper function converts the input string to uppercase.
Edge Cases
Section titled “Edge Cases”- If
stringisnull, returnsnull - Non-alphabetic characters (numbers, punctuation, spaces) are unchanged
- Works with Unicode characters where case conversion is defined
Examples
Section titled “Examples”| eval user_upper = upper(user)
Creates a new field user_upper with the uppercase version of user.
| where upper(env) == "PRODUCTION"
Matches records where env is “production”, “Production”, “PRODUCTION”, etc.
| eval level_upper = upper(level)
Normalizes log level field to uppercase.
Used In
Section titled “Used In”eval— to create or transform string fields