I am tesing nxlog on Ubuntu 16.04 LTS with the configuration

<Extension fileop>
        Module xm_fileop

<Input udpin>
        Module im_udp
        Port 1514
        Exec $HOSTIP = string(host_ip());
        Exec file_write("/tmp/debug.txt", "HostIP:" + $HOSTIP);

<Output udpfile>
        Module om_file
        File "/var/log/udp.log"

<Route udp>
    Path udpin => udpfile

and  I generated log using linux command nc -u 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?

AskedOctober 18, 2017 - 11:13am

Answer (1)