<?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: What is the most efficient way to extract user name from my sample Message fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214159#M62808</link>
    <description>&lt;P&gt;Error in 'rex' command: Encountered the following error while compiling the regex &lt;CODE&gt;'\(?[^\)]*)'&lt;/CODE&gt;: Regex: unmatched parentheses&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2016 14:52:00 GMT</pubDate>
    <dc:creator>smudge797</dc:creator>
    <dc:date>2016-06-20T14:52:00Z</dc:date>
    <item>
      <title>What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214152#M62801</link>
      <description>&lt;P&gt;What's the most efficient way to extract the user name from these messages:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Message=Self-service Plug-in started (user=DOMAINX\a123456)
Message=Self-service Plug-in started (user=DOMAINY\c123456)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214152#M62801</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-06-20T14:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214153#M62802</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;&amp;lt;sourcetype&amp;gt;&amp;gt;&amp;gt;]
.
.
.

    EXTRACT-user = \\(?&amp;lt;user_wo_domain&amp;gt;[^\)]+)\)$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope i help you&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214153#M62802</guid>
      <dc:creator>jmallorquin</dc:creator>
      <dc:date>2016-06-20T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214154#M62803</link>
      <description>&lt;P&gt;I'm not sure if it's the &lt;EM&gt;most&lt;/EM&gt; efficient, but it's one of the simplest.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=Message "\\(?&amp;lt;userName&amp;gt;[^\)]*)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214154#M62803</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-06-20T14:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214155#M62804</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=Message "\(user=(?&amp;lt;user&amp;gt;[^\)]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214155#M62804</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-20T14:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214156#M62805</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;\\(?&amp;lt;user&amp;gt;(\w|\d+)*) should do it...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214156#M62805</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-06-20T14:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214157#M62806</link>
      <description>&lt;P&gt;Error in 'rex' command: Encountered the following error while compiling the regex '(?(\w|\d+)*)': Regex: unmatched parentheses&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214157#M62806</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-06-20T14:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214158#M62807</link>
      <description>&lt;P&gt;Nice,&lt;BR /&gt;&lt;BR /&gt;
user="DOMAINY\L123456"&lt;BR /&gt;
Can we drop the domain or separate it?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214158#M62807</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-06-20T14:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214159#M62808</link>
      <description>&lt;P&gt;Error in 'rex' command: Encountered the following error while compiling the regex &lt;CODE&gt;'\(?[^\)]*)'&lt;/CODE&gt;: Regex: unmatched parentheses&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214159#M62808</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-06-20T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214160#M62809</link>
      <description>&lt;P&gt;right ; -)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex  field=data "\\\(?&amp;lt;user&amp;gt;(\w|\d)*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;three slashes - the editors mistreat them ....&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214160#M62809</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-06-20T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214161#M62810</link>
      <description>&lt;P&gt;The leading backslash needs to be escaped.  Otherwise, it escapes the left paren.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214161#M62810</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-06-20T14:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214162#M62811</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | rex field=Message "\(user=(?&amp;lt;domain&amp;gt;[^\\\]+)\\\(?&amp;lt;user&amp;gt;[^\)]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2016 16:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214162#M62811</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-20T16:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214163#M62812</link>
      <description>&lt;P&gt;Nice thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 16:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214163#M62812</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-06-20T16:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214164#M62813</link>
      <description>&lt;P&gt;Hi @smudge797&lt;/P&gt;

&lt;P&gt;Glad you found a solution through @woodcock and gave him an upvote, but please don't forget to click "Accept" directly below his answer to resolve the question. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 20:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214164#M62813</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-06-20T20:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: What is the most efficient way to extract user name from my sample Message fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214165#M62814</link>
      <description>&lt;P&gt;Done!&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 21:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-most-efficient-way-to-extract-user-name-from-my/m-p/214165#M62814</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-06-20T21:21:40Z</dc:date>
    </item>
  </channel>
</rss>

