<?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: rex expression in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234115#M176561</link>
    <description>&lt;P&gt;upvoted, because the regex is matching faster &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2016 20:35:21 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2016-10-05T20:35:21Z</dc:date>
    <item>
      <title>rex expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234113#M176559</link>
      <description>&lt;P&gt;I need to extract the account name from this snippet of a Windows security event log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Account For Which Logon Failed:
    Security ID: NULL SID
    Account Name: Joe User
    Account Domain: Some.Domain
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the expression I'm using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "Failed:\s+.*\s+Account\sName:\s+(?&amp;lt;TargetAccount&amp;gt;\S+)\s"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which gives me this result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; TargetAccount
          Joe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I account for the white space to get the rest of the account  name to show up in the result?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 20:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234113#M176559</guid>
      <dc:creator>pil321</dc:creator>
      <dc:date>2016-10-05T20:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: rex expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234114#M176560</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | rex "Name:\s(?&amp;lt;TargetAccount&amp;gt;[^\n\r]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Oct 2016 20:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234114#M176560</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-05T20:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: rex expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234115#M176561</link>
      <description>&lt;P&gt;upvoted, because the regex is matching faster &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 20:35:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234115#M176561</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-10-05T20:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: rex expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234116#M176562</link>
      <description>&lt;P&gt;modify your regex in this way&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Failed:\s+.*\s+Account\sName:\s+(?&amp;lt;TargetAccount&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;verify it on &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 07:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-expression/m-p/234116#M176562</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-06T07:47:20Z</dc:date>
    </item>
  </channel>
</rss>

