<div dir="ltr">Hi <div>I am getting below error while restarting server .</div><div><br></div><div><div>[root@localhost logs]# /etc/init.d/syslog-ng restart</div><div>Stopping syslog-ng: [FAILED]</div><div>syslog-ng is stopped</div><div>Starting syslog-ng: [2018-05-11T16:41:55.756615] Error binding socket; addr='AF_INET(0.0.0.0:514)', error='Address already in use (98)'</div><div>[2018-05-11T16:41:55.756684] Error initializing message pipeline; plugin name='network', location='/etc/syslog-ng/syslog-ng.conf:24:3'</div><div> [FAILED]</div></div><div><br></div><div><br></div><div>My requirement :-</div><div><br></div><div>OS:- centos 6.5</div><div><br></div><div>1. I want to use wildcard to send all apache custom logs from client to server .</div><div><br></div><div>Configuration of both client and server :-</div><div><br></div><div> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>client conf<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div><div><div><div>@version:3.13</div><div>@include "scl.conf"</div><div>@define allow-config-dups 1</div></div><div><br></div><div>source s_local {</div><div> system();</div><div> internal();</div><div><br></div><div>};</div><div>destination d_network {udp("192.168.122.67" port(514));</div><div><br></div><div>};</div><div><br></div><div>destination d_local {</div><div> file("/var/log/messages");</div><div>};</div><div><br></div><div>log{</div><div> source(s_local);</div><div> destination(d_network);</div><div> destination(d_local);</div><div><br></div><div>};</div><div><br></div><div>####################</div><div>source s_local{</div><div> wildcard-file(</div><div> base-dir("/usr/local/apache/logs")</div><div> filename-pattern("*.log")</div><div> recursive(no)</div><div> follow-freq(1));</div><div>};</div><div><br></div><div>destination d_network {tcp("192.168.122.67" port(514));</div><div><br></div><div>};</div><div><br></div><div>log{</div><div> source(s_local);</div><div> destination(d_network);</div><div><br></div><div>};</div><div> </div><div><br></div><div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>server conf<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div><div><br></div><div><div>@version:3.13</div><div>@include "scl.conf"</div></div><div><br></div><div>source s_local{system(); internal();};</div><div>source s_network{</div><div><br></div><div> udp();</div><div> tcp();</div><div><br></div><div>};</div><div><br></div><div>destination d_local{file("/var/log/messages");};</div><div>destination d_from_net{file("/var/log/from_net");};</div><div>log{</div><div> source(s_local);</div><div> destination(d_local);</div><div>};</div><div>log { source(s_network); destination(d_from_net); };</div><div><br></div><div><br></div><div>source s_net {</div><div> network(flags(no-parse));</div><div>};</div><div><br></div><div>parser p_apache {</div><div> csv-parser(</div><div> columns("apache.FILE_NAME", "apache.MESSAGE")</div><div> flags(greedy)</div><div> );</div><div>};</div><div>destination d_apache {</div><div> file("/usr/local/apache/logs/${apache.FILE_NAME}"</div><div> template("${apache.MESSAGE}\n"));</div><div>};</div><div><br></div><div>log{</div><div> source (s_net);</div><div> parser (p_apache);</div><div> destination(d_apache);</div><div>};</div><div><br></div><div><br></div><div>What should be changed on configuration file on both side ?</div><div> </div><div><br></div><div><br></div><div> </div></div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><b><font color="#0000ff"><i>Thanks & Regards </i></font>:-<br></b></div><b>VINOD SINGH SAUD<br></b></div><div><b>(M):- 09718663552<br></b></div><div><b><font color="#00ff00">(W):-09997645597</font><br></b></div><div><b>(E) :- <a href="mailto:vinod.samant.123@gmail.com" target="_blank">vinod.samant.123@gmail.com</a><br></b></div></div></div></div></div></div>
</div></div>