I have a rsyslogd on Ubuntu 14.0.1:
$ModLoad imtcp
$InputTCPServerRun 514
$template FILENAME,"/var/log/%fromhost%/syslog.log"
*.* ?FILENAME
If if run
logger -p local0.crit -n 10.240.157.116 -u /dev/null test
On a remote machine, I can see the syslog packet on the rsyslogd-server using tcpdump:
15:43:43.586827 IP 10.240.180.245.37261 > 10.240.157.116.514: SYSLOG local0.critical, length: 33
However, no log is written on the rsyslogd-server for the remote host. The local logs are written as expected to /var/log/rsyslogd-server-hostname/bla