Loading

ES|QL RTRIM function

Embedded
string

String expression. If null, the function returns null.

Removes trailing whitespaces from a string.

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