Hello,<br><br>Could anyone please help me on this below issue?<br><br>my syslog-ng.conf file look like below:<br><br>The test.sh script work fine, I can see it's output in the test.sh.log file.<br>But the <a href="http://test.pl" target="_blank">test.pl</a> doesn't work. the test.sh and <a href="http://test.pl" target="_blank">test.pl</a> have the same function of printing something to STDOUT.<br>
------------------------------<div id=":1er">-------------------------------------------------------------------------------------------------------------------<br>@version: 3.0<br>#Default configuration file for syslog-ng.<br>
#<br># For a description of syslog-ng configuration file directives, please read<br>
# the syslog-ng Administrator’s guide at:<br>#<br># <a href="http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/bk01-toc.html" target="_blank">http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/bk01-toc.html</a><br>
#<br>
options {<br># Number of syslog lines stored in memory before being written to files<br>flush_lines (0);<br>log_fifo_size (2048);<br>create_dirs (yes);<br>perm (0640);<br>dir_perm (0750);<br>};<br><br><br><br>source ppp { program("/root/perl/<a href="http://test.pl" target="_blank">test.pl</a>"); };<br>
destination ppp {<br>file ("/var/log/syslog-ng/$HOST/perl.pl.log" create_dirs(yes));<br>};<br>log {<br> source(ppp);<br> destination(ppp);<br>};<br><br>source sss { program("/root/shell/test.sh"); };<br>
destination sss {<br>file ("/var/log/syslog-ng/$HOST/test.sh.log" create_dirs(yes));<br>};<br>log {<br> source(sss);<br> destination(sss);<br>};<br>-------------------------------------------------------------------------------------------------------------------------------------------------</div>
<br clear="all"><br>-- <br><p><b><a name="SafeHtmlFilter_SafeHtmlFilter__MailAutoSig"><span>Thanks & Best Regards</span></a></b></p>
<p style="color:rgb(0,0,153)"><b><i><span><span style="font-size:10pt">James Zhu</span></span><span><span style="font-size:10pt"></span></span></i></b></p>
<span><span></span></span><span><span></span></span>
<p><span><b><span>Mobile</span></b></span><span><b><span style="font-size:10.0pt;color:#444444">:</span></b></span><span><span> <i style="color:rgb(51,0,51)">+86 18</i></span></span><i style="color:rgb(51,0,51)"><span><span style="font-size:10pt">6</span></span><span><span> </span></span><span><span style="font-size:10pt">8482 2818</span></span></i><span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"></span></span></p>
<p><span><b><span style="font-size:10pt;color:black">Email: </span></b><span style="font-size:10pt;color:rgb(102,51,51)"><a href="mailto:zhujian0805@gmail.com" target="_blank">zhujian0805@gmail.com</a></span></span></p><br>