<?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 How do I show fastest growing products? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-fastest-growing-products/m-p/247189#M73737</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a shop that sells different kind of products. Usually I have a search to show me the top 10 products sold in the last 24 hours, but some of the products in that list are all-time best-sellers and not so interesting to see (as I already know about those).&lt;/P&gt;

&lt;P&gt;How do I get a list of top sold products that, let's say, are trending today (24 hours), but are not global trenders?&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;Today the top 10 sold products are:&lt;BR /&gt;
1-milk*&lt;BR /&gt;
2-beer*&lt;BR /&gt;
3-tuna*&lt;BR /&gt;
4-beef&lt;BR /&gt;
5-cheese*&lt;BR /&gt;
6-coffee*&lt;BR /&gt;
7-bread&lt;BR /&gt;
8-chicken&lt;BR /&gt;
9-eggs&lt;BR /&gt;
10-cereals*&lt;/P&gt;

&lt;P&gt;Of those, the starred ones (*) 1, 2, 3, 5, 6, 10 are all-time sellers, so I would be more interested in showing only the not starred ones, which are trending today only:&lt;BR /&gt;
-beef&lt;BR /&gt;
-bread&lt;BR /&gt;
-chicken&lt;BR /&gt;
-eggs&lt;/P&gt;

&lt;P&gt;My idea is to get the top 10 for the last 7 days, and then diff it with the top 10 of last 24 hours, but not sure if this is a good approach for what I want to accomplish, or what time-range to pick to find the all-time sellers.&lt;/P&gt;

&lt;P&gt;The general idea is to show only the newcomers to this list of  top 10 sold products. Or in other words, the products that are growing faster over a period of time.&lt;/P&gt;

&lt;P&gt;Any suggestion?&lt;/P&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2015 13:59:07 GMT</pubDate>
    <dc:creator>nimmos</dc:creator>
    <dc:date>2015-09-30T13:59:07Z</dc:date>
    <item>
      <title>How do I show fastest growing products?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-fastest-growing-products/m-p/247189#M73737</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a shop that sells different kind of products. Usually I have a search to show me the top 10 products sold in the last 24 hours, but some of the products in that list are all-time best-sellers and not so interesting to see (as I already know about those).&lt;/P&gt;

&lt;P&gt;How do I get a list of top sold products that, let's say, are trending today (24 hours), but are not global trenders?&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;Today the top 10 sold products are:&lt;BR /&gt;
1-milk*&lt;BR /&gt;
2-beer*&lt;BR /&gt;
3-tuna*&lt;BR /&gt;
4-beef&lt;BR /&gt;
5-cheese*&lt;BR /&gt;
6-coffee*&lt;BR /&gt;
7-bread&lt;BR /&gt;
8-chicken&lt;BR /&gt;
9-eggs&lt;BR /&gt;
10-cereals*&lt;/P&gt;

&lt;P&gt;Of those, the starred ones (*) 1, 2, 3, 5, 6, 10 are all-time sellers, so I would be more interested in showing only the not starred ones, which are trending today only:&lt;BR /&gt;
-beef&lt;BR /&gt;
-bread&lt;BR /&gt;
-chicken&lt;BR /&gt;
-eggs&lt;/P&gt;

&lt;P&gt;My idea is to get the top 10 for the last 7 days, and then diff it with the top 10 of last 24 hours, but not sure if this is a good approach for what I want to accomplish, or what time-range to pick to find the all-time sellers.&lt;/P&gt;

&lt;P&gt;The general idea is to show only the newcomers to this list of  top 10 sold products. Or in other words, the products that are growing faster over a period of time.&lt;/P&gt;

&lt;P&gt;Any suggestion?&lt;/P&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 13:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-fastest-growing-products/m-p/247189#M73737</guid>
      <dc:creator>nimmos</dc:creator>
      <dc:date>2015-09-30T13:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show fastest growing products?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-fastest-growing-products/m-p/247190#M73738</link>
      <description>&lt;P&gt;Can you provide a log sample? So a query could be devise. &lt;BR /&gt;
Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 14:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-fastest-growing-products/m-p/247190#M73738</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2015-09-30T14:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show fastest growing products?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-fastest-growing-products/m-p/247191#M73739</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search earliest=-14d@d latest=@d [search your  base search earliest=@d latest=now | top 10 product showperc=f | table product | bucket span=1d _time | stats count by product _time | stats avg(count)  as "Last2Weeks" by product | append [search your  base search earliest=@d latest=now | top 10 product showperc=f | rename count as "Today"] | stats values(*) as * by product | where Today&amp;gt;1.25*Last2Week
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically, get the top 10 products today, find the avg daily count for them in last 2 weeks, and compare them with today's count. My example threshold is 1.25 times (configured yours). The all time best sellers will not show much deviation from the average, so using that assumption for basis of this.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 15:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-fastest-growing-products/m-p/247191#M73739</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-30T15:21:52Z</dc:date>
    </item>
  </channel>
</rss>

