the following context is my Input configuration and i get a functong from the manual doc, but the return value of hos_ip() is ip4addr, and I want to convert the return value to string, I have try the string() function, but it does not work at all. Is there any way to convert the return value to string so i can and a new filed of the Input configuration.
description Return the first non-loopback IP address the hostname resolves to.
return type ip4addr
Exec $FileName = file_name(); # Send file name with each message
Exec $HOSTIP = host_ip();