<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#0050d0">
    Why?<br>
    This is a documentation issue, not a config issue.<br>
    <br>
    modules/afsocket/afsocket-grammar.y:899<br>
    <tt><font color="#990000">source_afsyslog_params<br>
        &nbsp;&nbsp; :<br>
        &nbsp;&nbsp;&nbsp;&nbsp; {<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*last_driver) = afinet_sd_new(last_addr_family,<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL, 601,<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AFSOCKET_STREAM | AFSOCKET_SYSLOG_PROTOCOL);<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; last_reader_options = &amp;((AFSocketSourceDriver *)
        (*last_driver))-&gt;reader_options;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; last_sock_options = &amp;((AFInetSourceDriver *)
        (*last_driver))-&gt;sock_options.super;<br>
        &nbsp;&nbsp;&nbsp;&nbsp; }<br>
        &nbsp;&nbsp;&nbsp;&nbsp; source_afsyslog_options&nbsp; { $$ = (*last_driver); }<br>
        &nbsp;&nbsp; ;</font><br>
      <br>
    </tt>The third argument to afinet_sd_new is the port number, notice
    the 601?<br>
    <br>
    <br>
    <font color="#990000"><tt>source_afinet_option<br>
        &nbsp;&nbsp; : KW_LOCALIP '(' string ')'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
        afinet_sd_set_localip((*last_driver), $3); free($3); }<br>
        &nbsp;&nbsp; | KW_IP '(' string ')'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
        afinet_sd_set_localip((*last_driver), $3); free($3); }<br>
        &nbsp;&nbsp; | KW_LOCALPORT '(' string_or_number ')'&nbsp;&nbsp; {
        afinet_sd_set_localport((*last_driver), $3,
        afinet_sd_get_proto_name((*last_driver))); free($3); }<br>
        &nbsp;&nbsp; | KW_PORT '(' string_or_number ')'&nbsp; {
        afinet_sd_set_localport((*last_driver), $3,
        afinet_sd_get_proto_name((*last_driver))); free($3); }<br>
        &nbsp;&nbsp; | source_reader_option<br>
        &nbsp;&nbsp; | inet_socket_option<br>
        &nbsp;&nbsp; ;</tt></font><br>
    <br>
    See the KW_PORT? This tells it to change the port number of the
    socket when it encounters port() in the config. Thus if it never
    sees a KW_PORT, it never changes it from 601.<br>
    <br>
    <br>
    Sent: Mon Oct 03 2011 08:05:55 GMT-0600 (MST)<br>
    From: Frank Collette <a class="moz-txt-link-rfc2396E" href="mailto:FCollette@trustmark.com">&lt;FCollette@trustmark.com&gt;</a><br>
    To: Syslog-ng users' and developers' mailing list
    <a class="moz-txt-link-rfc2396E" href="mailto:syslog-ng@lists.balabit.hu">&lt;syslog-ng@lists.balabit.hu&gt;</a> <br>
    Subject: Re: [syslog-ng] Error in documentation on syslog() source
    port
    <blockquote
