<?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 EEM Applet using action msg $_syslog_msg in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/eem-applet-using-action-msg-syslog-msg/m-p/1722450#M938552</link>
    <description>&lt;P&gt;Does anyone have a working sample of an applet using&amp;nbsp; action msg $_syslog_msg in an EEM Applet, where the syslog message produced comes out in a single line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running IOS 12.4(24)T5 on an 1841 using the applet shown below and it produces 2 lines of output instead of the desired 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;&lt;EM style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;&lt;STRONG style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;event manager applet Quiet-Mode-Console&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;&lt;EM style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;&lt;STRONG style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;event syslog occurs 1 pattern "LOGIN-3-TOOMANY_AUTHFAILS"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;&lt;EM style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;&lt;STRONG style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;action 1.0 syslog msg "CIPD-CL - Console Login Failures: $_syslog_msg"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above produces the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;*Jun 29 21:11:53 edt: %HA_EM-6-LOG: Quiet-Mode-Console: CIPD-CL - Console Login Failures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;*Jun 29 21:11:53 edt: %SEC_LOGIN-4-LOGIN_FAILED: Login failed [user: stamandk] [Source: 0.0.0.0] [localport: 0] [Reason: Login Authentication Failed] at 21:11:53 edt Wed Jun 29 2011&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 12:24:05 GMT</pubDate>
    <dc:creator>kstamandk</dc:creator>
    <dc:date>2020-02-21T12:24:05Z</dc:date>
    <item>
      <title>EEM Applet using action msg $_syslog_msg</title>
      <link>https://community.cisco.com/t5/network-security/eem-applet-using-action-msg-syslog-msg/m-p/1722450#M938552</link>
      <description>&lt;P&gt;Does anyone have a working sample of an applet using&amp;nbsp; action msg $_syslog_msg in an EEM Applet, where the syslog message produced comes out in a single line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running IOS 12.4(24)T5 on an 1841 using the applet shown below and it produces 2 lines of output instead of the desired 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;&lt;EM style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;&lt;STRONG style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;event manager applet Quiet-Mode-Console&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;&lt;EM style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;&lt;STRONG style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;event syslog occurs 1 pattern "LOGIN-3-TOOMANY_AUTHFAILS"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;&lt;EM style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;&lt;STRONG style="border-collapse: collapse; font-size: 12px; list-style-type: none;"&gt;action 1.0 syslog msg "CIPD-CL - Console Login Failures: $_syslog_msg"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above produces the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;*Jun 29 21:11:53 edt: %HA_EM-6-LOG: Quiet-Mode-Console: CIPD-CL - Console Login Failures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border-collapse: collapse; list-style-type: none;"&gt;*Jun 29 21:11:53 edt: %SEC_LOGIN-4-LOGIN_FAILED: Login failed [user: stamandk] [Source: 0.0.0.0] [localport: 0] [Reason: Login Authentication Failed] at 21:11:53 edt Wed Jun 29 2011&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 12:24:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/eem-applet-using-action-msg-syslog-msg/m-p/1722450#M938552</guid>
      <dc:creator>kstamandk</dc:creator>
      <dc:date>2020-02-21T12:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: EEM Applet using action msg $_syslog_msg</title>
      <link>https://community.cisco.com/t5/network-security/eem-applet-using-action-msg-syslog-msg/m-p/1722451#M938553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is probability a \n causing that.  If you use TCL you can remove those.  Not sure if it's possible to do that with an applet.  Are you trying to replace the original message?  If so that may be better suited to ESM.  My understanding that EEM 4.0 will be able to replace ESM but I don't believe it's out yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Cisco Technical Support iPad App&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 13:30:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/eem-applet-using-action-msg-syslog-msg/m-p/1722451#M938553</guid>
      <dc:creator>jepalmer</dc:creator>
      <dc:date>2011-07-21T13:30:32Z</dc:date>
    </item>
    <item>
      <title>EEM Applet using action msg $_syslog_msg</title>
      <link>https://community.cisco.com/t5/network-security/eem-applet-using-action-msg-syslog-msg/m-p/1722452#M938555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Problem solved - the syslog message only appears on a single line if I APPEND the string as opposed to PREFIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="list-style-type: none; border-collapse: collapse;"&gt;&lt;EM style="list-style-type: none; border-collapse: collapse; font-size: 12px;"&gt;&lt;STRONG style="list-style-type: none; border-collapse: collapse; font-size: 12px;"&gt;action 1.0 syslog msg "Console Login Failures: $_syslog_msg - CIPD-CL"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 20:59:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/eem-applet-using-action-msg-syslog-msg/m-p/1722452#M938555</guid>
      <dc:creator>kstamandk</dc:creator>
      <dc:date>2011-08-12T20:59:30Z</dc:date>
    </item>
  </channel>
</rss>

