<?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: Extracting information via Regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-information-via-Regex/m-p/87014#M22220</link>
    <description>&lt;P&gt;Thank you so much, that works perfectly. I got this to work but it doesnt look as good as yours:&lt;/P&gt;

&lt;P&gt;rex field=_raw "Account For Which Logon Failed:\W\s+\w+\W\S+\W\W+\S+\W\S+\W\s+\w+\W\w+:\W\W(?&lt;CNAME&gt;.+?)\W"&lt;/CNAME&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Oct 2012 13:14:20 GMT</pubDate>
    <dc:creator>Michael_Schyma1</dc:creator>
    <dc:date>2012-10-11T13:14:20Z</dc:date>
    <item>
      <title>Extracting information via Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-information-via-Regex/m-p/87012#M22218</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Subject:

    Security ID:        NULL SID

    Account Name:       -

    Account Domain:     -

    Logon ID:       0x0



Logon Type:         3



Account For Which Logon Failed:

    Security ID:        NULL SID

    Account Name:       MIF3VB0

    Account Domain:     Company
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to be able to create a regular expression that just grabs the second Account Name In my search under the title account for which logon failed. Does anyone have any suggestions on how i would go about extracting a variable with two values set to it. I am having many problems trying to figure this out. thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-information-via-Regex/m-p/87012#M22218</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-10-11T12:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting information via Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-information-via-Regex/m-p/87013#M22219</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;(?msi)Account For Which Logon Failed:.+?Account Name:\s+(\S+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-information-via-Regex/m-p/87013#M22219</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-11T12:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting information via Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-information-via-Regex/m-p/87014#M22220</link>
      <description>&lt;P&gt;Thank you so much, that works perfectly. I got this to work but it doesnt look as good as yours:&lt;/P&gt;

&lt;P&gt;rex field=_raw "Account For Which Logon Failed:\W\s+\w+\W\S+\W\W+\S+\W\S+\W\s+\w+\W\w+:\W\W(?&lt;CNAME&gt;.+?)\W"&lt;/CNAME&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-information-via-Regex/m-p/87014#M22220</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-10-11T13:14:20Z</dc:date>
    </item>
  </channel>
</rss>

