<?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 Extract username with comma in Security</title>
    <link>https://community.splunk.com/t5/Security/Extract-username-with-comma/m-p/60633#M2030</link>
    <description>&lt;P&gt;I have the following syslog&lt;/P&gt;

&lt;P&gt;Jan 30 14:34:05 10.234.150.21 Jan 30 13:34:05 DEN-COLO-VBN-CTRL-01 stm[10699]: &amp;lt;305007&amp;gt; &lt;INFO&gt; &lt;DEN-COLO-VBN-CTRL-01 10.234.150.21=""&gt;  AP Smith, John replacement bootstrapped&lt;/DEN-COLO-VBN-CTRL-01&gt;&lt;/INFO&gt;&lt;/P&gt;

&lt;P&gt;I am trying to extract "John Smith" as the username. The closest I have gotten so far:&lt;/P&gt;

&lt;P&gt;(?:[^-\n]*-){8}\d+\s+\d+.\d+.\d+.\d+&amp;gt;\s+\w+\s+(?P&lt;FIELDNAME2&gt;[^,]+),(?P&lt;FIELDNAME1&gt;\s+\w+)&lt;/FIELDNAME1&gt;&lt;/FIELDNAME2&gt;&lt;/P&gt;

&lt;P&gt;which extracts "John" as the First Name and "Smith" as the last name. Can I concatenate the two somehow? Also having the username as "Smith, John" would work as well.&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2012 20:42:50 GMT</pubDate>
    <dc:creator>loorimar</dc:creator>
    <dc:date>2012-01-30T20:42:50Z</dc:date>
    <item>
      <title>Extract username with comma</title>
      <link>https://community.splunk.com/t5/Security/Extract-username-with-comma/m-p/60633#M2030</link>
      <description>&lt;P&gt;I have the following syslog&lt;/P&gt;

&lt;P&gt;Jan 30 14:34:05 10.234.150.21 Jan 30 13:34:05 DEN-COLO-VBN-CTRL-01 stm[10699]: &amp;lt;305007&amp;gt; &lt;INFO&gt; &lt;DEN-COLO-VBN-CTRL-01 10.234.150.21=""&gt;  AP Smith, John replacement bootstrapped&lt;/DEN-COLO-VBN-CTRL-01&gt;&lt;/INFO&gt;&lt;/P&gt;

&lt;P&gt;I am trying to extract "John Smith" as the username. The closest I have gotten so far:&lt;/P&gt;

&lt;P&gt;(?:[^-\n]*-){8}\d+\s+\d+.\d+.\d+.\d+&amp;gt;\s+\w+\s+(?P&lt;FIELDNAME2&gt;[^,]+),(?P&lt;FIELDNAME1&gt;\s+\w+)&lt;/FIELDNAME1&gt;&lt;/FIELDNAME2&gt;&lt;/P&gt;

&lt;P&gt;which extracts "John" as the First Name and "Smith" as the last name. Can I concatenate the two somehow? Also having the username as "Smith, John" would work as well.&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 20:42:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Extract-username-with-comma/m-p/60633#M2030</guid>
      <dc:creator>loorimar</dc:creator>
      <dc:date>2012-01-30T20:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract username with comma</title>
      <link>https://community.splunk.com/t5/Security/Extract-username-with-comma/m-p/60634#M2031</link>
      <description>&lt;P&gt;You can use an eval command to create a new field:&lt;/P&gt;

&lt;P&gt;| eval fullname= fieldname1 . " " . fieldname2&lt;/P&gt;

&lt;P&gt;That'll create a field called fullname that's = "John Smith"&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 21:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Extract-username-with-comma/m-p/60634#M2031</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2012-01-30T21:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extract username with comma</title>
      <link>https://community.splunk.com/t5/Security/Extract-username-with-comma/m-p/60635#M2032</link>
      <description>&lt;P&gt;Thanks Brian,&lt;/P&gt;

&lt;P&gt;That's very cool. Ideally I would like to have this extracted into a single field at search time so I don't have to eval it as part of the search.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 21:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Extract-username-with-comma/m-p/60635#M2032</guid>
      <dc:creator>loorimar</dc:creator>
      <dc:date>2012-01-30T21:19:03Z</dc:date>
    </item>
  </channel>
</rss>

