<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">All of my conf files are included in scl.conf is scl.conf and @include "/etc/syslog-ng/conf.d/*.conf loading the same module twice ?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 21, 2016, at 1:58 PM, Ivan Adji - Krstev <<a href="mailto:akivanradix@gmail.com" class="">akivanradix@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
<div bgcolor="#FFFFFF" text="#000000" class="">
Hi yes i start to put the file but i have some other problems...
anyway here it's the config file ( syslog-ng.conf )<br class="">
<br class="">
<br class="">
@version:3.8<br class="">
@include "scl.conf"<br class="">
<br class="">
# syslog-ng configuration file.<br class="">
#<br class="">
# This should behave pretty much like the original syslog on RedHat.
But<br class="">
# it could be configured a lot smarter.<br class="">
#<br class="">
# See syslog-ng(8) and syslog-ng.conf(5) for more information.<br class="">
#<br class="">
# Note: it also sources additional configuration files (*.conf)<br class="">
# located in /etc/syslog-ng/conf.d/<br class="">
<br class="">
<br class="">
options {<br class="">
flush_lines (0);<br class="">
time_reopen (10);<br class="">
log_fifo_size (1000);<br class="">
#<br class="">
log_iw_size(100);<br class="">
log_fetch_limit(100);<br class="">
#<br class="">
chain_hostnames (off);<br class="">
use_dns (no);<br class="">
use_fqdn (no);<br class="">
create_dirs (no);<br class="">
keep_hostname (yes);<br class="">
};<br class="">
<br class="">
source s_sys {<br class="">
system();<br class="">
#unix-stream("/dev/log");<br class="">
internal();<br class="">
network(<br class="">
port(6514)<br class="">
# tcp(port(5140));<br class="">
# file("/proc/kmsg" log_prefix("kernel: "));<br class="">
transport("tls")<br class="">
tls( key_file("/etc/syslog-ng/cert.d/serverkey.pem")<br class="">
cert_file("/etc/syslog-ng/cert.d/servercert.pem")<br class="">
ca_dir("/etc/syslog-ng/ca.d"))<br class="">
);<br class="">
};<br class="">
<br class="">
<br class="">
destination d_mongodb {<br class="">
mongodb(<br class="">
servers("localhost:27017")<br class="">
# database("syslog")<br class="">
uri('<a href="mongodb://localhost/syslog-ng'" class="">mongodb://localhost/syslog-ng'</a>)<br class="">
collection("messages")<br class="">
value-pairs(<br class="">
scope("selected-macros" "nv-pairs" "sdata")<br class="">
)<br class="">
);<br class="">
};<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
destination d_cons { file("/dev/console"); };<br class="">
destination d_mesg { file("/var/log/messages"); };<br class="">
destination d_auth { file("/var/log/secure"); };<br class="">
destination d_mail { file("/var/log/maillog" flush_lines(10)); };<br class="">
destination d_spol { file("/var/log/spooler"); };<br class="">
destination d_boot { file("/var/log/boot.log"); };<br class="">
destination d_cron { file("/var/log/cron"); };<br class="">
destination d_kern { file("/var/log/kern"); };<br class="">
destination d_mlal { usertty("*"); };<br class="">
<br class="">
filter f_kernel { facility(kern); };<br class="">
filter f_default { level(info..emerg) and<br class="">
not (facility(mail)<br class="">
or facility(authpriv)<br class="">
or facility(cron)); };<br class="">
filter f_auth { facility(authpriv); };<br class="">
filter f_mail { facility(mail); };<br class="">
filter f_emergency { level(emerg); };<br class="">
filter f_news { facility(uucp) or<br class="">
(facility(news)<br class="">
and level(crit..emerg)); };<br class="">
filter f_boot { facility(local7); };<br class="">
filter f_cron { facility(cron); };<br class="">
<br class="">
#log { source(s_sys); filter(f_kernel); destination(d_cons); };<br class="">
log { source(s_sys); filter(f_kernel); destination(d_mongodb); };<br class="">
log { source(s_sys); filter(f_default); destination(d_mongodb); };<br class="">
log { source(s_sys); filter(f_auth); destination(d_mongodb); };<br class="">
log { source(s_sys); filter(f_mail); destination(d_mongodb); };<br class="">
log { source(s_sys); filter(f_emergency); destination(d_mongodb); };<br class="">
log { source(s_sys); filter(f_news); destination(d_mongodb); };<br class="">
log { source(s_sys); filter(f_boot); destination(d_mongodb); };<br class="">
log { source(s_sys); filter(f_cron); destination(d_mongodb); };<br class="">
<br class="">
<br class="">
log { source(s_sys); destination(d_mongodb); };<br class="">
<br class="">
# Source additional configuration files (.conf extension only)<br class="">
@include "/etc/syslog-ng/conf.d/*.conf"<br class="">
<br class="">
<br class="">
# vim:ft=syslog-ng:ai:si:ts=4:sw=4:et:<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<div class="moz-cite-prefix">On 04/21/2016 06:12 PM, Scot Needy
wrote:<br class="">
</div>
<blockquote cite="mid:91545F98-946C-41A9-ABBF-DBC5BDF3A5C5@gmail.com" type="cite" class="">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252" class="">
Or the module does not die on stop and tries to start another.
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Apr 21, 2016, at 11:20 AM, Balazs Scheidler
<<a moz-do-not-send="true" href="mailto:bazsi77@gmail.com" class="">bazsi77@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">maybe you have two sources binding
on the same port?<br class="">
<br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Thu, Apr 21, 2016 at 4:36
PM, Scot Needy <span dir="ltr" class=""><<a moz-do-not-send="true" href="mailto:scotrn@gmail.com" target="_blank" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:scotrn@gmail.com">scotrn@gmail.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">
<div class="">I don’t see your conf files but I
suspect it’s trying to load the tls module twice
? </div>
<div class="">
<div class="h5">
<div class=""><br class="">
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Apr 21, 2016, at 10:04
AM, Ivan Adji - Krstev <<a moz-do-not-send="true" href="mailto:akivanradix@gmail.com" target="_blank" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:akivanradix@gmail.com">akivanradix@gmail.com</a>>
wrote:</div>
<br class="">
<div class="">
<div bgcolor="#FFFFFF" text="#000000" class=""> <font class="" face="Helvetica, Arial, sans-serif">It
is the same ... if i restart the
syslog-ng after that ill get the
same error. If i stop the syslog-ng
that port is not used anymore ... <br class="">
Here is the output of the <b class="">syslog-ng -Fevd</b><br class="">
<br class="">
[2016-04-21T16:02:41.478174]
WARNING: Starting with syslog-ng
3.6, the system() source performs
JSON parsing of messages starting
with the '@cim:' prefix. No
additional action is needed;<br class="">
[2016-04-21T16:02:41.478635] Module
loaded and initialized successfully;
module='sdjournal'<br class="">
[2016-04-21T16:02:41.478776]
Finishing include; content='source
confgen system', depth='1'<br class="">
[2016-04-21T16:02:41.479601] Module
loaded and initialized successfully;
module='afsocket'<br class="">
[2016-04-21T16:02:41.481135] Module
loaded and initialized successfully;
module='afmongodb'<br class="">
[2016-04-21T16:02:41.481914] Module
loaded and initialized successfully;
module='affile'<br class="">
[2016-04-21T16:02:41.482779] Module
loaded and initialized successfully;
module='afuser'<br class="">
[2016-04-21T16:02:41.484211] Unable
to detect fully qualified hostname
for localhost, use_fqdn() will use
the short hostname;<br class="">
[2016-04-21T16:02:41.484252]
Compiling #unnamed sequence [log] at
[/etc/syslog-ng/syslog-ng.conf:128:7]<br class="">
[2016-04-21T16:02:41.484264]
Compiling s_sys reference [source]
at
[/etc/syslog-ng/syslog-ng.conf:128:7]<br class="">
[2016-04-21T16:02:41.484276]
Compiling s_sys sequence [source] at
[/etc/syslog-ng/syslog-ng.conf:29:1]<br class="">
[2016-04-21T16:02:41.484286]
Compiling #unnamed junction [log] at
[/etc/syslog-ng/syslog-ng.conf:29:15]<br class="">
[2016-04-21T16:02:41.484295]
Compiling #unnamed sequence [log] at
[source confgen system:2:5]<br class="">
[2016-04-21T16:02:41.484304]
Compiling #unnamed sequence [source]
at [source confgen system:2:5]<br class="">
[2016-04-21T16:02:41.484314]
Compiling #unnamed junction [log] at
[source confgen system:2:13]<br class="">
[2016-04-21T16:02:41.484323]
Compiling #unnamed single [log] at
[source confgen system:3:1]<br class="">
[2016-04-21T16:02:41.484337]
Compiling #unnamed single [log] at
[/etc/syslog-ng/syslog-ng.conf:32:2]<br class="">
[2016-04-21T16:02:41.484347]
Compiling #unnamed single [log] at
[/etc/syslog-ng/syslog-ng.conf:33:2]<br class="">
[2016-04-21T16:02:41.484363]
Compiling f_auth reference [filter]
at
[/etc/syslog-ng/syslog-ng.conf:128:22]<br class="">
[2016-04-21T16:02:41.484374]
Compiling f_auth sequence [filter]
at
[/etc/syslog-ng/syslog-ng.conf:112:1]<br class="">
[2016-04-21T16:02:41.484383]
Compiling #unnamed single [log] at
[/etc/syslog-ng/syslog-ng.conf:112:22]<br class="">
[2016-04-21T16:02:41.484393]
Compiling d_mongodb reference
[destination] at
[/etc/syslog-ng/syslog-ng.conf:128:38]<br class="">
[2016-04-21T16:02:41.484403]
Compiling d_mongodb sequence
[destination] at
[/etc/syslog-ng/syslog-ng.conf:57:1]<br class="">
[2016-04-21T16:02:41.484413]
Compiling #unnamed junction [log] at
[/etc/syslog-ng/syslog-ng.conf:57:24]<br class="">
[2016-04-21T16:02:41.484422]
Compiling #unnamed single [log] at
[/etc/syslog-ng/syslog-ng.conf:58:5]<br class="">
[2016-04-21T16:02:41.484434]
Compiling #unnamed sequence [log] at
[/etc/syslog-ng/syslog-ng.conf:133:7]<br class="">
[2016-04-21T16:02:41.484445]
Compiling s_sys reference [source]
at
[/etc/syslog-ng/syslog-ng.conf:133:7]<br class="">
[2016-04-21T16:02:41.484456]
Compiling f_emergency reference
[filter] at
[/etc/syslog-ng/syslog-ng.conf:133:22]<br class="">
[2016-04-21T16:02:41.484467]
Compiling f_emergency sequence
[filter] at
[/etc/syslog-ng/syslog-ng.conf:114:1]<br class="">
[2016-04-21T16:02:41.484476]
Compiling #unnamed single [log] at
[/etc/syslog-ng/syslog-ng.conf:114:22]<br class="">
[2016-04-21T16:02:41.484486]
Compiling d_mongodb reference
[destination] at
[/etc/syslog-ng/syslog-ng.conf:133:43]<br class="">
[2016-04-21T16:02:41.484497]
Compiling #unnamed sequence [log] at
[/etc/syslog-ng/syslog-ng.conf:152:7]<br class="">
[2016-04-21T16:02:41.484506]
Compiling s_sys reference [source]
at
[/etc/syslog-ng/syslog-ng.conf:152:7]<br class="">
[2016-04-21T16:02:41.484517]
Compiling d_mongodb reference
[destination] at
[/etc/syslog-ng/syslog-ng.conf:152:22]<br class="">
[2016-04-21T16:02:41.484873] Seeking
the journal to the last cursor
position;
cursor='s=9383cb3eb8ee41eda3468d9841333aef;i=131c;b=0f07653f04794e14beeeebb18131926b;m=214f74fdf;t=530ff299a3a8e;x=d0f0c56745dc963a'<br class="">
[2016-04-21T16:02:41.485562] Module
loaded and initialized successfully;
module='syslogformat'<br class="">
[2016-04-21T16:02:41.485834] Error
binding socket;
addr='AF_INET(0.0.0.0:6514)',
error='Address already in use (98)'<br class="">
[2016-04-21T16:02:41.485874] Error
initializing message pipeline;<br class="">
<br class="">
</font><br class="">
<div class="">On 04/21/2016 03:40 PM,
Scot Needy wrote:<br class="">
</div>
<blockquote type="cite" class=""> kill
-9 2411
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Apr 21, 2016,
at 7:58 AM, Ivan Adji -
Krstev <<a moz-do-not-send="true" href="mailto:akivanradix@gmail.com" target="_blank" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:akivanradix@gmail.com">akivanradix@gmail.com</a>>
wrote:</div>
<br class="">
<div class=""><span style="font-family:Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline!important" class="">2411</span></div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<fieldset class=""></fieldset>
<br class="">
<pre class="">______________________________________________________________________________
Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank" class="">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a moz-do-not-send="true" href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank" class="">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank" class="">http://www.balabit.com/wiki/syslog-ng-faq</a>
</pre>
</blockquote>
<br class="">
</div>
______________________________________________________________________________<br class="">
Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank" class="">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br class="">
Documentation: <a moz-do-not-send="true" href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank" class=""></a><a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br class="">
FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank" class="">http://www.balabit.com/wiki/syslog-ng-faq</a><br class="">
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
<br class="">
______________________________________________________________________________<br class="">
Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank" class="">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br class="">
Documentation: <a moz-do-not-send="true" href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank" class="">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br class="">
FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank" class="">http://www.balabit.com/wiki/syslog-ng-faq</a><br class="">
<br class="">
<br class="">
</blockquote>
</div>
<br class="">
<br class="" clear="all">
<br class="">
-- <br class="">
<div class="gmail_signature">Bazsi</div>
</div>
______________________________________________________________________________<br class="">
Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" class="">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br class="">
Documentation: <a moz-do-not-send="true" href="http://www.balabit.com/support/documentation/?product=syslog-ng" class="">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br class="">
FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" class="">http://www.balabit.com/wiki/syslog-ng-faq</a><br class="">
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre wrap="" class="">______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>
</pre>
</blockquote>
<br class="">
</div>
______________________________________________________________________________<br class="">Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" class="">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br class="">Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" class="">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br class="">FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" class="">http://www.balabit.com/wiki/syslog-ng-faq</a><br class=""><br class=""></div></blockquote></div><br class=""></div></body></html>