<!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">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Ahh, didnt
know that was overridden. Thanks :-)<br>
<br>
-Patrick<br>
</font></font><br>
Sent: Tue Dec 07 2010 17:17:42 GMT-0700 (Mountain Standard Time)<br>
From: Daniel Ojalvo <a class="moz-txt-link-rfc2396E" href="mailto:D.Ojalvo@F5.com"><D.Ojalvo@F5.com></a><br>
To: Patrick H. <a class="moz-txt-link-rfc2396E" href="mailto:syslogng@feystorm.net"><syslogng@feystorm.net></a>, Syslog-ng users' and
developers' mailing list <a class="moz-txt-link-rfc2396E" href="mailto:syslog-ng@lists.balabit.hu"><syslog-ng@lists.balabit.hu></a> <br>
Subject: Re: [syslog-ng] [Bug 100] New: Hostnames that start with 4+
digits mess up the time system
<blockquote
cite="mid:732C18C97F22BD4DA6FDB9FBBEDD4E681600AC26@SEAEMBX01.olympus.F5Net.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 5 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 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";
        color:#0050D0;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:#0050D0;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:#0050D0;}
span.EmailStyle19
        {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]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Yes,
but that is superseded by rfc 1123.
</span><a moz-do-not-send="true"
href="http://tools.ietf.org/html/rfc1123#page-13">http://tools.ietf.org/html/rfc1123#page-13</a><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">It’s
definitely an edge case though. I googled around for a while and I
found no other mentions of a bug like this.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Daniel<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:feystorm@q.com">feystorm@q.com</a> [<a class="moz-txt-link-freetext" href="mailto:feystorm@q.com">mailto:feystorm@q.com</a>]
<b>On Behalf Of </b>Patrick H.<br>
<b>Sent:</b> Tuesday, December 07, 2010 4:07 PM<br>
<b>To:</b> Syslog-ng users' and developers' mailing list; Daniel
Ojalvo<br>
<b>Subject:</b> Re: [syslog-ng] [Bug 100] New: Hostnames that start
with 4+ digits mess up the time system<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif";">Well
to be fair, hostnames that start with a number are a violation of RFC
952.<br>
<a moz-do-not-send="true" href="http://www.ietf.org/rfc/rfc952.txt">http://www.ietf.org/rfc/rfc952.txt</a><br>
"The first character must be an alpha character"<br>
</span><br>
-Patrick<br>
<br>
<br>
Sent: Tue Dec 07 2010 16:49:03 GMT-0700 (Mountain Standard Time)<br>
From: <a moz-do-not-send="true"
href="mailto:bugzilla@bugzilla.balabit.com">bugzilla@bugzilla.balabit.com</a><br>
To: <a moz-do-not-send="true" href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>
<br>
Subject: [syslog-ng] [Bug 100] New: Hostnames that start with 4+ digits
mess up the time system
<o:p></o:p></p>
<pre><a moz-do-not-send="true"
href="https://bugzilla.balabit.com/show_bug.cgi?id=100">https://bugzilla.balabit.com/show_bug.cgi?id=100</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> Summary: Hostnames that start with 4+ digits mess up the time<o:p></o:p></pre>
<pre> system<o:p></o:p></pre>
<pre> Product: syslog-ng<o:p></o:p></pre>
<pre> Version: 2.0.x<o:p></o:p></pre>
<pre> Platform: PC<o:p></o:p></pre>
<pre> OS/Version: Linux<o:p></o:p></pre>
<pre> Status: NEW<o:p></o:p></pre>
<pre> Severity: normal<o:p></o:p></pre>
<pre> Priority: unspecified<o:p></o:p></pre>
<pre> Component: syslog-ng<o:p></o:p></pre>
<pre> AssignedTo: <a moz-do-not-send="true"
href="mailto:bazsi@balabit.hu">bazsi@balabit.hu</a><o:p></o:p></pre>
<pre> ReportedBy: <a moz-do-not-send="true"
href="mailto:D.Ojalvo@f5.com">D.Ojalvo@f5.com</a><o:p></o:p></pre>
<pre>Type of the Report: ---<o:p></o:p></pre>
<pre> Estimated Hours: 0.0<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Created an attachment (id=26)<o:p></o:p></pre>
<pre> --> (<a moz-do-not-send="true"
href="https://bugzilla.balabit.com/attachment.cgi?id=26">https://bugzilla.balabit.com/attachment.cgi?id=26</a>)<o:p></o:p></pre>
<pre>My patch proposal<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>If syslog is handling a message with an rfc 3164-type timestamp then a hostname that begins with 4 digits, <o:p></o:p></pre>
<pre>the time parser will mess up because it thinks that it is dealing with a linksys-style timestamp that includes the year,<o:p></o:p></pre>
<pre>when the rfc3164 timestamp does not. I wrote a patch that adds a strict rfc3164 parsing option to the syslog startup.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
</div>
</blockquote>
</body>
</html>