<?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 fields using regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273094#M176775</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;msg&amp;gt;ORA-00001:.*?_(?&amp;lt;field&amp;gt;[^\.]+)\..*violated)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Sep 2016 13:05:30 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2016-09-09T13:05:30Z</dc:date>
    <item>
      <title>Extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273092#M176773</link>
      <description>&lt;P&gt;I have the data like:&lt;/P&gt;

&lt;P&gt;2016-09-09 06:21:31,858 ... blah ... blah...&lt;BR /&gt;
... ORA-00001: unique constraint (AN_FIELD.CODE) violated...&lt;BR /&gt;
... ORA-06512: at "AN_FIELD.DATA_TRANSFER", line 5523...&lt;/P&gt;

&lt;P&gt;I would like to extract "ORA-00001: unique constraint (AN_FIELD.CODE) violated" and "FIELD" separately.&lt;/P&gt;

&lt;P&gt;How can I do this?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273092#M176773</guid>
      <dc:creator>siddharthmis</dc:creator>
      <dc:date>2020-09-29T10:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273093#M176774</link>
      <description>&lt;P&gt;See if this works&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;msg&amp;gt;ORA.*\(AN\_(?&amp;lt;field&amp;gt;\w+).*)" | table msg field
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2016 13:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273093#M176774</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-09T13:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273094#M176775</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;msg&amp;gt;ORA-00001:.*?_(?&amp;lt;field&amp;gt;[^\.]+)\..*violated)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2016 13:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273094#M176775</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-09-09T13:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273095#M176776</link>
      <description>&lt;P&gt;Both seems to work, Thanks for the super fast response.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 13:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-fields-using-regex/m-p/273095#M176776</guid>
      <dc:creator>siddharthmis</dc:creator>
      <dc:date>2016-09-09T13:40:44Z</dc:date>
    </item>
  </channel>
</rss>

