<?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 Regex for Syslog Username Parsing in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/regex-for-syslog-username-parsing/m-p/3512139#M557682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get identity from some of my users logging into a Centos 6.&amp;nbsp; I am able to get the IP address of the machine but am having trouble parsing the username.&amp;nbsp; I am not able to get the quotes stripped from the username.&amp;nbsp; The regex string with ISE 2.3P1 doesn't seem to follow the regex that I am used to.&amp;nbsp; How can I strip the "" from the username, or does it matter that it is surrounded by quotes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using acct=[^, ]* but that results in my issue of getting "jsmith". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type=CRED_DISP msg=audit(1513039700.390:8262): user pid=19739 uid=0 auid=500 ses=1225 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:setcred acct="jsmith" exe="/usr/sbin/sshd" hostname=metlab2008-svr1.metlab.local addr=10.1.1.92 terminal=ssh res=success'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2020 18:41:17 GMT</pubDate>
    <dc:creator>scamarda</dc:creator>
    <dc:date>2020-02-21T18:41:17Z</dc:date>
    <item>
      <title>Regex for Syslog Username Parsing</title>
      <link>https://community.cisco.com/t5/network-access-control/regex-for-syslog-username-parsing/m-p/3512139#M557682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get identity from some of my users logging into a Centos 6.&amp;nbsp; I am able to get the IP address of the machine but am having trouble parsing the username.&amp;nbsp; I am not able to get the quotes stripped from the username.&amp;nbsp; The regex string with ISE 2.3P1 doesn't seem to follow the regex that I am used to.&amp;nbsp; How can I strip the "" from the username, or does it matter that it is surrounded by quotes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using acct=[^, ]* but that results in my issue of getting "jsmith". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type=CRED_DISP msg=audit(1513039700.390:8262): user pid=19739 uid=0 auid=500 ses=1225 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:setcred acct="jsmith" exe="/usr/sbin/sshd" hostname=metlab2008-svr1.metlab.local addr=10.1.1.92 terminal=ssh res=success'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 18:41:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/regex-for-syslog-username-parsing/m-p/3512139#M557682</guid>
      <dc:creator>scamarda</dc:creator>
      <dc:date>2020-02-21T18:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Syslog Username Parsing</title>
      <link>https://community.cisco.com/t5/network-access-control/regex-for-syslog-username-parsing/m-p/3512140#M557694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below should get you what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;acct="([a-zA-Z0-9\_]+)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 16:18:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/regex-for-syslog-username-parsing/m-p/3512140#M557694</guid>
      <dc:creator>Timothy Abbott</dc:creator>
      <dc:date>2017-12-15T16:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Syslog Username Parsing</title>
      <link>https://community.cisco.com/t5/network-access-control/regex-for-syslog-username-parsing/m-p/3512141#M557706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:26:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/regex-for-syslog-username-parsing/m-p/3512141#M557706</guid>
      <dc:creator>scamarda</dc:creator>
      <dc:date>2017-12-15T20:26:07Z</dc:date>
    </item>
  </channel>
</rss>

