<div dir="ltr"><div>Hi,</div><div>That's it: I don't see the s_net source actually used in any of the log statements.</div><div><br></div><div>For testing you could use for example:</div><div><br></div><div>log {source(s_net); destination(d_messages); };</div><div><br></div><div>And your test messages should show up in /var/log/messages.<br></div><div><br></div><div>Bye,</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Peter Czanik (CzP) <<a href="mailto:peter.czanik@balabit.com" target="_blank">peter.czanik@balabit.com</a>><br>Balabit (a OneIdentity company) / syslog-ng upstream<br><a href="https://syslog-ng.com/community/" target="_blank">https://syslog-ng.com/community/</a><br><a href="https://twitter.com/PCzanik" target="_blank">https://twitter.com/PCzanik</a></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 3, 2018 at 11:04 AM Fosiul Alam <<a href="mailto:fosiul@gmail.com">fosiul@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Thanks,</div><div>please have a look at the log fiel</div><div>I am using the default</div><div><br></div><div>Can you please let me know if this looks ok ? </div><div><br></div><div>I am not using any selinux </div><div><br></div><div><br></div><div>@version: 3.13</div><div>@include "scl.conf"</div><div><br></div><div># Syslog-ng configuration file, compatible with default Debian syslogd</div><div># installation.</div><div><br></div><div># First, set some global options.</div><div>options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);</div><div> owner("root"); group("adm"); perm(0640); stats_freq(0);</div><div> bad_hostname("^gconfd$");</div><div>};</div><div><br></div><div>########################</div><div># Sources</div><div>########################</div><div># This is the default behavior of sysklogd package</div><div># Logs may come from unix stream, but not from another machine.</div><div>#</div><div>source s_src {</div><div> system();</div><div> internal();</div><div>};</div><div><br></div><div># If you wish to get logs from remote machine you should uncomment</div><div># this and comment the above source line.</div><div>#</div><div>source s_net { syslog(ip(192.168.0.13) port(514) transport("tcp")); };</div><div><br></div><div><br></div><div>########################</div><div># Destinations</div><div>########################</div><div># First some standard logfile</div><div>#</div><div>destination d_auth { file("/var/log/auth.log"); };</div><div>destination d_cron { file("/var/log/cron.log"); };</div><div>destination d_daemon { file("/var/log/daemon.log"); };</div><div>destination d_kern { file("/var/log/kern.log"); };</div><div>destination d_lpr { file("/var/log/lpr.log"); };</div><div>destination d_mail { file("/var/log/mail.log"); };</div><div>destination d_syslog { file("/var/log/syslog"); };</div><div>destination d_user { file("/var/log/user.log"); };</div><div>destination d_uucp { file("/var/log/uucp.log"); };</div><div><br></div><div># This files are the log come from the mail subsystem.</div><div>#</div><div>destination d_mailinfo { file("/var/log/<a href="http://mail.info" target="_blank">mail.info</a>"); };</div><div>destination d_mailwarn { file("/var/log/mail.warn"); };</div><div>destination d_mailerr { file("/var/log/mail.err"); };</div><div><br></div><div># Logging for INN news system</div><div>#</div><div>destination d_newscrit { file("/var/log/news/news.crit"); };</div><div>destination d_newserr { file("/var/log/news/news.err"); };</div><div>destination d_newsnotice { file("/var/log/news/news.notice"); };</div><div><br></div><div># Some 'catch-all' logfiles.</div><div>#</div><div>destination d_debug { file("/var/log/debug"); };</div><div>destination d_error { file("/var/log/error"); };</div><div>destination d_messages { file("/var/log/messages"); };</div><div><br></div><div># The root's console.</div><div>#</div><div>destination d_console { usertty("root"); };</div><div><br></div><div># Virtual console.</div><div>#</div><div>destination d_console_all { file(`tty10`); };</div><div><br></div><div># The named pipe /dev/xconsole is for the nsole' utility. To use it,</div><div># you must invoke nsole' with the -file' option:</div><div>#</div><div># $ xconsole -file /dev/xconsole [...]</div><div>#</div><div>destination d_xconsole { pipe("/dev/xconsole"); };</div><div><br></div><div># Send the messages to an other host</div><div>#</div><div>#destination d_net { tcp("127.0.0.1" port(1000) log_fifo_size(1000)); };</div><div><br></div><div># Debian only</div><div>destination d_ppp { file("/var/log/ppp.log"); };</div><div><br></div><div>########################</div><div># Filters</div><div>########################</div><div># Here's come the filter options. With this rules, we can set which</div><div># message go where.</div><div><br></div><div>filter f_dbg { level(debug); };</div><div>filter f_info { level(info); };</div><div>filter f_notice { level(notice); };</div><div>filter f_warn { level(warn); };</div><div>filter f_err { level(err); };</div><div>filter f_crit { level(crit .. emerg); };</div><div><br></div><div>filter f_debug { level(debug) and not facility(auth, authpriv, news, mail); };</div><div>filter f_error { level(err .. emerg) ; };</div><div>filter f_messages { level(info,notice,warn) and</div><div> not facility(auth,authpriv,cron,daemon,mail,news); };</div><div><br></div><div>filter f_auth { facility(auth, authpriv) and not filter(f_debug); };</div><div>filter f_cron { facility(cron) and not filter(f_debug); };</div><div>filter f_daemon { facility(daemon) and not filter(f_debug); };</div><div>filter f_kern { facility(kern) and not filter(f_debug); };</div><div>filter f_lpr { facility(lpr) and not filter(f_debug); };</div><div>filter f_local { facility(local0, local1, local3, local4, local5,</div><div> local6, local7) and not filter(f_debug); };</div><div>filter f_mail { facility(mail) and not filter(f_debug); };</div><div>filter f_news { facility(news) and not filter(f_debug); };</div><div>filter f_syslog3 { not facility(auth, authpriv, mail) and not filter(f_debug); };</div><div>filter f_user { facility(user) and not filter(f_debug); };</div><div>filter f_uucp { facility(uucp) and not filter(f_debug); };</div><div><br></div><div>filter f_cnews { level(notice, err, crit) and facility(news); };</div><div>filter f_cother { level(debug, info, notice, warn) or facility(daemon, mail); };</div><div><br></div><div>filter f_ppp { facility(local2) and not filter(f_debug); };</div><div>filter f_console { level(warn .. emerg); };</div><div><br></div><div>########################</div><div># Log paths</div><div>########################</div><div>log { source(s_src); filter(f_auth); destination(d_auth); };</div><div>log { source(s_src); filter(f_cron); destination(d_cron); };</div><div>log { source(s_src); filter(f_daemon); destination(d_daemon); };</div><div>log { source(s_src); filter(f_kern); destination(d_kern); };</div><div>log { source(s_src); filter(f_lpr); destination(d_lpr); };</div><div>log { source(s_src); filter(f_syslog3); destination(d_syslog); };</div><div>log { source(s_src); filter(f_user); destination(d_user); };</div><div>log { source(s_src); filter(f_uucp); destination(d_uucp); };</div><div><br></div><div>log { source(s_src); filter(f_mail); destination(d_mail); };</div><div>#log { source(s_src); filter(f_mail); filter(f_info); destination(d_mailinfo); };</div><div>#log { source(s_src); filter(f_mail); filter(f_warn); destination(d_mailwarn); };</div><div>#log { source(s_src); filter(f_mail); filter(f_err); destination(d_mailerr); };</div><div><br></div><div>log { source(s_src); filter(f_news); filter(f_crit); destination(d_newscrit); };</div><div>log { source(s_src); filter(f_news); filter(f_err); destination(d_newserr); };</div><div>log { source(s_src); filter(f_news); filter(f_notice); destination(d_newsnotice); };</div><div>#log { source(s_src); filter(f_cnews); destination(d_console_all); };</div><div>#log { source(s_src); filter(f_cother); destination(d_console_all); };</div><div><br></div><div>#log { source(s_src); filter(f_ppp); destination(d_ppp); };</div><div><br></div><div>log { source(s_src); filter(f_debug); destination(d_debug); };</div><div>log { source(s_src); filter(f_error); destination(d_error); };</div><div>log { source(s_src); filter(f_messages); destination(d_messages); };</div><div><br></div><div>log { source(s_src); filter(f_console); destination(d_console_all);</div><div> destination(d_xconsole); };</div><div>log { source(s_src); filter(f_crit); destination(d_console); };</div><div><br></div><div># All messages send to a remote site</div><div>#</div><div>#log { source(s_src); destination(d_net); };</div><div>#log { source(s_src); source(s_net); destination(d_auth); };</div><div>###</div><div># Include all config files in /etc/syslog-ng/conf.d/</div><div>###</div><div>@include "/etc/syslog-ng/conf.d/*.conf"</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 3, 2018 at 9:19 AM Czanik, Péter <<a href="mailto:peter.czanik@balabit.com" target="_blank">peter.czanik@balabit.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>The source declaration seems to be all right. If it still does not work, just a few more ideas what to check:</div><div><br></div><div>- make sure, that this source is actually used in a log path (other way it is not used)<br></div><div>- if you use SELinux, set it to permissive mode temporarily (setenforce 0)</div><div>- make sure that your firewall does not block it</div><div>- the syslog() source is for RFC5424 logs, make sure that you send your logs using this protocol version</div><div><br></div><div>Have a nice weekend!</div><div><br></div><div>Bye,<br></div><div><br></div><div><div><div dir="ltr" class="m_-4422978436026947503m_-5434333772801795047gmail_signature" data-smartmail="gmail_signature">Peter Czanik (CzP) <<a href="mailto:peter.czanik@balabit.com" target="_blank">peter.czanik@balabit.com</a>><br>Balabit (a OneIdentity company) / syslog-ng upstream<br><a href="https://syslog-ng.com/community/" target="_blank">https://syslog-ng.com/community/</a><br><a href="https://twitter.com/PCzanik" target="_blank">https://twitter.com/PCzanik</a></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 3, 2018 at 10:01 AM Fosiul Alam <<a href="mailto:fosiul@gmail.com" target="_blank">fosiul@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi<div>Thanks, </div><div>i have changed this to </div><div>source s_net { syslog(ip(192.168.1.13) port(514) transport("tcp")); };<br></div><div><br></div><div>still it does not listen to 514 or 601</div><div><br></div><div>do i need to do anthing in the config file to make it activate ? </div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 2, 2018 at 9:18 PM Péter, Kókai <<a href="mailto:peter.kokai@oneidentity.com" target="_blank">peter.kokai@oneidentity.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Hello,</span><div><br></div><div>The syslog source by default listening on 601 port, you could change that with port(514) if you want to.</div><div><br></div><div>See the admin guide: <a href="https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.16/administration-guide/23#TOPIC-956472" target="_blank">https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.16/administration-guide/23#TOPIC-956472</a></div><div><br></div><div><br></div><div>--</div><div>Kokan<br><br><div class="gmail_quote"><div dir="ltr">On Fri, 2 Nov 2018, 7:29 pm Fosiul Alam, <<a href="mailto:fosiul@gmail.com" target="_blank">fosiul@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello<br>i have installed syslog-ng in our ubuntu server with version : 3.13</div><div dir="ltr"><div><br></div><div>its running fine, I am using the default syslog-ng file and i have change this line as per documentation </div><div><br></div><div>source s_net { syslog(ip(192.168.1.19) transport("tcp")); };<br></div><div><br></div><div>but its not listing on port 514</div><div><br></div><div>What Do i have to do make it listen ?</div><div><br></div><div>Thanks for the help</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>● syslog-ng.service - System Logger Daemon</div><div> Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled; vendor preset: enabled)</div><div> Active: active (running) since Fri 2018-11-02 18:22:46 UTC; 4min 5s ago</div><div> Docs: man:syslog-ng(8)</div><div> Main PID: 16470 (syslog-ng)</div><div> Tasks: 1 (limit: 2361)</div><div> CGroup: /system.slice/syslog-ng.service</div><div> └─16470 /usr/sbin/syslog-ng -F</div><div><br></div><div>Nov 02 18:22:46 syslog systemd[1]: Starting System Logger Daemon...</div><div>Nov 02 18:22:46 syslog systemd[1]: Started System Logger Daemon.</div></div></div></div></div></div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><br></div><div><br></div>-- <br><div dir="ltr" class="m_-4422978436026947503m_-5434333772801795047m_8886699239782949219m_5957009627078044265m_-3037436785505821643gmail_signature"><div dir="ltr">Regards<br>Fosiul Alam<br><br></div></div></div></div></div></div></div>
______________________________________________________________________________<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></div>
______________________________________________________________________________<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-4422978436026947503m_-5434333772801795047m_8886699239782949219gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards<br>Fosiul Alam<br><br></div></div>
______________________________________________________________________________<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>
______________________________________________________________________________<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-4422978436026947503gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards<br>Fosiul Alam<br><br></div></div>
______________________________________________________________________________<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>