26 Feb
2015
26 Feb
'15
4:39 p.m.
Hello; I use this and it works fine for me. destination d_remotehosts { file( "/var/log/hosts/$YEAR/$MONTH/$DAY/$HOST/$FACILITY.log" perm( 0644 ) create_dirs( yes ) dir_perm( 0755 ) ); }; Regards; John From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Thanuje Ashwin Nallaperuma Sent: Thursday, February 26, 2015 1:33 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng] Get host IP inside source { file ( ); } driver Hi, I want to read a file which is in the name of the IP of syslog-ng client machine I tried with $HOST macro source { file (/mnt/$HOST); }; But this does not work Any help on doing this ?