<?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: Help with regular expression in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regular-expression/m-p/278103#M83940</link>
    <description>&lt;P&gt;Please try the following :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "cmdbRequest(?P&amp;lt;Request_ID&amp;gt;\d+)Transaction" |
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Oct 2015 08:35:22 GMT</pubDate>
    <dc:creator>abhijitmishra87</dc:creator>
    <dc:date>2015-10-21T08:35:22Z</dc:date>
    <item>
      <title>Help with regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regular-expression/m-p/278102#M83939</link>
      <description>&lt;P&gt;I wish to extract  any number between  &lt;STRONG&gt;"cmdbRequest"&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;"- Transaction"&lt;/STRONG&gt; . For Example  from below string &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;ERROR 21 CMDB  cmdbRequest  &lt;STRONG&gt;1089798797&lt;/STRONG&gt; - Transaction Null:  10/21/2015 07:25:34 - Exception:  ORA-12578: TNS:wallet open failed&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;i wish to extract &lt;STRONG&gt;1089798797&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;i have wrtten below regular expression to get the number, but its giving me a null value.&lt;/P&gt;

&lt;P&gt;| rex "CMDBRequest(?P&amp;lt;Request_ID&amp;gt;.*?)Transaction" |&lt;/P&gt;

&lt;P&gt;Can anyone please help ?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 06:12:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-regular-expression/m-p/278102#M83939</guid>
      <dc:creator>indianhans</dc:creator>
      <dc:date>2015-10-21T06:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regular-expression/m-p/278103#M83940</link>
      <description>&lt;P&gt;Please try the following :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "cmdbRequest(?P&amp;lt;Request_ID&amp;gt;\d+)Transaction" |
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 08:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-regular-expression/m-p/278103#M83940</guid>
      <dc:creator>abhijitmishra87</dc:creator>
      <dc:date>2015-10-21T08:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regular-expression/m-p/278104#M83941</link>
      <description>&lt;P&gt;won't you need to cater for the stuff either side (spaces/dashes?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "cmdbRequest\s(?&amp;lt;Request_ID&amp;gt;\d+)\s\-\sTransaction"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...or something like that, depending on how consistent you expect it to all be.  I've not tested it, but it might put you on the correct path&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 09:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-regular-expression/m-p/278104#M83941</guid>
      <dc:creator>bevant</dc:creator>
      <dc:date>2015-10-21T09:54:24Z</dc:date>
    </item>
  </channel>
</rss>

