<?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 fields from Oracle Diagnostic logs (ODL) format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216199#M176027</link>
    <description>&lt;P&gt;No I don't need the DBNAME as that is not part of the Message string.&lt;/P&gt;

&lt;P&gt;I used this regex&lt;BR /&gt;
REGEX = [.*]\s+(?P[A-Z].+)&lt;/P&gt;

&lt;P&gt;This appears to be working.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 22:48:20 GMT</pubDate>
    <dc:creator>vchinnadurai</dc:creator>
    <dc:date>2017-01-05T22:48:20Z</dc:date>
    <item>
      <title>How to extract fields from Oracle Diagnostic logs (ODL) format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216193#M176021</link>
      <description>&lt;P&gt;I am trying to extract fields from Oracle Diagnostic logs for Hyperion Essbase as each event will have values in different location of the event.&lt;/P&gt;

&lt;P&gt;For example: When trying to extract the message in the log&lt;/P&gt;

&lt;P&gt;Format 1:&lt;BR /&gt;
[timestamp] [component] [module] [module id] [context id] [thread id] Command Received to extract&lt;/P&gt;

&lt;P&gt;Format 2:&lt;BR /&gt;
[timestamp] [component] [module] [module id] [context id] [thread id] [DB Name] Connected from [IP Address]&lt;/P&gt;

&lt;P&gt;I need to extract the Message which is in different location of the event in the same field.&lt;/P&gt;

&lt;P&gt;Any help would be great.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 22:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216193#M176021</guid>
      <dc:creator>vchinnadurai</dc:creator>
      <dc:date>2016-12-29T22:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from Oracle Diagnostic logs (ODL) format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216194#M176022</link>
      <description>&lt;P&gt;Can you add sample events for Format 1 and Format 2 from your logs?&lt;BR /&gt;
Have you tried Interactive Field Extraction in Splunk using Extract New Fields which generates dynamic regular expressions based on the need.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 13:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216194#M176022</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-30T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from Oracle Diagnostic logs (ODL) format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216195#M176023</link>
      <description>&lt;P&gt;Here is the sample. There are many formats in the ODL.&lt;/P&gt;

&lt;P&gt;Format 1&lt;/P&gt;

&lt;P&gt;[2016-12-30T11:08:46.216-05:00] [ESSBASE0] [NOTIFICATION:16] [TCP-59] [TCP] [ecid: 1482887126970,0] [tid: 140198389143872]  Connected from [::ffff:999.999.99.999]&lt;/P&gt;

&lt;P&gt;[2016-12-30T11:08:27.60-05:00] [ESSBASE0] [NOTIFICATION:16] [AGENT-1001] [AGENT] [ecid: 1482887126970,0] [tid: 140198073563456]  Received client request: Clear Application/Database (from user [sampleuser@Native Directory])&lt;/P&gt;

&lt;P&gt;Format 2&lt;/P&gt;

&lt;P&gt;[2016-12-30T11:08:24.302-05:00] [PLN3] [NOTIFICATION:16] [REQ-91] [REQ] [ecid: 148308120489,0] [tid: 140641102035264] [DBNAME: SAMPLE] Received Command [SetAlias] from user [sampleuser@Native Directory]&lt;/P&gt;

&lt;P&gt;[2016-12-30T11:08:26.932-05:00] [PLN3] [NOTIFICATION:16] [SSE-82] [SSE] [ecid: 148308120489,0] [tid: 140641102035264] [DBNAME: SAMPLE] Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [202] non-Dyn.Calc.Cache : [0]&lt;/P&gt;

&lt;P&gt;The filed value that I am working to extract is below:&lt;/P&gt;

&lt;P&gt;Format 1&lt;/P&gt;

&lt;P&gt;Message_Text="Connected from [::ffff:999.999.99.999]"&lt;BR /&gt;
Message_Text="Received client request: Clear Application/Database (from user [sampleuser@Native Directory])"&lt;/P&gt;

&lt;P&gt;Format 2&lt;/P&gt;

&lt;P&gt;Message_Text="Received Command [SetAlias] from user [sampleuser@Native Directory]"&lt;BR /&gt;
Message_Text="Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [202] non-Dyn.Calc.Cache : [0]"&lt;/P&gt;

