<?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: mulitple regex extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282313#M85235</link>
    <description>&lt;P&gt;glad that helped.. accept the answer. &lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 17:59:19 GMT</pubDate>
    <dc:creator>vasanthmss</dc:creator>
    <dc:date>2017-02-08T17:59:19Z</dc:date>
    <item>
      <title>mulitple regex extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282309#M85231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to extract two fields from the below data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02-08 07:33:41.211 E/Rules_LightBaseAction( 2660): com.icontrol.device.DeviceException: Failed to turn light off.


02-08 07:30:19.611 E/Rules_LightBaseAction( 2660): Caused by: com.icontrol.zigbee.service.ZigbeeServiceException: executeCommand returned failure.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;rulename=LightBaseAction and result=Failed to turn light off   OR executeCommand returned failure&lt;/P&gt;

&lt;P&gt;my attempt at the regex works for the rulename but not so much for the result....  What am I missing on the below regex?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;E\/Rules_(?&amp;lt;rulename&amp;gt;\w+)(DeviceException|ZigbeeServiceException):\s+(?&amp;lt;result&amp;gt;$)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2017 17:17:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282309#M85231</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-02-08T17:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: mulitple regex extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282310#M85232</link>
      <description>&lt;P&gt;try something like this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | rex "E/Rules_(?&amp;lt;rulename&amp;gt;\w+).*(DeviceException|ZigbeeServiceException):\s+(?&amp;lt;result&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this will helps you. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 17:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282310#M85232</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2017-02-08T17:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: mulitple regex extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282311#M85233</link>
      <description>&lt;P&gt;attempt #2 at regex but still no joy . &lt;CODE&gt;E\/Rules_(?&amp;lt;rulename&amp;gt;\w+)Exception:\s(?&amp;lt;result&amp;gt;.+[^.])&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 17:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282311#M85233</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-02-08T17:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: mulitple regex extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282312#M85234</link>
      <description>&lt;P&gt;Hi Vasanthmss!&lt;/P&gt;

&lt;P&gt;Thank you!  that helped!   The final regex looks like this .  &lt;CODE&gt;E\/Rules_(?&amp;lt;rulename&amp;gt;\w+).*Exception:\s(?&amp;lt;result&amp;gt;.+[^.])&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 17:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282312#M85234</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-02-08T17:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: mulitple regex extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282313#M85235</link>
      <description>&lt;P&gt;glad that helped.. accept the answer. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 17:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mulitple-regex-extraction/m-p/282313#M85235</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2017-02-08T17:59:19Z</dc:date>
    </item>
  </channel>
</rss>

