I am tesing nxlog on Ubuntu 16.04 LTS with the configuration
Exec $HOSTIP = string(host_ip());
Exec file_write("/tmp/debug.txt", "HostIP:" + $HOSTIP);
Path udpin => udpfile
and I generated log using linux command nc -u 127.0.0.1 1514 and can not get IP in /tmp/debug.txt.
1. I have reinstall the Ubuntu 16.04 LTS purely and install the deb file from nxlog.co， and it still does not get the IP address
2. I install the nxlog from source code, and it still does not get the IP address
3. I test the same configuration on CentOS7, CentOS6, Ubuntu 14.04 LTS. It works correctly.
so， is there someting that does not compatible with the Ubuntu 16.04 LTS?