<p dir="ltr">Minimal conf .. i try changing the port and give me the same error on that port. And i sont know how to include them using full path. </p>
<p dir="ltr">Also i have read this same problem on google and there is some syslog-ng.ctl file that seems to make this kind of problem. </p>
<p dir="ltr">Also i have done without tls and agine the same error. </p>
<p dir="ltr">Kind regards </p>
<div class="gmail_quote">On 22 Apr 2016 16:27, &quot;Scot Needy&quot; &lt;<a href="mailto:scotrn@gmail.com">scotrn@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>As a test try to load a minimal conf with no includes and add them manually using a full path. </div><div><br></div><div>I had to do that to troubleshoot java module. </div><div class="elided-text"><div><br><div><br><div><blockquote type="cite"><div>On Apr 21, 2016, at 6:39 PM, Ivan Adji - Krstev &lt;<a href="mailto:akivanradix@gmail.com" target="_blank">akivanradix@gmail.com</a>&gt; wrote:</div><br><div>
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font face="Helvetica, Arial, sans-serif">in scl.conf file there is
      nothing except this line<br>
      <b>@include &#39;scl/*/*.conf&#39;</b><br>
      So i don&#39;t think so.? I get your point that tls on port 6514 may
      be used twice but can&#39;t find anything like that ... it is the same
      config file that i have used before removing the old version and
      putting the new one. From 3.5 to 3.8.<br>
      <br>
    </font><br>
    <div>On 04/21/2016 08:58 PM, Scot Needy
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      All of my conf files are included in scl.conf is scl.conf and
      @include &quot;/etc/syslog-ng/conf.d/*.conf loading the same module
      twice  ?
      <div><br>
        <div>
          <blockquote type="cite">
            <div>On Apr 21, 2016, at 1:58 PM, Ivan Adji -
              Krstev &lt;<a href="mailto:akivanradix@gmail.com" target="_blank">akivanradix@gmail.com</a>&gt;
              wrote:</div>
            <br>
            <div>
              
              <div bgcolor="#FFFFFF" text="#000000"> Hi yes i
                start to put the file but i have some other problems...
                anyway here it&#39;s the config file ( syslog-ng.conf )<br>
                <br>
                <br>
                @version:3.8<br>
                @include &quot;scl.conf&quot;<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(&quot;/dev/log&quot;);<br>
                        internal();<br>
                        network(<br>
                                port(6514)<br>
                #       tcp(port(5140));<br>
                #       file(&quot;/proc/kmsg&quot; log_prefix(&quot;kernel: &quot;));<br>
                                transport(&quot;tls&quot;)<br>
                                tls(
                key_file(&quot;/etc/syslog-ng/cert.d/serverkey.pem&quot;)<br>
                               
                cert_file(&quot;/etc/syslog-ng/cert.d/servercert.pem&quot;)<br>
                                ca_dir(&quot;/etc/syslog-ng/ca.d&quot;))<br>
                                );<br>
                        };<br>
                <br>
                <br>
                destination d_mongodb {<br>
                        mongodb(<br>
                        servers(&quot;localhost:27017&quot;)<br>
                #        database(&quot;syslog&quot;)<br>
                        uri(&#39;<a>mongodb://localhost/syslog-ng&#39;</a>)<br>
                        collection(&quot;messages&quot;)<br>
                        value-pairs(<br>
                        scope(&quot;selected-macros&quot; &quot;nv-pairs&quot; &quot;sdata&quot;)<br>
                                        )<br>
                                );<br>
                        };<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                destination d_cons { file(&quot;/dev/console&quot;); };<br>
                destination d_mesg { file(&quot;/var/log/messages&quot;); };<br>
                destination d_auth { file(&quot;/var/log/secure&quot;); };<br>
                destination d_mail { file(&quot;/var/log/maillog&quot;
                flush_lines(10)); };<br>
                destination d_spol { file(&quot;/var/log/spooler&quot;); };<br>
                destination d_boot { file(&quot;/var/log/boot.log&quot;); };<br>
                destination d_cron { file(&quot;/var/log/cron&quot;); };<br>
                destination d_kern { file(&quot;/var/log/kern&quot;); };<br>
                destination d_mlal { usertty(&quot;*&quot;); };<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 &quot;/etc/syslog-ng/conf.d/*.conf&quot;<br>
                <br>
                <br>
                # vim:ft=syslog-ng:ai:si:ts=4:sw=4:et:<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <div>On 04/21/2016 06:12 PM,
                  Scot Needy wrote:<br>
                </div>
                <blockquote type="cite">
                  
                  Or the module does not die on stop and tries to start
                  another. 
                  <div><br>
                    <div>
                      <blockquote type="cite">
                        <div>On Apr 21, 2016, at 11:20 AM,
                          Balazs Scheidler &lt;<a href="mailto:bazsi77@gmail.com" target="_blank">bazsi77@gmail.com</a>&gt;

                          wrote:</div>
                        <br>
                        <div>
                          <div dir="ltr">maybe you have two
                            sources binding on the same port?<br>
                            <br>
                          </div>
                          <div class="gmail_extra"><br>
                            <div class="gmail_quote">On Thu, Apr 21,
                              2016 at 4:36 PM, Scot Needy <span dir="ltr">&lt;<a href="mailto:scotrn@gmail.com" target="_blank"></a><a href="mailto:scotrn@gmail.com" target="_blank">scotrn@gmail.com</a>&gt;</span>
                              wrote:<br>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                <div style="word-wrap:break-word">
                                  <div>I don’t see your conf
                                    files but I suspect it’s trying to
                                    load the tls module twice ? </div>
                                  <div>
                                    <div>
                                      <div><br>
                                      </div>
                                      <br>
                                      <div>
                                        <blockquote type="cite">
                                          <div>On Apr 21, 2016,
                                            at 10:04 AM, Ivan Adji -
                                            Krstev &lt;<a href="mailto:akivanradix@gmail.com" target="_blank"></a><a href="mailto:akivanradix@gmail.com" target="_blank">akivanradix@gmail.com</a>&gt; wrote:</div>
                                          <br>
                                          <div>
                                            <div bgcolor="#FFFFFF" text="#000000"> <font 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>
                                                Here is the output of
                                                the <b>syslog-ng
                                                  -Fevd</b><br>
                                                <br>
                                                [2016-04-21T16:02:41.478174]

                                                WARNING: Starting with
                                                syslog-ng 3.6, the
                                                system() source performs
                                                JSON parsing of messages
                                                starting with the
                                                &#39;@cim:&#39; prefix. No
                                                additional action is
                                                needed;<br>
                                                [2016-04-21T16:02:41.478635]
                                                Module loaded and
                                                initialized
                                                successfully;
                                                module=&#39;sdjournal&#39;<br>
                                                [2016-04-21T16:02:41.478776]

                                                Finishing include;
                                                content=&#39;source confgen
                                                system&#39;, depth=&#39;1&#39;<br>
                                                [2016-04-21T16:02:41.479601]
                                                Module loaded and
                                                initialized
                                                successfully;
                                                module=&#39;afsocket&#39;<br>
                                                [2016-04-21T16:02:41.481135]
                                                Module loaded and
                                                initialized
                                                successfully;
                                                module=&#39;afmongodb&#39;<br>
                                                [2016-04-21T16:02:41.481914]
                                                Module loaded and
                                                initialized
                                                successfully;
                                                module=&#39;affile&#39;<br>
                                                [2016-04-21T16:02:41.482779]
                                                Module loaded and
                                                initialized
                                                successfully;
                                                module=&#39;afuser&#39;<br>
                                                [2016-04-21T16:02:41.484211]
                                                Unable to detect fully
                                                qualified hostname for
                                                localhost, use_fqdn()
                                                will use the short
                                                hostname;<br>
                                                [2016-04-21T16:02:41.484252]

                                                Compiling #unnamed
                                                sequence [log] at
[/etc/syslog-ng/syslog-ng.conf:128:7]<br>
                                                [2016-04-21T16:02:41.484264]  

                                                Compiling s_sys
                                                reference [source] at
                                                [/etc/syslog-ng/syslog-ng.conf:128:7]<br>
                                                [2016-04-21T16:02:41.484276]    

                                                Compiling s_sys sequence
                                                [source] at
                                                [/etc/syslog-ng/syslog-ng.conf:29:1]<br>
                                                [2016-04-21T16:02:41.484286]      

                                                Compiling #unnamed
                                                junction [log] at
[/etc/syslog-ng/syslog-ng.conf:29:15]<br>
                                                [2016-04-21T16:02:41.484295]        

                                                Compiling #unnamed
                                                sequence [log] at
                                                [source confgen
                                                system:2:5]<br>
                                                [2016-04-21T16:02:41.484304]          

                                                Compiling #unnamed
                                                sequence [source] at
                                                [source confgen
                                                system:2:5]<br>
                                                [2016-04-21T16:02:41.484314]            

                                                Compiling #unnamed
                                                junction [log] at
                                                [source confgen
                                                system:2:13]<br>
                                                [2016-04-21T16:02:41.484323]              

                                                Compiling #unnamed
                                                single [log] at [source
                                                confgen system:3:1]<br>
                                                [2016-04-21T16:02:41.484337]        

                                                Compiling #unnamed
                                                single [log] at
                                                [/etc/syslog-ng/syslog-ng.conf:32:2]<br>
                                                [2016-04-21T16:02:41.484347]        

                                                Compiling #unnamed
                                                single [log] at
                                                [/etc/syslog-ng/syslog-ng.conf:33:2]<br>
                                                [2016-04-21T16:02:41.484363]  

                                                Compiling f_auth
                                                reference [filter] at
                                                [/etc/syslog-ng/syslog-ng.conf:128:22]<br>
                                                [2016-04-21T16:02:41.484374]    

                                                Compiling f_auth
                                                sequence [filter] at
                                                [/etc/syslog-ng/syslog-ng.conf:112:1]<br>
                                                [2016-04-21T16:02:41.484383]      

                                                Compiling #unnamed
                                                single [log] at
                                                [/etc/syslog-ng/syslog-ng.conf:112:22]<br>
                                                [2016-04-21T16:02:41.484393]  

                                                Compiling d_mongodb
                                                reference [destination]
                                                at
                                                [/etc/syslog-ng/syslog-ng.conf:128:38]<br>
                                                [2016-04-21T16:02:41.484403]    

                                                Compiling d_mongodb
                                                sequence [destination]
                                                at
                                                [/etc/syslog-ng/syslog-ng.conf:57:1]<br>
                                                [2016-04-21T16:02:41.484413]      

                                                Compiling #unnamed
                                                junction [log] at
[/etc/syslog-ng/syslog-ng.conf:57:24]<br>
                                                [2016-04-21T16:02:41.484422]        

                                                Compiling #unnamed
                                                single [log] at
                                                [/etc/syslog-ng/syslog-ng.conf:58:5]<br>
                                                [2016-04-21T16:02:41.484434]

                                                Compiling #unnamed
                                                sequence [log] at
[/etc/syslog-ng/syslog-ng.conf:133:7]<br>
                                                [2016-04-21T16:02:41.484445]  

                                                Compiling s_sys
                                                reference [source] at
                                                [/etc/syslog-ng/syslog-ng.conf:133:7]<br>
                                                [2016-04-21T16:02:41.484456]  

                                                Compiling f_emergency
                                                reference [filter] at
                                                [/etc/syslog-ng/syslog-ng.conf:133:22]<br>
                                                [2016-04-21T16:02:41.484467]    

                                                Compiling f_emergency
                                                sequence [filter] at
                                                [/etc/syslog-ng/syslog-ng.conf:114:1]<br>
                                                [2016-04-21T16:02:41.484476]      

                                                Compiling #unnamed
                                                single [log] at
                                                [/etc/syslog-ng/syslog-ng.conf:114:22]<br>
                                                [2016-04-21T16:02:41.484486]  

                                                Compiling d_mongodb
                                                reference [destination]
                                                at
                                                [/etc/syslog-ng/syslog-ng.conf:133:43]<br>
                                                [2016-04-21T16:02:41.484497]

                                                Compiling #unnamed
                                                sequence [log] at
[/etc/syslog-ng/syslog-ng.conf:152:7]<br>
                                                [2016-04-21T16:02:41.484506]  

                                                Compiling s_sys
                                                reference [source] at
                                                [/etc/syslog-ng/syslog-ng.conf:152:7]<br>
                                                [2016-04-21T16:02:41.484517]  

                                                Compiling d_mongodb
                                                reference [destination]
                                                at
                                                [/etc/syslog-ng/syslog-ng.conf:152:22]<br>
                                                [2016-04-21T16:02:41.484873]
                                                Seeking the journal to
                                                the last cursor
                                                position;
cursor=&#39;s=9383cb3eb8ee41eda3468d9841333aef;i=131c;b=0f07653f04794e14beeeebb18131926b;m=214f74fdf;t=530ff299a3a8e;x=d0f0c56745dc963a&#39;<br>
                                                [2016-04-21T16:02:41.485562]
                                                Module loaded and
                                                initialized
                                                successfully;
                                                module=&#39;syslogformat&#39;<br>
                                                [2016-04-21T16:02:41.485834]
                                                Error binding socket;
                                                addr=&#39;AF_INET(0.0.0.0:6514)&#39;,
                                                error=&#39;Address already
                                                in use (98)&#39;<br>
                                                [2016-04-21T16:02:41.485874]
                                                Error initializing
                                                message pipeline;<br>
                                                <br>
                                              </font><br>
                                              <div>On
                                                04/21/2016 03:40 PM,
                                                Scot Needy wrote:<br>
                                              </div>
                                              <blockquote type="cite"> kill -9 2411 
                                                <div><br>
                                                  <div>
                                                    <blockquote type="cite">
                                                      <div>On
                                                        Apr 21, 2016, at
                                                        7:58 AM, Ivan
                                                        Adji - Krstev
                                                        &lt;<a href="mailto:akivanradix@gmail.com" target="_blank"></a><a href="mailto:akivanradix@gmail.com" target="_blank">akivanradix@gmail.com</a>&gt;


                                                        wrote:</div>
                                                      <br>
                                                      <div><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">2411</span></div>
                                                    </blockquote>
                                                  </div>
                                                  <br>
                                                </div>
                                                <br>
                                                <fieldset></fieldset>
                                                <br>
                                                <pre>______________________________________________________________________________
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a>

</pre>
                                              </blockquote>
                                              <br>
                                            </div>
______________________________________________________________________________<br>
                                            Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank"></a><a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
                                            Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank"></a><a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
                                            FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank"></a><a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
                                            <br>
                                          </div>
                                        </blockquote>
                                      </div>
                                      <br>
                                    </div>
                                  </div>
                                </div>
                                <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"></a><a href="http://www.balabit.com/support/documentation/?product=syslog-ng" 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>
                                <br>
                              </blockquote>
                            </div>
                            <br>
                            <br clear="all">
                            <br>
                            -- <br>
                            <div>Bazsi</div>
                          </div>
______________________________________________________________________________<br>
                          Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
                          Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
                          FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
                          <br>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <br>
                  <pre>______________________________________________________________________________
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a>

</pre>
                </blockquote>
                <br>
              </div>
______________________________________________________________________________<br>
              Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
              Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
              FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>______________________________________________________________________________
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a>

</pre>
    </blockquote>
    <br>
  </div>

______________________________________________________________________________<br>Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br><br></div></blockquote></div><br></div></div></div></div><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>
<br></blockquote></div>