&lt;P&gt;As you can see the field name is the same but the value comes from different location of the event.&lt;/P&gt;

&lt;P&gt;I have defined the following in props.conf&lt;/P&gt;

&lt;P&gt;[sample_source_type]&lt;BR /&gt;
REPORT-Message_Text = extract_Message_Text&lt;BR /&gt;
REPORT-Message_Text = extract_Message_Text_FMT2&lt;BR /&gt;
REPORT-Message_Text = extract_Message_Text_FMT3&lt;/P&gt;

&lt;P&gt;I have defined the following in transforms.conf&lt;/P&gt;

&lt;P&gt;[extract_Message_Text]&lt;BR /&gt;
REGEX = ^[^ \n]&lt;EM&gt;\s+[[^]]+][^]\n]&lt;/EM&gt;]\s+[\w+:[^]]+[^[\n]&lt;EM&gt;[[^]]+[^:\n]&lt;/EM&gt;:\s+\d+,\d+[^:\n]*:\s+\d+]\s+(?P.+)&lt;BR /&gt;
FORMAT = Message_Text::$1&lt;/P&gt;

&lt;P&gt;[extract_Message_Text_FMT2]&lt;BR /&gt;
REGEX = ^[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]*\s+(?P.+)&lt;BR /&gt;
FORMAT = Message_Text::$1&lt;/P&gt;

&lt;P&gt;[extract_Message_Text_FMT3]&lt;BR /&gt;
REGEX = ^[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+[^\s\n]&lt;EM&gt;\s+[^\s\n]&lt;/EM&gt;\s+\d]\s(?P.+)&lt;BR /&gt;
FORMAT = Message_Text::$1&lt;/P&gt;

&lt;P&gt;This is due to making the same fields available across many source types which will have same ODL format events. But it is not working as expected.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216195#M176023</guid>
      <dc:creator>vchinnadurai</dc:creator>
      <dc:date>2020-09-29T12:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from Oracle Diagnostic logs (ODL) format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216196#M176024</link>
      <description>&lt;P&gt;How about something like this?&lt;BR /&gt;
in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = .+\[tid:\s+\d+\](?P&amp;lt;message&amp;gt;.+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This captures DBNAME: SAMPLE as well. Not sure if you want that or not. I'll work on it a bit more to see if I cna have a single regex to do it, but I imagine, knowing the name of DB might be useful?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 23:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216196#M176024</guid>
      <dc:creator>sshelly_splunk</dc:creator>
      <dc:date>2017-01-04T23:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from Oracle Diagnostic logs (ODL) format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216197#M176025</link>
      <description>&lt;P&gt;I think I have it. This does th e "OR" check for DBNAME: \w+ and does not capture that.&lt;BR /&gt;
HTH&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?:\[tid:\s+\d+\]\s+\[DBNAME:\s+\w+\]|\[tid:\s+\d+\])(?P&amp;lt;message&amp;gt;.+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 23:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216197#M176025</guid>
      <dc:creator>sshelly_splunk</dc:creator>
      <dc:date>2017-01-04T23:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from Oracle Diagnostic logs (ODL) format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216198#M176026</link>
      <description>&lt;P&gt;This matches any character within [...] and not the string. No luck.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:44:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216198#M176026</guid>
      <dc:creator>vchinnadurai</dc:creator>
      <dc:date>2017-01-05T22:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from Oracle Diagnostic logs (ODL) format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216199#M176027</link>
      <description>&lt;P&gt;No I don't need the DBNAME as that is not part of the Message string.&lt;/P&gt;

&lt;P&gt;I used this regex&lt;BR /&gt;
REGEX = [.*]\s+(?P[A-Z].+)&lt;/P&gt;

&lt;P&gt;This appears to be working.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:48:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-Oracle-Diagnostic-logs-ODL-format/m-p/216199#M176027</guid>
      <dc:creator>vchinnadurai</dc:creator>
      <dc:date>2017-01-05T22:48:20Z</dc:date>
    </item>
  </channel>
</rss>

