<?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: Extract Field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111044#M29069</link>
    <description>&lt;P&gt;see my update and feel free to accept the answer now &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jun 2014 12:33:44 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-06-19T12:33:44Z</dc:date>
    <item>
      <title>Extract Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111041#M29066</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;I have oracle error data i need to extract some fields from it here is the data&lt;/P&gt;

&lt;P&gt;[EntID: ] 17-Jun-2014, 07:55:39:586, [10], UserId: , Exception DetailsMessage&lt;BR /&gt;
ORA-1034: ORACLE not available&lt;BR /&gt;
Stack Trace&lt;/P&gt;

&lt;P&gt;[EnterpiseID: ] 17-Jun-2014, 07:55:25:373, [11], UserId: , Exception DetailsMessage&lt;BR /&gt;
ORA-28000: the account is locked&lt;BR /&gt;
Stack Trace&lt;/P&gt;

&lt;P&gt;Here i neeed to extract ORA-1034: ORACLE not available and ORA-28000: the account is locked but i am not able to get the proper regex for this.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Gajanan &lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 12:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111041#M29066</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-06-19T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111042#M29067</link>
      <description>&lt;P&gt;Hi gajananh999,&lt;/P&gt;

&lt;P&gt;try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your base search to get the events | rex field=_raw "(?&amp;lt;myOra&amp;gt;ORA-.+)" | table myOra
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if this works for you, you can set it up as &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles"&gt;automated field extraction in Splunk UI&lt;/A&gt;.&lt;BR /&gt;
Be aware that for the automated field extraction the regex must be used in a different way, so something like this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;myOra&amp;gt;ORA-.+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 12:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111042#M29067</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-19T12:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111043#M29068</link>
      <description>&lt;P&gt;Thanks for reply This is working perfectly fine when we do using search but when trying to do using field extractor with this regex \s(?&lt;MYORA&gt;ORA-.+) its say invalid regex: syntax error&lt;/MYORA&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 12:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111043#M29068</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-06-19T12:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111044#M29069</link>
      <description>&lt;P&gt;see my update and feel free to accept the answer now &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 12:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111044#M29069</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-19T12:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111045#M29070</link>
      <description>&lt;P&gt;Hello Mus&lt;/P&gt;

&lt;P&gt;Sorry I am not getting (?i)(?P&lt;FIELDNAME&gt;\w+-\d+:\s+\w+\s+\w+\s+\w+) this gives me &lt;BR /&gt;
ORA-1034: ORACLE not available&lt;BR /&gt;
ORA-28000: the account is&lt;BR /&gt;
this result which is giving wrong result and (?&lt;MYORA&gt;ORA-.+) its say invalid regex: syntax error Please guide me once again&lt;/MYORA&gt;&lt;/FIELDNAME&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 12:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111045#M29070</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-06-19T12:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111046#M29071</link>
      <description>&lt;P&gt;I don't have a Splunk UI handy, but in the field extraction UI you can edit the regex. simply paste &lt;CODE&gt;ORA-.+&lt;/CODE&gt; in there and you should be fine.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 13:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111046#M29071</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-19T13:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111047#M29072</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;(?P&amp;lt;FIELDNAME&amp;gt;ORA-.+)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 13:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field/m-p/111047#M29072</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-19T13:22:44Z</dc:date>
    </item>
  </channel>
</rss>

