<div dir="ltr">Hello,<div><br></div><div>Also please when testing do not use a full blown configuration, that is just in a way of everybody. Create the most simple configuration file you can make, and test with that configuration file.</div><div><br></div><div>Like:</div><div>#test.conf</div><div>@version: 3.13</div><div>@include "scl.conf"</div><div><br></div><div><span style="color:rgb(33,33,33)">source s_net { syslog(ip(192.168.1.19) transport("tcp") port(514)); };</span><br></div><div><br></div><div>destination d_file { file("/tmp/syslog-ng.txt"); };</div><div><br></div><div>log { source(s_net); destination(d_file); };</div><div><br></div><div>Start it with syslog-ng -Fdev -f test.conf </div><div><br></div><div>* Check the output for clues and/or paste here so we could also check it.</div><div>* How did you checked that it is not listening on that port ?<br></div><div>  (syslog-ng usually either listens on that port or fails to start, so I am curious)</div><div><br></div><div><br></div><div><br></div><div>--</div><div>Kokan</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 3, 2018 at 10:17 PM PÁSZTOR György <<a href="mailto:pasztor@linux.gyakg.u-szeged.hu">pasztor@linux.gyakg.u-szeged.hu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
"Fosiul Alam" <<a href="mailto:fosiul@gmail.com" target="_blank">fosiul@gmail.com</a>> írta 2018-11-03 10:35-kor:<br>
> Nov 03 10:34:25 syslog systemd[1]: syslog-ng.service: Main process exited,<br>
> code=exited, status=2/INVALIDARGUMENT<br>
> Nov 03 10:34:25 syslog systemd[1]: syslog-ng.service: Failed with result<br>
> 'exit-code'.<br>
> Nov 03 10:34:25 syslog systemd[1]: Failed to start System Logger Daemon.<br>
> Nov 03 10:34:26 syslog systemd[1]: syslog-ng.service: Service hold-off time<br>
> over, scheduling restart.<br>
> Nov 03 10:34:26 syslog systemd[1]: syslog-ng.service: Scheduled restart<br>
> job, restart counter is at 5.<br>
> Nov 03 10:34:26 syslog systemd[1]: Stopped System Logger Daemon.<br>
> Nov 03 10:34:26 syslog systemd[1]: syslog-ng.service: Start request<br>
> repeated too quickly.<br>
> Nov 03 10:34:26 syslog systemd[1]: syslog-ng.service: Failed with result<br>
> 'exit-code'.<br>
> Nov 03 10:34:26 syslog systemd[1]: Failed to start System Logger Daemon.<br>
<br>
Ok, but what is the error message?<br>
As it seems, shitemd joarnal doesn't contain any useful message.<br>
<br>
Try to start manually in your terminal in foreground mode (-F).<br>
If it still doesn't show any useful message, you can try to use some<br>
verbose (-v) or debug switch (-d).<br>
Using -e can be also useful.<br>
And next time, for just testing the config file, you can try to use the -s<br>
option for syntax-check only. That way you could be sure, if your config<br>
file syntactically okay and if it is, then you can restart your service.<br>
<br>
Regards,<br>
Gyu<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>