<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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>
<br>
<br>
@version:3.8<br>
@include "scl.conf"<br>
<br>
# syslog-ng configuration file.<br>
#<br>
# This should behave pretty much like the original syslog on RedHat.
But<br>
# it could be configured a lot smarter.<br>
#<br>
# See syslog-ng(8) and syslog-ng.conf(5) for more information.<br>
#<br>
# Note: it also sources additional configuration files (*.conf)<br>
# located in /etc/syslog-ng/conf.d/<br>
<br>
<br>
options {<br>
flush_lines (0);<br>
time_reopen (10);<br>
log_fifo_size (1000);<br>
#<br>
log_iw_size(100);<br>
log_fetch_limit(100);<br>
#<br>
chain_hostnames (off);<br>
use_dns (no);<br>
use_fqdn (no);<br>
create_dirs (no);<br>
keep_hostname (yes);<br>
};<br>
<br>
source s_sys {<br>
system();<br>
#unix-stream("/dev/log");<br>
internal();<br>
network(<br>
port(6514)<br>
# tcp(port(5140));<br>
# file("/proc/kmsg" log_prefix("kernel: "));<br>
transport("tls")<br>
tls( key_file("/etc/syslog-ng/cert.d/serverkey.pem")<br>
cert_file("/etc/syslog-ng/cert.d/servercert.pem")<br>
ca_dir("/etc/syslog-ng/ca.d"))<br>
);<br>
};<br>
<br>
<br>
destination d_mongodb {<br>
mongodb(<br>
servers("localhost:27017")<br>
# database("syslog")<br>
uri('mongodb://localhost/syslog-ng')<br>
collection("messages")<br>
value-pairs(<br>
scope("selected-macros" "nv-pairs" "sdata")<br>
)<br>
);<br>
};<br>
<br>
<br>
<br>
<br>
<br>
destination d_cons { file("/dev/console"); };<br>
destination d_mesg { file("/var/log/messages"); };<br>
destination d_auth { file("/var/log/secure"); };<br>
destination d_mail { file("/var/log/maillog" flush_lines(10)); };<br>
destination d_spol { file("/var/log/spooler"); };<br>
destination d_boot { file("/var/log/boot.log"); };<br>
destination d_cron { file("/var/log/cron"); };<br>
destination d_kern { file("/var/log/kern"); };<br>
destination d_mlal { usertty("*"); };<br>
<br>
filter f_kernel { facility(kern); };<br>
filter f_default { level(info..emerg) and<br>
not (facility(mail)<br>
or facility(authpriv)<br>
or facility(cron)); };<br>
filter f_auth { facility(authpriv); };<br>
filter f_mail { facility(mail); };<br>
filter f_emergency { level(emerg); };<br>
filter f_news { facility(uucp) or<br>
(facility(news)<br>
and level(crit..emerg)); };<br>
filter f_boot { facility(local7); };<br>
filter f_cron { facility(cron); };<br>
<br>
#log { source(s_sys); filter(f_kernel); destination(d_cons); };<br>
log { source(s_sys); filter(f_kernel); destination(d_mongodb); };<br>
log { source(s_sys); filter(f_default); destination(d_mongodb); };<br>
log { source(s_sys); filter(f_auth); destination(d_mongodb); };<br>
log { source(s_sys); filter(f_mail); destination(d_mongodb); };<br>
log { source(s_sys); filter(f_emergency); destination(d_mongodb); };<br>
log { source(s_sys); filter(f_news); destination(d_mongodb); };<br>
log { source(s_sys); filter(f_boot); destination(d_mongodb); };<br>
log { source(s_sys); filter(f_cron); destination(d_mongodb); };<br>
<br>
<br>
log { source(s_sys); destination(d_mongodb); };<br>
<br>
# Source additional configuration files (.conf extension only)<br>
@include "/etc/syslog-ng/conf.d/*.conf"<br>
<br>
<br>
# vim:ft=syslog-ng:ai:si:ts=4:sw=4:et:<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 04/21/2016 06:12 PM, Scot Needy
wrote:<br>
</div>
<blockquote
cite="mid:91545F98-946C-41A9-ABBF-DBC5BDF3A5C5@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
Or the module does not die on stop and tries to start another.
<div class=""><br class="">
<div>
<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 class="moz-txt-link-abbreviated" href="mailto:scotrn@gmail.com">scotrn@gmail.com</a></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 class="moz-txt-link-abbreviated" href="mailto:akivanradix@gmail.com">akivanradix@gmail.com</a></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 class="moz-txt-link-abbreviated" href="mailto:akivanradix@gmail.com">akivanradix@gmail.com</a></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 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></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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">______________________________________________________________________________
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>
</body>
</html>