cite="mid:OF946DFE30.BFE766A7-ON8625791E.004D372E-8625791E.004DA37F@trustmark.com"
      type="cite"><font size="2" face="sans-serif">Post your source
        config.. feel free to
        mask your ip/hostname.</font>
      <br>
      <br>
      <br>
      <font size="2" face="sans-serif">Thanks,</font>
      <br>
      <font size="2" face="sans-serif"><br>
        Frank E. Collette IV</font>
      <br>
      <font size="2" face="sans-serif">Technical Services<br>
        Systems Administrator II<br>
        Trustmark National Bank<br>
        Office: 601-208-7517</font>
      <br>
      <font size="2" face="sans-serif">Fax: 601-208-6105</font>
      <br>
      <font size="2" face="sans-serif"><a class="moz-txt-link-abbreviated" href="mailto:fcollette@trustmark.com">fcollette@trustmark.com</a></font>
      <br>
      <br>
      <br>
      <br>
      <font color="#5f5f5f" size="1" face="sans-serif">From: &nbsp; &nbsp; &nbsp;
        &nbsp;</font><font size="1" face="sans-serif">"Patrick H."
        <a class="moz-txt-link-rfc2396E" href="mailto:syslogng@feystorm.net">&lt;syslogng@feystorm.net&gt;</a></font>
      <br>
      <font color="#5f5f5f" size="1" face="sans-serif">To: &nbsp; &nbsp; &nbsp;
        &nbsp;</font><font size="1" face="sans-serif"><a class="moz-txt-link-abbreviated" href="mailto:cdukes@cdukes.com">cdukes@cdukes.com</a>,
        Syslog-ng users' and developers' mailing list
        <a class="moz-txt-link-rfc2396E" href="mailto:syslog-ng@lists.balabit.hu">&lt;syslog-ng@lists.balabit.hu&gt;</a></font>
      <br>
      <font color="#5f5f5f" size="1" face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
        &nbsp;</font><font size="1" face="sans-serif">Clayton Dukes
        <a class="moz-txt-link-rfc2396E" href="mailto:cdukes@gmail.com">&lt;cdukes@gmail.com&gt;</a></font>
      <br>
      <font color="#5f5f5f" size="1" face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
        &nbsp;</font><font size="1" face="sans-serif">10/03/2011 08:58 AM</font>
      <br>
      <font color="#5f5f5f" size="1" face="sans-serif">Subject: &nbsp; &nbsp;
        &nbsp; &nbsp;</font><font size="1" face="sans-serif">Re: [syslog-ng]
        Error in documentation on syslog() source port</font>
      <br>
      <font color="#5f5f5f" size="1" face="sans-serif">Sent by: &nbsp; &nbsp;
        &nbsp; &nbsp;</font><font size="1" face="sans-serif"><a class="moz-txt-link-abbreviated" href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a></font>
      <br>
      <hr noshade="noshade">
      <br>
      <br>
      <br>
      <font color="#0041c2" size="3">Actually I'm using both protocols,
        and I
        get the same behavior with both.<br>
        <br>
        -Patrick<br>
        <br>
        Sent: Mon Oct 03 2011 07:55:46 GMT-0600 (MST)<br>
        From: Clayton Dukes </font><a moz-do-not-send="true"
        href="mailto:cdukes@gmail.com"><font color="blue" size="3"><u>&lt;cdukes@gmail.com&gt;</u></font></a><font
        color="#0041c2" size="3"><br>
        To: Syslog-ng users' and developers' mailing list </font><a
        moz-do-not-send="true" href="mailto:syslog-ng@lists.balabit.hu"><font
          color="blue" size="3"><u>&lt;syslog-ng@lists.balabit.hu&gt;</u></font></a><font
        color="#0041c2" size="3">
        <br>
        Subject: Re: [syslog-ng] Error in documentation on syslog()
        source port
      </font>
      <br>
      <font color="#0041c2" size="3">Are you by chance using tcp? If so,
        the
        default is 601: </font>
      <br>
      <a moz-do-not-send="true"
        href="http://www.ietf.org/rfc/rfc3195.txt"><font color="blue"
          size="3"><u>http://www.ietf.org/rfc/rfc3195.txt</u></font></a>
      <br>
      <font color="#0041c2" size="3"><br>
        ______________________________________________________________ <br>
        <br>
        Clayton Dukes<br>
        ______________________________________________________________<br>
        <br>
      </font>
      <br>
      <font color="#0041c2" size="3">On Sun, Oct 2, 2011 at 9:44 PM,
        Patrick
        H. &lt;</font><a moz-do-not-send="true"
        href="mailto:syslogng@feystorm.net"><font color="blue" size="3"><u>syslogng@feystorm.net</u></font></a><font
        color="#0041c2" size="3">&gt;
        wrote:</font>
      <br>
      <font color="#0041c2" size="3">The syslog-ng admin guide for 3.2
        says the
        default port for syslog() sources is 514. This isnt the observed
        behavior.
        When a syslog() source is configured without specifying the
        port, it listens
        on 601</font>
      <br>
      <font color="#0041c2" size="3"><br>
______________________________________________________________________________<br>
        Member info: </font><a moz-do-not-send="true"
        href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"
        target="_blank"><font color="blue" size="3"><u>https://lists.balabit.hu/mailman/listinfo/syslog-ng</u></font></a><font
        color="#0041c2" size="3"><br>
        Documentation: </font><a moz-do-not-send="true"
        href="http://www.balabit.com/support/documentation/?product=syslog-ng"
        target="_blank"><font color="blue" size="3"><u>http://www.balabit.com/support/documentation/?product=syslog-ng</u></font></a><font
        color="#0041c2" size="3"><br>
        FAQ: </font><a moz-do-not-send="true"
        href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank"><font
          color="blue" size="3"><u>http://www.balabit.com/wiki/syslog-ng-faq</u></font></a><font
        color="#0041c2" size="3"><br>
        <br>
      </font>
      <br>
      <br>
      <tt><font color="#0041c2" size="3"><br>
          <br>
______________________________________________________________________________<br>
          Member info: </font></tt><a moz-do-not-send="true"
        href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"><tt><font
            color="blue" size="3"><u>https://lists.balabit.hu/mailman/listinfo/syslog-ng</u></font></tt></a><tt><font
          color="#0041c2" size="3"><br>
          Documentation: </font></tt><a moz-do-not-send="true"
        href="http://www.balabit.com/support/documentation/?product=syslog-ng"><tt><font
            color="blue" size="3"><u>http://www.balabit.com/support/documentation/?product=syslog-ng</u></font></tt></a><tt><font
          color="#0041c2" size="3"><br>
          FAQ: </font></tt><a moz-do-not-send="true"
        href="http://www.balabit.com/wiki/syslog-ng-faq"><tt><font
            color="blue" size="3"><u>http://www.balabit.com/wiki/syslog-ng-faq</u></font></tt></a><tt><font
          color="#0041c2" size="3"><br>
          <br>
        </font></tt><tt><font size="2">______________________________________________________________________________<br>
          Member info: </font></tt><a moz-do-not-send="true"
        href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"><tt><font
            size="2">https://lists.balabit.hu/mailman/listinfo/syslog-ng</font></tt></a><tt><font
          size="2"><br>
          Documentation: </font></tt><a moz-do-not-send="true"
        href="http://www.balabit.com/support/documentation/?product=syslog-ng"><tt><font
            size="2">http://www.balabit.com/support/documentation/?product=syslog-ng</font></tt></a><tt><font
          size="2"><br>
          FAQ: </font></tt><a moz-do-not-send="true"
        href="http://www.balabit.com/wiki/syslog-ng-faq"><tt><font
            size="2">http://www.balabit.com/wiki/syslog-ng-faq</font></tt></a><tt><font
          size="2"><br>
          <br>
        </font></tt>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
______________________________________________________________________________
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>
  </body>
</html>