<?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: Oracle Audit Trail Field Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55880#M13651</link>
    <description>&lt;P&gt;Couldn't get the extraction to work at index time for some reason. But, I resolved this issue with a few search time extractions. &lt;BR /&gt;
Example:&lt;BR /&gt;
(?im)USERID:\s\"(?P&lt;FIELDNAME&gt;.+?)\"&lt;/FIELDNAME&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2011 22:15:15 GMT</pubDate>
    <dc:creator>JSapienza</dc:creator>
    <dc:date>2011-03-09T22:15:15Z</dc:date>
    <item>
      <title>Oracle Audit Trail Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55876#M13647</link>
      <description>&lt;P&gt;I am trying to extract the fields from an Oracle 10g Audit trail. Below is a sample of the raw log :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Tue Feb 15 10:14:44 2011
SESSIONID: "21288516" ENTRYID: "5158831" STATEMENT: "3585703" USERID: "TEST" ACTION: "6" RETURNCODE: "0" OBJ$CREATOR: "TEST" OBJ$NAME: "SR_JOB" OS$USERID: "auditwks" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried this in my transform.cfg : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?:(["']|(")).*?(?&amp;lt;!\\)(?(1)\1|(?(2)"))

FORMAT = $1::$3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it seem to not be working and im not all that good with regex's. Any assistance is greatly appreciated. &lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 00:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55876#M13647</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-03-09T00:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Audit Trail Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55877#M13648</link>
      <description>&lt;P&gt;Looks to me like you just copied the REGEX from &lt;A href="http://answers.splunk.com/questions/12157/oracle-audit-log-regex" rel="nofollow"&gt;http://answers.splunk.com/questions/12157/oracle-audit-log-regex&lt;/A&gt; but that won't work because the format of the data there is completely different from the one you have here.&lt;/P&gt;

&lt;P&gt;You might just be able to use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DELIMS = " ", ":"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;instead of a REGEX with this data format, but if you really wanted you could probably use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (\w+):\s+\"([^\"]*)\"
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Mar 2011 01:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55877#M13648</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-03-09T01:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Audit Trail Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55878#M13649</link>
      <description>&lt;P&gt;Yea I was just looking at that. I copied the wrong REGEX when I was reading that post. oops.. I edited my original post but I will try your suggestion. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 01:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55878#M13649</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-03-09T01:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Audit Trail Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55879#M13650</link>
      <description>&lt;P&gt;OK , I tried both the DELIMS and the modified REGEX and the fields still were not extracted. I am getting new events but the fields are not showing .. its the darnedest thing.  Any ideas ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 03:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55879#M13650</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-03-09T03:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Audit Trail Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55880#M13651</link>
      <description>&lt;P&gt;Couldn't get the extraction to work at index time for some reason. But, I resolved this issue with a few search time extractions. &lt;BR /&gt;
Example:&lt;BR /&gt;
(?im)USERID:\s\"(?P&lt;FIELDNAME&gt;.+?)\"&lt;/FIELDNAME&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 22:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55880#M13651</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-03-09T22:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Audit Trail Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55881#M13652</link>
      <description>&lt;P&gt;Search time is preferred most of the time, and definitely better in this case. Index time is both slower and less flexible.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2011 03:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55881#M13652</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-03-11T03:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Audit Trail Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55882#M13653</link>
      <description>&lt;P&gt;You can extract the key/value pair with one extraction:&lt;BR /&gt;
&lt;CODE&gt;(?i)(?&amp;lt;_KEY_1&amp;gt;\S+):\s+"(?&amp;lt;_VAL_1&amp;gt;[^"]+)"&lt;/CODE&gt;&lt;BR /&gt;
This will result these fields and values from you log:&lt;/P&gt;

&lt;P&gt;SESSIONID=21288516&lt;BR /&gt;
ENTRYID=5158831&lt;BR /&gt;
STATEMENT=3585703&lt;BR /&gt;
USERID=TEST&lt;BR /&gt;
ACTION=6&lt;BR /&gt;
RETURNCODE=0&lt;BR /&gt;
OBJ_CREATOR=TEST&lt;BR /&gt;
OBJ_NAME=SR_JOB&lt;BR /&gt;
OS_USERID=auditwks&lt;/P&gt;

&lt;P&gt;Note that Splunk is smart enough to replace the $ char in the field name.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oracle-Audit-Trail-Field-Extraction/m-p/55882#M13653</guid>
      <dc:creator>bvamos</dc:creator>
      <dc:date>2020-09-28T10:14:12Z</dc:date>
    </item>
  </channel>
</rss>

