<?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 Field extraction (regex) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107834#M28046</link>
    <description>&lt;P&gt;New Policy: &lt;BR /&gt;
Success Failure&lt;BR /&gt;&lt;BR /&gt;
 +     +    Logon/Logoff&lt;BR /&gt;&lt;BR /&gt;
 +     -    Object Access&lt;BR /&gt;&lt;BR /&gt;
 +     -    Privilege Use&lt;BR /&gt;
 +     +    Account Management&lt;BR /&gt;
 +    - Policy Change&lt;BR /&gt;
 +    - System&lt;BR /&gt;&lt;BR /&gt;
 +     -    Detailed Tracking&lt;BR /&gt;&lt;BR /&gt;
 +     -    Directory Service Access&lt;BR /&gt;&lt;BR /&gt;
 +     +    Account Logon&lt;/P&gt;

&lt;P&gt;I want to be able to list these in a chart so that it displays the new policy that has changed in each field. I am not sure how to create a regex to generate this type of results. Let me know if more information is needed. Thank you &lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2012 14:33:20 GMT</pubDate>
    <dc:creator>Michael_Schyma1</dc:creator>
    <dc:date>2012-07-25T14:33:20Z</dc:date>
    <item>
      <title>Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107834#M28046</link>
      <description>&lt;P&gt;New Policy: &lt;BR /&gt;
Success Failure&lt;BR /&gt;&lt;BR /&gt;
 +     +    Logon/Logoff&lt;BR /&gt;&lt;BR /&gt;
 +     -    Object Access&lt;BR /&gt;&lt;BR /&gt;
 +     -    Privilege Use&lt;BR /&gt;
 +     +    Account Management&lt;BR /&gt;
 +    - Policy Change&lt;BR /&gt;
 +    - System&lt;BR /&gt;&lt;BR /&gt;
 +     -    Detailed Tracking&lt;BR /&gt;&lt;BR /&gt;
 +     -    Directory Service Access&lt;BR /&gt;&lt;BR /&gt;
 +     +    Account Logon&lt;/P&gt;

&lt;P&gt;I want to be able to list these in a chart so that it displays the new policy that has changed in each field. I am not sure how to create a regex to generate this type of results. Let me know if more information is needed. Thank you &lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107834#M28046</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-25T14:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107835#M28047</link>
      <description>&lt;P&gt;What is the sourcetype? And can you show an example of the data? (I'm guessing that it's the WinEvent:Security, but some folks don't have samples of that data available to them.)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107835#M28047</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-07-25T14:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107836#M28048</link>
      <description>&lt;P&gt;yes it is WinEvent:Security&lt;/P&gt;

&lt;P&gt;LogName=Security SourceName=Security EventCode=612 EventType=8 Type=Success Audit ComputerName=W573712 User=SYSTEM Sid=S-1-5-18 SidType=1 Category=6 CategoryString=Policy Change RecordNumber=325253 Message=Audit Policy Change: New Policy: Success Failure + + Logon/Logoff - + Object Access - - Privilege Use + + Account Management + - Policy Change + - System - - Detailed Tracking - - Directory Service Access + + Account Logon Changed By: User Name: W57371248$ Domain Name: SERVER Logon ID: (0x0,0x3E7)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 15:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107836#M28048</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-25T15:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107837#M28049</link>
      <description>&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 15:45:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107837#M28049</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-26T15:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107838#M28050</link>
      <description>&lt;P&gt;I would suggest this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=WinEvent:Security
| rex field=_raw "New Policy: Success Failure (?&amp;lt;newPolicy&amp;gt;.*?)Changed By:"
| eval newPolicies=replace(newPolicy,"([+-] [+-])",":\1")
| eval newPolicies=split(newPolicies,":")
| eval newPolicies=mvfilter(newPolicies!=NULL)
| table EventCode newPolicies
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you a multi-valued field (newPolicies) for the policy changes, as well as a single-valued field that is simply the policy change string (newPolicy).&lt;BR /&gt;&lt;BR /&gt;
However, you might want to expand this in a different way, depending on the exact reporting that you want.&lt;BR /&gt;&lt;BR /&gt;
What sort of reporting do you want to do with this field? Count by policy change? Search for particular changes? Look for various +/- combinations?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 16:49:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107838#M28050</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-07-26T16:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107839#M28051</link>
      <description>&lt;P&gt;I would like to list the new policy fields that have changed from the old ones, but i am not sure how i would go about doing that. Thank you for the response&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 17:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107839#M28051</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-26T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107840#M28052</link>
      <description>&lt;P&gt;it says:&lt;BR /&gt;
Error in 'eval' command: The arguments to the 'mvfilter' function are invalid.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 17:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107840#M28052</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-26T17:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107841#M28053</link>
      <description>&lt;P&gt;I updated the search above, hopefully eliminating the mvfilter error&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 18:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107841#M28053</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-07-26T18:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107842#M28054</link>
      <description>&lt;P&gt;How do you know that a policy field has changed? Is it the + and - ?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 18:59:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-regex/m-p/107842#M28054</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-07-26T18:59:10Z</dc:date>
    </item>
  </channel>
</rss>

