Hi All,<br><br>I have made changes in syslog-ng.conf to redirect logs coming from other server to<br>some specified log file and in some format<br><br><div>source s_external {<br>        udp(port(514));</div>
<div>};<br>source s_stunnel {<br>       tcp(ip(127.0.0.1) port(514));<br>};<br><br></div>
<div>destination s_external { file(&quot;/mydir/syslogs/$HOST_syslog.log&quot; \<br>    owner(user) group(group) perm(0600) dir_perm(0700) create_dirs(yes)); </div>
<div>};</div>
<div><br><div>destination s_stunnel { file(&quot;/mydir/syslogs/$HOST/syslog.log&quot; \<br>    owner(user) group(group) perm(0600) dir_perm(0700) create_dirs(yes)); </div>

<div>};</div> 
<br></div>
<div>log { source(s_external); destination(s_external); };<br>log { source(s_stunnel); destination(s_stunnel); };<br></div><br clear="all">But my log file is being created with name &quot;syslog.log&quot; and not as &quot;&lt;hostnmae/ip&gt;_syslog.log&quot;<br>
neither $HOST directory made, what may be the issue?<br><br>Globle options are<br><br>option{<br><br>long_hostname(off);<br>sync(0);<br>}<br><br><br> <br>-- <br>Regards..<br>Abhay Singh..<br>91-98804-55587<br>Sr. Software Engineer.<br>
Robust Designs India Pvt Ltd.<br>Bangalore<br>