<?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: Windows Security Logs: Regex Filtering Search time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108788#M28343</link>
    <description>&lt;P&gt;Thank you but that didnt work, when I apply that to my search string it will list the entire content of the event.&lt;/P&gt;

&lt;P&gt;Any other suggestions?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2011 22:07:06 GMT</pubDate>
    <dc:creator>arrowsmith3</dc:creator>
    <dc:date>2011-11-21T22:07:06Z</dc:date>
    <item>
      <title>Windows Security Logs: Regex Filtering Search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108786#M28341</link>
      <description>&lt;P&gt;I have a windows security event that I am trying to extract a custom field for failed logon events.  The problem I have is there are two duplicate categories and the text I am after is in the second category:&lt;/P&gt;

&lt;P&gt;Ex: &lt;BR /&gt;
Subject:&lt;BR /&gt;
    Security ID:        S-1-0-0&lt;BR /&gt;
    Account Name:       -&lt;BR /&gt;
    Account Domain:     -&lt;BR /&gt;
    Logon ID:       0x0&lt;BR /&gt;
Logon Type:         3&lt;BR /&gt;
Account For Which Logon Failed:&lt;BR /&gt;
    Security ID:        S-1-0-0&lt;BR /&gt;
    Account Name:       PCVS Operator&lt;BR /&gt;
    Account Domain:     PCVSB681-2&lt;/P&gt;

&lt;P&gt;Normally I would just put in rex "Account Name:(?&lt;ACCOUNT&gt;.+)" to extract the content of this field but since there is two of them, is there a way to skip the first field and go directly to the second?&lt;/ACCOUNT&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2011 23:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108786#M28341</guid>
      <dc:creator>arrowsmith3</dc:creator>
      <dc:date>2011-11-11T23:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Security Logs: Regex Filtering Search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108787#M28342</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex "(?ms)Account Name.*Account Name:(?&amp;lt;account&amp;gt;.+)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;gt; please upvote and accept answer if you find it useful - thanks!&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2011 01:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108787#M28342</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2011-11-12T01:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Security Logs: Regex Filtering Search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108788#M28343</link>
      <description>&lt;P&gt;Thank you but that didnt work, when I apply that to my search string it will list the entire content of the event.&lt;/P&gt;

&lt;P&gt;Any other suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 22:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108788#M28343</guid>
      <dc:creator>arrowsmith3</dc:creator>
      <dc:date>2011-11-21T22:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Security Logs: Regex Filtering Search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108789#M28344</link>
      <description>&lt;P&gt;This resolved my question, thanks goes to ziegfried.&lt;/P&gt;

&lt;P&gt;rex "(?ms)Account For Which Logon Failed.+?Account Name:\s+(?&lt;WANTED_ACCOUNT&gt;\V+)"&lt;/WANTED_ACCOUNT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 22:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Windows-Security-Logs-Regex-Filtering-Search-time/m-p/108789#M28344</guid>
      <dc:creator>arrowsmith3</dc:creator>
      <dc:date>2011-11-21T22:42:42Z</dc:date>
    </item>
  </channel>
</rss>

