Loading

ES|QL LTRIM function

Embedded
string

String expression. If null, the function returns null.

Removes leading whitespaces from a string.

string result
keyword keyword
text keyword
ROW message = "   some text  ",  color = " red "
| EVAL message = LTRIM(message)
| EVAL color = LTRIM(color)
| EVAL message = CONCAT("'", message, "'")
| EVAL color = CONCAT("'", color, "'")
		
message:keyword color:keyword
'some text ' 'red '