<?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: Advise a rex for domain\username example  windows\mathews in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140313#M38748</link>
    <description>&lt;P&gt;I was hoping something like this would work, this was generated through the erex , but needs some adjustments i guess&lt;/P&gt;

&lt;P&gt;rex "(?i)windows\(?P[^\]+)"&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2015 21:11:07 GMT</pubDate>
    <dc:creator>LintuMathews</dc:creator>
    <dc:date>2015-04-10T21:11:07Z</dc:date>
    <item>
      <title>Advise a rex for domain\username example  windows\mathews</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140308#M38743</link>
      <description>&lt;P&gt;can you please advise a rex for &lt;CODE&gt;domain\username&lt;/CODE&gt; example  &lt;CODE&gt;windows\mathews&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Below is sample of event I am trying to extract&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://windows/corp/it/us\x00\x00admin/forms/allitems.aspx\x00windows\mathews\x00" target="test_blank"&gt;http://windows/corp/it/us\x00\x00admin/forms/allitems.aspx\x00windows\mathews\x00&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Apr 2015 05:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140308#M38743</guid>
      <dc:creator>LintuMathews</dc:creator>
      <dc:date>2015-04-10T05:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Advise a rex for domain\username example  windows\mathews</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140309#M38744</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex field=yourfieldname  "windows\\\\(?&amp;lt;UserName&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Runanywhere sample search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval temp="http://windows/corp/it/us\x00\x00admin/forms/allitems.aspx\x00windows\mathews\x00" | table temp | rex field=temp "windows\\\\(?&amp;lt;UserName&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Apr 2015 06:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140309#M38744</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-04-10T06:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Advise a rex for domain\username example  windows\mathews</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140310#M38745</link>
      <description>&lt;P&gt;Didn't work out,  the domain name here  "windows`mathews`" where "windows" is like a static domain name i have in all the logs meaning I dont have anyother domains except "windows", I just want to grab the username out of it&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 06:53:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140310#M38745</guid>
      <dc:creator>LintuMathews</dc:creator>
      <dc:date>2015-04-10T06:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Advise a rex for domain\username example  windows\mathews</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140311#M38746</link>
      <description>&lt;P&gt;try the updated query&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 07:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140311#M38746</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-04-10T07:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Advise a rex for domain\username example  windows\mathews</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140312#M38747</link>
      <description>&lt;P&gt;That will work if your usernames only ever contain a-z 0-9 or _&lt;/P&gt;

&lt;P&gt;This one will match any character up to a \&lt;/P&gt;

&lt;P&gt;your base search | rex field=yourfieldname  "windows\\(?.+?)\"&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140312#M38747</guid>
      <dc:creator>Skippy</dc:creator>
      <dc:date>2015-04-10T10:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Advise a rex for domain\username example  windows\mathews</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140313#M38748</link>
      <description>&lt;P&gt;I was hoping something like this would work, this was generated through the erex , but needs some adjustments i guess&lt;/P&gt;

&lt;P&gt;rex "(?i)windows\(?P[^\]+)"&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 21:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Advise-a-rex-for-domain-username-example-windows-mathews/m-p/140313#M38748</guid>
      <dc:creator>LintuMathews</dc:creator>
      <dc:date>2015-04-10T21:11:07Z</dc:date>
    </item>
  </channel>
</rss>

