<?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: regex statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-statement/m-p/248416#M74136</link>
    <description>&lt;P&gt;Try this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"response\stime\:\s+(?&amp;lt;response_time&amp;gt;\d+)\s"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Aug 2016 17:04:04 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-08-26T17:04:04Z</dc:date>
    <item>
      <title>regex statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-statement/m-p/248415#M74135</link>
      <description>&lt;P&gt;I am trying to extract the response time from this statement (Just the number, not the words response time or the ms behind it)&lt;BR /&gt;
Here is a regex statement I wrote ((response time: )(\w+)) this is splitting the number into the 3rd group but I am unsure as to how to remove the other two groups from the results as I need them to help with the matching aspect&lt;/P&gt;

&lt;P&gt;Here is the statement I am trying to extract from:&lt;BR /&gt;
&amp;lt;117&amp;gt;Aug 26 15:22:16 777-120 SLAVE[p-core_987734]: 2016-08-26 15:22:16,7t2 INFO  [q44760481-48788] 6699-4871-a646-1b15556d queriesAndResponseTimeLogger - Client request: /search?keyword=tools+accessories&amp;amp;sendRefinements=false&amp;amp;count=3, response time: &lt;STRONG&gt;70&lt;/STRONG&gt; ms, stage1Count=0, stage2Count=13, effectiveStage=STAGE2&lt;/P&gt;

&lt;P&gt;The bolded number is the one I want&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-statement/m-p/248415#M74135</guid>
      <dc:creator>JoshuaJohn</dc:creator>
      <dc:date>2016-08-26T16:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: regex statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-statement/m-p/248416#M74136</link>
      <description>&lt;P&gt;Try this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"response\stime\:\s+(?&amp;lt;response_time&amp;gt;\d+)\s"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2016 17:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-statement/m-p/248416#M74136</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-26T17:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: regex statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-statement/m-p/248417#M74137</link>
      <description>&lt;P&gt;Use a positive lookbehind:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;=response time: )(\w+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2016 18:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-statement/m-p/248417#M74137</guid>
      <dc:creator>cdoebert</dc:creator>
      <dc:date>2016-08-26T18:45:03Z</dc:date>
    </item>
  </channel>
</rss>

