<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=us-ascii">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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">Hello,<br>
<br>
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>
<br>
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>
<br>
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>
<br>
This is the upper part of the syslog-ng.conf file for the 2nd instance I wish to run.<br>
<br>
@version: 3.3.4<br>
@include &quot;scl.conf&quot;<br>
&nbsp; &nbsp; options {<br>
&nbsp; &nbsp; &nbsp; &nbsp; time-reap(30);<br>
&nbsp; &nbsp; &nbsp; &nbsp; mark-freq(10);<br>
&nbsp; &nbsp; &nbsp; &nbsp; keep-hostname(yes);<br>
&nbsp; &nbsp; &nbsp; &nbsp; chain-hostnames(no);<br>
&nbsp; &nbsp; &nbsp; &nbsp; use-dns(no);<br>
##&nbsp; &nbsp; &nbsp; &nbsp;log-fifo-size(500000);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## Tuning Options<br>
##&nbsp; &nbsp; &nbsp; flush_lines(10000);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;## Tuning Options<br>
##&nbsp; &nbsp; &nbsp; &nbsp;flush_timeout(10000);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## Tuning Options<br>
&nbsp; &nbsp; };<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; source s_second_instance {<br>
&nbsp; &nbsp; &nbsp; &nbsp; syslog(transport(&quot;udp&quot;) port(&quot;518&quot;));&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #### Will receive test syslog on port 518<br>
&nbsp; &nbsp; &nbsp; &nbsp; };<br>
<br>
&nbsp; &nbsp; destination d_syslog_udp {<br>
&nbsp; &nbsp; &nbsp; &nbsp; syslog(&quot;10.X.X.X&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transport(&quot;udp&quot;)<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; port(&quot;514&quot;)<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throttle(4000)<br>
&nbsp; &nbsp; &nbsp; &nbsp; );<br>
&nbsp; &nbsp; };<br>
<br>
<br>
<br>
I'm hoping someone has experience or has seen information on how to run a 2nd instance on the same box.<br>
<br>
Best Regards,<br>
<br>
David<o:p></o:p></p>
</div>
</body>
</html>