<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.im
        {mso-style-name:im;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I’ll see what I can do about upgrading the version, as I didn’t realize it was that far behind. &nbsp;Will follow up with the findings.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><br>
Best Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">David<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu]
<b>On Behalf Of </b>Scheidler, Balázs<br>
<b>Sent:</b> Wednesday, June 29, 2016 11:01 AM<br>
<b>To:</b> Syslog-ng users' and developers' mailing list<br>
<b>Subject:</b> Re: [syslog-ng] Syslog-ng Multiple Instances<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<o:p></o:p></p>
</div>
<p class="MsoNormal">syslog-ng-ctl requires the same control file that you supplied to the 2nd syslog-ng instance, so this should work:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
$ syslog-ng-ctl --control=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.ctl<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">If it started up, it should work though. Can you start syslog-ng in the foreground (-F) and request debug logs using -de, so it should look like this:<br>
<br>
$ syslog-ng -Fed --cfgfile=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.conf --persist-file=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.persist --pidfile=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.pid --control=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.ctl<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">This should display a couple of debugging messages during startup and also whenever a message is received. You might find a clue there.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Also, this may or may not have a relation to the problem you are seeing, but 3.3.4 is pretty old, probably more than 5 years old. Our current version is 3.7.3.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">-- <br>
Bazsi<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Wed, Jun 29, 2016 at 3:33 PM, David Campeau &lt;<a href="mailto:David.Campeau@tn.gov" target="_blank">David.Campeau@tn.gov</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">I'm not sure of the syntax needed to connect to the socket or how to prepare the system.<br>
<br>
Below is just a blind attempt to connect to a socket.&nbsp; The 2nd instance of syslog-ng is running and listening on port 518.<br>
<br>
I created a directory under /run called &quot;syslog-ng-Second-Instance&quot; and tried to connect...&nbsp; However Connection is refused.<br>
<br>
Command Used:<br>
root@syslog-ng:# syslog-ng-ctl verbose --set=on --control=/run/syslog-ng-Second-Instance<br>
Error connecting control socket, socket='/run/syslog-ng-Second-Instance', error='Connection refused'<br>
<br>
<br>
Any thoughts on the correct syntax and preparation needed?<br>
<br>
<br>
<span class="im">Best Regards,</span><br>
<br>
<br>
<br>
<br>
<br>
<span class="im">-----Original Message-----</span><br>
<span class="im">From: <a href="mailto:jrhendri@roadrunner.com">jrhendri@roadrunner.com</a> [mailto:<a href="mailto:jrhendri@roadrunner.com">jrhendri@roadrunner.com</a>]</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Sent: Tuesday, June 28, 2016 3:00 PM<br>
To: Syslog-ng users' and developers' mailing list; David Campeau<br>
Subject: RE: [syslog-ng] Syslog-ng Multiple Instances<br>
<br>
Maybe this?<br>
<br>
If you need to use a non-standard control socket to access syslog-ng,<br>
&nbsp; &nbsp; &nbsp; &nbsp;use the syslog-ng-ctl &lt;command&gt; --set=on --control=&lt;socket&gt; command to<br>
&nbsp; &nbsp; &nbsp; &nbsp;specify the socket to use.<br>
<br>
<br>
<br>
---- David Campeau &lt;<a href="mailto:David.Campeau@tn.gov">David.Campeau@tn.gov</a>&gt; wrote:<br>
&gt; Jim,<br>
&gt;<br>
&gt; No errors as the instance starts normally and listens on port 518. However, no logs are received or forwarded.<br>
&gt;<br>
&gt; root@syslog-ng1:/usr/local/bin/syslog-ng-Second-Instance# netstat -an |grep 518<br>
&gt; udp&nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 0 <a href="http://0.0.0.0:518" target="_blank">0.0.0.0:518</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.0.0.0:*<br>
&gt;<br>
&gt; The test device is on the same subnet as syslog-ng listening on port 518, so there aren't any firewall issues. I've verified the test device is configured for port 518.<br>
&gt;<br>
&gt; However, when I check ctl stats, it's seeing the stats of the production syslog-ng instance.&nbsp; So, it appears this is improperly configured, but it's unknown what needs to be changed.<br>
&gt;<br>
&gt; Best Regards,<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:jrhendri@roadrunner.com">jrhendri@roadrunner.com</a> [mailto:<a href="mailto:jrhendri@roadrunner.com">jrhendri@roadrunner.com</a>]<br>
&gt; Sent: Tuesday, June 28, 2016 12:53 PM<br>
&gt; To: Syslog-ng users' and developers' mailing list<br>
&gt; Cc: David Campeau<br>
&gt; Subject: Re: [syslog-ng] Syslog-ng Multiple Instances<br>
&gt;<br>
&gt; The only thing that would limit the number of instances that I am aware of are conflicts for opening things like network ports, connections to databases, maybe FIFOs, etc.<br>
&gt;<br>
&gt; I would look at that as a place to start.<br>
&gt;<br>
&gt; What kind of errors are you getting when you try to start the second instance?<br>
&gt;<br>
&gt; Jim<br>
&gt;<br>
&gt; ---- David Campeau &lt;<a href="mailto:David.Campeau@tn.gov">David.Campeau@tn.gov</a>&gt; wrote:<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; I've been using syslog-ng to filter syslog before forwarding on to a log collector. However, I need to spin up a second instance for testing purposes. I've found a little bit of information on-line, but it hasn't completed the entire picture.<br>
&gt; &gt;<br>
&gt; &gt; This is the command used to start up the 2nd instance. I'm pointing to separate .conf .persist .pid and .ctl files -- However, it's still not working. I suspect the issue is due to OS log sources. How do a change log sources?<br>
&gt; &gt;<br>
&gt; &gt; syslog-ng --cfgfile=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.conf --persist-file=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.persist --pidfile=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.pid --control=/usr/local/bin/syslog-ng-Second-Instance/syslog-ng.ctl
 &amp;<br>
&gt; &gt;<br>
&gt; &gt; This is the upper part of the syslog-ng.conf file for the 2nd instance I wish to run.<br>
&gt; &gt;<br>
&gt; &gt; @version: 3.3.4<br>
&gt; &gt; @include &quot;scl.conf&quot;<br>
&gt; &gt;&nbsp; &nbsp; &nbsp;options {<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;time-reap(30);<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mark-freq(10);<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;keep-hostname(yes);<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;chain-hostnames(no);<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;use-dns(no);<br>
&gt; &gt; ##&nbsp; &nbsp; &nbsp; &nbsp;log-fifo-size(500000);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## Tuning Options<br>
&gt; &gt; ##&nbsp; &nbsp; &nbsp; flush_lines(10000);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;## Tuning Options<br>
&gt; &gt; ##&nbsp; &nbsp; &nbsp; &nbsp;flush_timeout(10000);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## Tuning Options<br>
&gt; &gt;&nbsp; &nbsp; &nbsp;};<br>
&gt; &gt;<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;source s_second_instance {<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;syslog(transport(&quot;udp&quot;) port(&quot;518&quot;));&nbsp; &nbsp; &nbsp; &nbsp;#### Will receive test syslog on port 518<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};<br>
&gt; &gt;<br>
&gt; &gt;&nbsp; &nbsp; &nbsp;destination d_syslog_udp {<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;syslog(&quot;10.X.X.X&quot;<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;transport(&quot;udp&quot;)<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;port(&quot;514&quot;)<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;throttle(4000)<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;);<br>
&gt; &gt;&nbsp; &nbsp; &nbsp;};<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I'm hoping someone has experience or has seen information on how to run a 2nd instance on the same box.<br>
&gt; &gt;<br>
&gt; &gt; Best Regards,<br>
&gt; &gt;<br>
&gt; &gt; David<br>
&gt;<br>
<br>
______________________________________________________________________________<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><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>