<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic S/N/K-Series Decode of Syslog Numeric Prepend in FAQs</title>
    <link>https://community.extremenetworks.com/t5/faqs/s-n-k-series-decode-of-syslog-numeric-prepend/m-p/45565#M334</link>
    <description>Article ID: 14635 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
S-Series&lt;BR /&gt;
Matrix N-Series DFE&lt;BR /&gt;
K-Series &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
Meaning of a syslog message's prepend &amp;lt;&lt;I&gt;number&lt;/I&gt;&amp;gt;.&lt;BR /&gt;
Decode the severity of a generated syslog message.&lt;BR /&gt;
Determine the facility of a generated syslog message.&lt;BR /&gt;
Determine the priority of a generated syslog message. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
The Severity of a syslog message, shown bracketed at the beginning of these syslog message samples... &lt;BR /&gt;
&amp;lt;135&amp;gt;Feb 2 18:52:43 10.9.9.1 OSPF[1]Extern spf elapsed time 2651 us&lt;BR /&gt;
&amp;lt;138&amp;gt;Feb 9 01:25:54 10.10.20.100 Dispatch[2.tDispatch]0xfc6eb8 : -43 = ( 0x3470aa0, 46, *0x3470a38=20 )&lt;BR /&gt;
&amp;lt;149&amp;gt;Apr 12 15:03:31 10.144.253.173 System[3]The board in slot 2 of the chassis is operational.&lt;BR /&gt;
&amp;lt;166&amp;gt;Apr 23 16:56:02 10.254.254.7 Last message repeated 4 times&lt;BR /&gt;
&amp;lt;180&amp;gt;Jan 28 22:06:23 10.128.19.12 Last message repeated 2 times&lt;BR /&gt;
&amp;lt;187&amp;gt;Apr 27 20:50:15 10.20.150.200 NonVol[1.tusrAppInit]nvFilePtrMgr::fFlush(5) fflush(0xb4b8110) retval=-1, errno=9      ...is the mathematical sum of the message Facility and the message Priority. &lt;BR /&gt;
&lt;BR /&gt;
The Facility is the result of syslog server(s) ("Local0", ..., "Local7") configured, and may be useful for categorizing message sources at the syslog server. &lt;BR /&gt;
Mnemonic      Facility      Math&lt;BR /&gt;
------------------------------------------------------------------------------&lt;BR /&gt;
LOG_KERN      0             (0 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_USER      8             (1 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_MAIL      16            (2 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_DAEMON    24            (3 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_AUTH      32            (4 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_SYSLOG    40            (5 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LPR       48            (6 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_NEWS      56            (7 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_UUCP      64            (8 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_CRON      72            (9 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_AUTH2     80            (10&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_FTP       88            (11&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_NTP       96            (12&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_AUDIT_LOG 104           (13&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_ALERT_LOG 112           (14&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_CLOCK     120           (15&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL0    128           (16&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL1    136           (17&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL2    144           (18&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL3    152           (19&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL4    160           (20&amp;lt;&amp;lt; 3)        The default facility&lt;BR /&gt;
LOG_LOCAL5    168           (21&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL6    176           (22&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL7    184           (23&amp;lt;&amp;lt; 3)The Priority used in message generation may be computed by starting with the Severity, then subtracting the highest possible Facility value that would still yield a positive result. With the default facility ("Local4(160)"), the message Priority is conveniently identified in clear text in the right-most column of the Severity field, while the use of other facilities requires simple math to derive the Priority. &lt;BR /&gt;
Mnemonic      Priority      MIB/CLI Level   Notes&lt;BR /&gt;
------------------------------------------------------------------------------&lt;BR /&gt;
LOG_EMERG     0             1               Fatal error, will reset the module&lt;BR /&gt;
LOG_ALERT     1             2               Fatal error, will reset the module&lt;BR /&gt;
LOG_CRIT      2             3               Logged to diagnostic message log&lt;BR /&gt;
LOG_ERR       3             4               Logged to diagnostic message log&lt;BR /&gt;
LOG_WARNING   4             5               Logged to all servers by default&lt;BR /&gt;
LOG_NOTICE    5             6               Logged to all servers by default&lt;BR /&gt;
LOG_INFO      6             7               Messages suppressed by default&lt;BR /&gt;
LOG_DEBUG     7             8               Messages suppressed by defaultFinally, the 0-based Priority may be converted to the 1-based Priority used in the MIB/CLI, for example in the 'show logging application' output shown below. The CLI sometimes confuses Severity and Priority, and it does so here. Note that Application is not discussed in this document. &lt;BR /&gt;
S4 Chassis(su)-&amp;gt;show logging application&lt;BR /&gt;
 &lt;BR /&gt;
        Application   Current Severity Level Server List&lt;BR /&gt;
----------------------------------------------------------&lt;BR /&gt;
  88    RtrAcl                           7      2,8&lt;BR /&gt;
   . . .&lt;BR /&gt;
 218    OAM                              7      2,8&lt;BR /&gt;
 &lt;BR /&gt;
1(emergencies)  2(alerts)       3(critical)&lt;BR /&gt;
4(errors)       5(warnings)     6(notifications)&lt;BR /&gt;
7(information)  8(debugging)&lt;BR /&gt;
 &lt;BR /&gt;
S4 Chassis(su)-&amp;gt;Applying this conversion process to the original sample messages... &lt;BR /&gt;
&amp;lt;135&amp;gt;Feb 2 18:52:43 10.9.9.1 OSPF[1]Extern spf elapsed time 2651 us&lt;BR /&gt;
  - LOG_LOCAL0(128) = LOG_DEBUG(7)   ~ 8(debugging)&lt;BR /&gt;
&amp;lt;138&amp;gt;Feb 9 01:25:54 10.10.20.100 Dispatch[2.tDispatch]0xfc6eb8 : -43 = ( 0x3470aa0, 46, *0x3470a38=20 )&lt;BR /&gt;
  - LOG_LOCAL1(136) = LOG_CRIT(2)    ~ 3(critical)&lt;BR /&gt;
&amp;lt;149&amp;gt;Apr 12 15:03:31 10.144.253.173 System[3]The board in slot 2 of the chassis is operational.&lt;BR /&gt;
  - LOG_LOCAL2(144) = LOG_NOTICE(5)  ~ 6(notifications)&lt;BR /&gt;
&amp;lt;166&amp;gt;Apr 23 16:56:02 10.254.254.7 Last message repeated 4 times&lt;BR /&gt;
  - LOG_LOCAL4(160) = LOG_INFO(6)    ~ 7(information)&lt;BR /&gt;
&amp;lt;180&amp;gt;Jan 28 22:06:23 10.128.19.12 Last message repeated 2 times &lt;BR /&gt;
  - LOG_LOCAL6(176) = LOG_WARNING(4) ~ 5(warnings)&lt;BR /&gt;
&amp;lt;187&amp;gt;Apr 27 20:50:15 10.20.150.200 NonVol[1.tusrAppInit]nvFilePtrMgr::fFlush(5) fflush(0xb4b8110) retval=-1, errno=9&lt;BR /&gt;
  - LOG_LOCAL7(184) = LOG_ERR(3)     ~ 4(errors)</description>
    <pubDate>Thu, 28 Nov 2013 00:52:00 GMT</pubDate>
    <dc:creator>FAQ_User</dc:creator>
    <dc:date>2013-11-28T00:52:00Z</dc:date>
    <item>
      <title>S/N/K-Series Decode of Syslog Numeric Prepend</title>
      <link>https://community.extremenetworks.com/t5/faqs/s-n-k-series-decode-of-syslog-numeric-prepend/m-p/45565#M334</link>
      <description>Article ID: 14635 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
S-Series&lt;BR /&gt;
Matrix N-Series DFE&lt;BR /&gt;
K-Series &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
Meaning of a syslog message's prepend &amp;lt;&lt;I&gt;number&lt;/I&gt;&amp;gt;.&lt;BR /&gt;
Decode the severity of a generated syslog message.&lt;BR /&gt;
Determine the facility of a generated syslog message.&lt;BR /&gt;
Determine the priority of a generated syslog message. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
The Severity of a syslog message, shown bracketed at the beginning of these syslog message samples... &lt;BR /&gt;
&amp;lt;135&amp;gt;Feb 2 18:52:43 10.9.9.1 OSPF[1]Extern spf elapsed time 2651 us&lt;BR /&gt;
&amp;lt;138&amp;gt;Feb 9 01:25:54 10.10.20.100 Dispatch[2.tDispatch]0xfc6eb8 : -43 = ( 0x3470aa0, 46, *0x3470a38=20 )&lt;BR /&gt;
&amp;lt;149&amp;gt;Apr 12 15:03:31 10.144.253.173 System[3]The board in slot 2 of the chassis is operational.&lt;BR /&gt;
&amp;lt;166&amp;gt;Apr 23 16:56:02 10.254.254.7 Last message repeated 4 times&lt;BR /&gt;
&amp;lt;180&amp;gt;Jan 28 22:06:23 10.128.19.12 Last message repeated 2 times&lt;BR /&gt;
&amp;lt;187&amp;gt;Apr 27 20:50:15 10.20.150.200 NonVol[1.tusrAppInit]nvFilePtrMgr::fFlush(5) fflush(0xb4b8110) retval=-1, errno=9      ...is the mathematical sum of the message Facility and the message Priority. &lt;BR /&gt;
&lt;BR /&gt;
The Facility is the result of syslog server(s) ("Local0", ..., "Local7") configured, and may be useful for categorizing message sources at the syslog server. &lt;BR /&gt;
Mnemonic      Facility      Math&lt;BR /&gt;
------------------------------------------------------------------------------&lt;BR /&gt;
LOG_KERN      0             (0 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_USER      8             (1 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_MAIL      16            (2 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_DAEMON    24            (3 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_AUTH      32            (4 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_SYSLOG    40            (5 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LPR       48            (6 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_NEWS      56            (7 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_UUCP      64            (8 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_CRON      72            (9 &amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_AUTH2     80            (10&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_FTP       88            (11&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_NTP       96            (12&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_AUDIT_LOG 104           (13&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_ALERT_LOG 112           (14&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_CLOCK     120           (15&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL0    128           (16&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL1    136           (17&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL2    144           (18&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL3    152           (19&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL4    160           (20&amp;lt;&amp;lt; 3)        The default facility&lt;BR /&gt;
LOG_LOCAL5    168           (21&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL6    176           (22&amp;lt;&amp;lt; 3)&lt;BR /&gt;
LOG_LOCAL7    184           (23&amp;lt;&amp;lt; 3)The Priority used in message generation may be computed by starting with the Severity, then subtracting the highest possible Facility value that would still yield a positive result. With the default facility ("Local4(160)"), the message Priority is conveniently identified in clear text in the right-most column of the Severity field, while the use of other facilities requires simple math to derive the Priority. &lt;BR /&gt;
Mnemonic      Priority      MIB/CLI Level   Notes&lt;BR /&gt;
------------------------------------------------------------------------------&lt;BR /&gt;
LOG_EMERG     0             1               Fatal error, will reset the module&lt;BR /&gt;
LOG_ALERT     1             2               Fatal error, will reset the module&lt;BR /&gt;
LOG_CRIT      2             3               Logged to diagnostic message log&lt;BR /&gt;
LOG_ERR       3             4               Logged to diagnostic message log&lt;BR /&gt;
LOG_WARNING   4             5               Logged to all servers by default&lt;BR /&gt;
LOG_NOTICE    5             6               Logged to all servers by default&lt;BR /&gt;
LOG_INFO      6             7               Messages suppressed by default&lt;BR /&gt;
LOG_DEBUG     7             8               Messages suppressed by defaultFinally, the 0-based Priority may be converted to the 1-based Priority used in the MIB/CLI, for example in the 'show logging application' output shown below. The CLI sometimes confuses Severity and Priority, and it does so here. Note that Application is not discussed in this document. &lt;BR /&gt;
S4 Chassis(su)-&amp;gt;show logging application&lt;BR /&gt;
 &lt;BR /&gt;
        Application   Current Severity Level Server List&lt;BR /&gt;
----------------------------------------------------------&lt;BR /&gt;
  88    RtrAcl                           7      2,8&lt;BR /&gt;
   . . .&lt;BR /&gt;
 218    OAM                              7      2,8&lt;BR /&gt;
 &lt;BR /&gt;
1(emergencies)  2(alerts)       3(critical)&lt;BR /&gt;
4(errors)       5(warnings)     6(notifications)&lt;BR /&gt;
7(information)  8(debugging)&lt;BR /&gt;
 &lt;BR /&gt;
S4 Chassis(su)-&amp;gt;Applying this conversion process to the original sample messages... &lt;BR /&gt;
&amp;lt;135&amp;gt;Feb 2 18:52:43 10.9.9.1 OSPF[1]Extern spf elapsed time 2651 us&lt;BR /&gt;
  - LOG_LOCAL0(128) = LOG_DEBUG(7)   ~ 8(debugging)&lt;BR /&gt;
&amp;lt;138&amp;gt;Feb 9 01:25:54 10.10.20.100 Dispatch[2.tDispatch]0xfc6eb8 : -43 = ( 0x3470aa0, 46, *0x3470a38=20 )&lt;BR /&gt;
  - LOG_LOCAL1(136) = LOG_CRIT(2)    ~ 3(critical)&lt;BR /&gt;
&amp;lt;149&amp;gt;Apr 12 15:03:31 10.144.253.173 System[3]The board in slot 2 of the chassis is operational.&lt;BR /&gt;
  - LOG_LOCAL2(144) = LOG_NOTICE(5)  ~ 6(notifications)&lt;BR /&gt;
&amp;lt;166&amp;gt;Apr 23 16:56:02 10.254.254.7 Last message repeated 4 times&lt;BR /&gt;
  - LOG_LOCAL4(160) = LOG_INFO(6)    ~ 7(information)&lt;BR /&gt;
&amp;lt;180&amp;gt;Jan 28 22:06:23 10.128.19.12 Last message repeated 2 times &lt;BR /&gt;
  - LOG_LOCAL6(176) = LOG_WARNING(4) ~ 5(warnings)&lt;BR /&gt;
&amp;lt;187&amp;gt;Apr 27 20:50:15 10.20.150.200 NonVol[1.tusrAppInit]nvFilePtrMgr::fFlush(5) fflush(0xb4b8110) retval=-1, errno=9&lt;BR /&gt;
  - LOG_LOCAL7(184) = LOG_ERR(3)     ~ 4(errors)</description>
      <pubDate>Thu, 28 Nov 2013 00:52:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/faqs/s-n-k-series-decode-of-syslog-numeric-prepend/m-p/45565#M334</guid>
      <dc:creator>FAQ_User</dc:creator>
      <dc:date>2013-11-28T00:52:00Z</dc:date>
    </item>
  </channel>
</rss>

