The to_string()
function converts the provided argument to a string value.
to_string(value)
value
: The value to convert to a string. This can be a boolean, integer, or IP address.Returns a string representation of the provided value.
to_string(ip.src) // Converts the source IP to a string
to_string(http.response.code) // Converts the response code to a string
This function is available only in template expressions and not in conditions.