<?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: How to extract data from Microsoft Event Code 4656 (Failed Object Access) ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-data-from-Microsoft-Event-Code-4656-Failed-Object/m-p/335692#M99703</link>
    <description>&lt;P&gt;Using the data that you provided, this is an example of the &lt;CODE&gt;rex&lt;/CODE&gt; command(s) that will extract the information that you want (I believe):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
|eval raw="Accesses: DELETE
READ_CONTROL
WRITE_DAC
SYNCHRONIZE
ReadData (or ListDirectory)
WriteData (or AddFile)
ReadEA
WriteEA
ReadAttributes
WriteAttributes

Access Reasons: DELETE: Unknown or unchecked
READ_CONTROL: Unknown or unchecked
WRITE_DAC: Unknown or unchecked
SYNCHRONIZE: Unknown or unchecked
ReadData (or ListDirectory): Unknown or unchecked
WriteData (or AddFile): Unknown or unchecked
ReadEA: Unknown or unchecked
WriteEA: Unknown or unchecked
ReadAttributes: Unknown or unchecked
WriteAttributes: Unknown or unchecked

Access Mask:" 
| rex field=raw "Accesses:\s(?P&amp;lt;accesses&amp;gt;[\s\S]*?)\s+Access Reasons:(?P&amp;lt;reasons&amp;gt;[\s\S]*?)\s+Access Mask:" 
| rex field=accesses max_match=0 "(?P&amp;lt;accesseslist&amp;gt;.+)" 
| rex field=reasons max_match=0 "(?P&amp;lt;reasonslist&amp;gt;.+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only lines that you probably need to worry about at the last three &lt;CODE&gt;rex&lt;/CODE&gt; commands. They extract the data into the fields, which are further separated into a multi-valued set of fields by the last two &lt;CODE&gt;rex&lt;/CODE&gt; commands.&lt;/P&gt;

&lt;P&gt;Hopefully this is what you want, but please comment if there is something else that you need.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2017 21:59:18 GMT</pubDate>
    <dc:creator>cpetterborg</dc:creator>
    <dc:date>2017-10-26T21:59:18Z</dc:date>
    <item>
      <title>How to extract data from Microsoft Event Code 4656 (Failed Object Access) ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-data-from-Microsoft-Event-Code-4656-Failed-Object/m-p/335691#M99702</link>
      <description>&lt;P&gt;I'm reviewing Microsoft Event Code 4656 (Failed Object Access) but when I try to audit Accesses or Access Reasons, Splunk will only return the first event in that field (In this situation it's DELETE). I'm trying to find a way to table all results to see everything in that field (i.e. Read Control, Write DAC, Synchronize, ReadData, WriteData too) Not just DELETE.&lt;/P&gt;

&lt;P&gt;I've tried mvindex, stats list(Accesses), stats values(Accesses)...but the results always return the first result. I was thinking maybe I have to write a regular expression to  list everything between Accesses: to Access Reasons:, AND Access Reasons: to Access Masks:&lt;/P&gt;

&lt;P&gt;Any information you can provide me would be appreciated because right now I'm stuck.&lt;/P&gt;

&lt;P&gt;Index=winevents sourcetype=wineventlog:security EventCode=4656 &lt;BR /&gt;
| "this is where I'm stuck"&lt;BR /&gt;
| table user, host, Object_Name, Access_Reasons&lt;/P&gt;

&lt;P&gt;Accesses:        DELETE&lt;BR /&gt;
             READ_CONTROL&lt;BR /&gt;
             WRITE_DAC&lt;BR /&gt;
             SYNCHRONIZE&lt;BR /&gt;
             ReadData (or ListDirectory)&lt;BR /&gt;
             WriteData (or AddFile)&lt;BR /&gt;
             ReadEA&lt;BR /&gt;
             WriteEA&lt;BR /&gt;
             ReadAttributes&lt;BR /&gt;
             WriteAttributes&lt;/P&gt;

&lt;P&gt;Access Reasons:        DELETE:    Unknown or unchecked&lt;BR /&gt;
             READ_CONTROL:    Unknown or unchecked&lt;BR /&gt;
             WRITE_DAC:    Unknown or unchecked&lt;BR /&gt;
             SYNCHRONIZE:    Unknown or unchecked&lt;BR /&gt;
             ReadData (or ListDirectory):    Unknown or unchecked&lt;BR /&gt;
             WriteData (or AddFile):    Unknown or unchecked&lt;BR /&gt;
             ReadEA:    Unknown or unchecked&lt;BR /&gt;
             WriteEA:    Unknown or unchecked&lt;BR /&gt;
             ReadAttributes:    Unknown or unchecked&lt;BR /&gt;
             WriteAttributes:    Unknown or unchecked&lt;/P&gt;

&lt;P&gt;Access Mask:&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-data-from-Microsoft-Event-Code-4656-Failed-Object/m-p/335691#M99702</guid>
      <dc:creator>jbala1</dc:creator>
      <dc:date>2020-09-29T16:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract data from Microsoft Event Code 4656 (Failed Object Access) ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-data-from-Microsoft-Event-Code-4656-Failed-Object/m-p/335692#M99703</link>
      <description>&lt;P&gt;Using the data that you provided, this is an example of the &lt;CODE&gt;rex&lt;/CODE&gt; command(s) that will extract the information that you want (I believe):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
|eval raw="Accesses: DELETE
READ_CONTROL
WRITE_DAC
SYNCHRONIZE
ReadData (or ListDirectory)
WriteData (or AddFile)
ReadEA
WriteEA
ReadAttributes
WriteAttributes

Access Reasons: DELETE: Unknown or unchecked
READ_CONTROL: Unknown or unchecked
WRITE_DAC: Unknown or unchecked
SYNCHRONIZE: Unknown or unchecked
ReadData (or ListDirectory): Unknown or unchecked
WriteData (or AddFile): Unknown or unchecked
ReadEA: Unknown or unchecked
WriteEA: Unknown or unchecked
ReadAttributes: Unknown or unchecked
WriteAttributes: Unknown or unchecked

Access Mask:" 
| rex field=raw "Accesses:\s(?P&amp;lt;accesses&amp;gt;[\s\S]*?)\s+Access Reasons:(?P&amp;lt;reasons&amp;gt;[\s\S]*?)\s+Access Mask:" 
| rex field=accesses max_match=0 "(?P&amp;lt;accesseslist&amp;gt;.+)" 
| rex field=reasons max_match=0 "(?P&amp;lt;reasonslist&amp;gt;.+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only lines that you probably need to worry about at the last three &lt;CODE&gt;rex&lt;/CODE&gt; commands. They extract the data into the fields, which are further separated into a multi-valued set of fields by the last two &lt;CODE&gt;rex&lt;/CODE&gt; commands.&lt;/P&gt;

&lt;P&gt;Hopefully this is what you want, but please comment if there is something else that you need.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 21:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-data-from-Microsoft-Event-Code-4656-Failed-Object/m-p/335692#M99703</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-10-26T21:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract data from Microsoft Event Code 4656 (Failed Object Access) ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-data-from-Microsoft-Event-Code-4656-Failed-Object/m-p/335693#M99704</link>
      <description>&lt;P&gt;Thank you for your assistance. It worked!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 13:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-data-from-Microsoft-Event-Code-4656-Failed-Object/m-p/335693#M99704</guid>
      <dc:creator>jbala1</dc:creator>
      <dc:date>2017-10-27T13:32:31Z</dc:date>
    </item>
  </channel>
</rss>

