<?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 Re: How to extract username from my data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274379#M82765</link>
    <description>&lt;P&gt;you are amazing @somesoni2&lt;/P&gt;

&lt;P&gt;please explain regex Sir.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 17:35:20 GMT</pubDate>
    <dc:creator>thambisetty_bal</dc:creator>
    <dc:date>2017-02-02T17:35:20Z</dc:date>
    <item>
      <title>How to extract username from my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274377#M82763</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I have been struggling to extract user name from below values of user.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user
--------
user1@sa.com
sab\user2
user3

OUTPUT
------------
user1
user2
user3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;kindly help me out..&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 16:30:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274377#M82763</guid>
      <dc:creator>thambisetty_bal</dc:creator>
      <dc:date>2017-02-02T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract username from my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274378#M82764</link>
      <description>&lt;P&gt;Give this a try. (Runanywhere sample search, first line is just to generate sample data).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval user="user1@sa.com sab\user2 user3" | table user | makemv user | mvexpand user 
| rex field=user "(?&amp;lt;cleanedUser&amp;gt;\w+)(\@|$)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Feb 2017 17:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274378#M82764</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-02T17:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract username from my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274379#M82765</link>
      <description>&lt;P&gt;you are amazing @somesoni2&lt;/P&gt;

&lt;P&gt;please explain regex Sir.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 17:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274379#M82765</guid>
      <dc:creator>thambisetty_bal</dc:creator>
      <dc:date>2017-02-02T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract username from my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274380#M82766</link>
      <description>&lt;P&gt;It's capturing a full work (\w+) till you encounter a &lt;CODE&gt;@&lt;/CODE&gt; symbol or end of value (&lt;CODE&gt;$&lt;/CODE&gt;). backward slash is word terminator so it works for 2nd example value as well.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 18:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-username-from-my-data/m-p/274380#M82766</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-02T18:40:35Z</dc:date>
    </item>
  </channel>
</rss>

