<?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: How to search a list of URLs and add the response times for URLs with similar patterns? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-URLs-and-add-the-response-times-for-URLs/m-p/182947#M52678</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | rex field=url "^(?&amp;lt;pattern&amp;gt;/[^/]+/[^/]+/[^/]+/?)" | stats sum(response_time) by pattern
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Jun 2015 17:12:12 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2015-06-29T17:12:12Z</dc:date>
    <item>
      <title>How to search a list of URLs and add the response times for URLs with similar patterns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-URLs-and-add-the-response-times-for-URLs/m-p/182946#M52677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a Splunk search which gives list of URLs and their corresponding response times like: &lt;/P&gt;

&lt;P&gt;/webapp/store/p/product1, 1&lt;BR /&gt;
/webapp/store/p/product2, 2&lt;BR /&gt;
/webapp/store/p/product3, 1&lt;BR /&gt;
/webapp/store/l/list1, 1.12&lt;BR /&gt;
/webapp/store/l/list2, 0.12&lt;BR /&gt;
/webapp/store/home, 1.12&lt;BR /&gt;
/webapp/store/page4, 1.12&lt;BR /&gt;
/webapp/store/page5, 1.12&lt;/P&gt;

&lt;P&gt;Now, I want to do a pattern search on these urls and want to add the response times of similar patterned urls. &lt;/P&gt;

&lt;P&gt;Desired output:&lt;/P&gt;

&lt;P&gt;/webapp/store/p/, 4&lt;BR /&gt;
/webapp/store/l/, 1.24&lt;BR /&gt;
/webapp/store/home, 1.12&lt;BR /&gt;
/webapp/store/page4, 1.12&lt;BR /&gt;
/webapp/store/page5, 1.12&lt;/P&gt;

&lt;P&gt;Any help would be appreciated. &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 16:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-URLs-and-add-the-response-times-for-URLs/m-p/182946#M52677</guid>
      <dc:creator>Karan_Jindal</dc:creator>
      <dc:date>2015-06-29T16:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a list of URLs and add the response times for URLs with similar patterns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-URLs-and-add-the-response-times-for-URLs/m-p/182947#M52678</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | rex field=url "^(?&amp;lt;pattern&amp;gt;/[^/]+/[^/]+/[^/]+/?)" | stats sum(response_time) by pattern
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jun 2015 17:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-URLs-and-add-the-response-times-for-URLs/m-p/182947#M52678</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-29T17:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a list of URLs and add the response times for URLs with similar patterns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-URLs-and-add-the-response-times-for-URLs/m-p/182948#M52679</link>
      <description>&lt;P&gt;This should get you started:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=URL "(&amp;lt;?PbaseURL&amp;gt;\/\w+\/\w+\/\w+)" | stats sum(time) as totalTime by baseURL | table baseURL totalTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jun 2015 17:17:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-URLs-and-add-the-response-times-for-URLs/m-p/182948#M52679</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-06-29T17:17:31Z</dc:date>
    </item>
  </channel>
</rss>

