<?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 create a report for product in time buckets for 0-14 , 14-30 days? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419223#M6935</link>
    <description>&lt;P&gt;Sorry , did not use First seen field in my query . Will try and post it . &lt;/P&gt;</description>
    <pubDate>Wed, 04 Jul 2018 17:58:40 GMT</pubDate>
    <dc:creator>sravanthikand</dc:creator>
    <dc:date>2018-07-04T17:58:40Z</dc:date>
    <item>
      <title>How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419215#M6927</link>
      <description>&lt;P&gt;I have splunk data similar to below where the product was purchased on different dates&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5305i70EC54DB6BED3041/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 15:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419215#M6927</guid>
      <dc:creator>sravanthikand</dc:creator>
      <dc:date>2018-07-03T15:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419216#M6928</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving fields product and purchase_date
| eval purchased=strptime(purchase_date,"%b-%d-%Y")
| eventstats min(purchased) as min by product
| eval Period=case(purchased&amp;gt;=relative_time(min,"-14@d"),"0-14 days",
purchased&amp;gt;=relative_time(min,"-30@d"),"14-30 days",
purchased&amp;gt;=relative_time(min,"-60@d"),"30-60 days",
true(),"60+ days")
| eval product=product."##".strftime(min,"%b-%d-%Y")
| chart count by product Period
| rex field=product "(?&amp;lt;product&amp;gt;.+)##(?&amp;lt;FirstSeen&amp;gt;.+)"
| table prodct FirstSeen *
| rename product as "Product Name" FirstSeen as "First-Showed_up"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jul 2018 16:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419216#M6928</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-03T16:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419217#M6929</link>
      <description>&lt;P&gt;The 0-14 days ,&lt;BR /&gt;
14-30 days ,&lt;BR /&gt;
30-60 days is the bucket from the start time .  It is not the calculation of current time  - 14 days . &lt;BR /&gt;
But 14 days is from minimum time to 14 days .&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 17:43:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419217#M6929</guid>
      <dc:creator>sravanthikand</dc:creator>
      <dc:date>2018-07-03T17:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419218#M6930</link>
      <description>&lt;P&gt;The purchase date "min" varies by the product . The min is different for each product . &lt;/P&gt;

&lt;P&gt;stats min(purchase_date) by product gives me a table .  I have a table to work the values to iterate against . Is there a loop variable to host two values of the table in data structure to compare against the events in splunk ?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 18:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419218#M6930</guid>
      <dc:creator>sravanthikand</dc:creator>
      <dc:date>2018-07-03T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419219#M6931</link>
      <description>&lt;P&gt;I did miss by product in my eventstats, added that now. I also updated hte query to compute the period/buckets based on first seen time i.e. min.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 18:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419219#M6931</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-03T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419220#M6932</link>
      <description>&lt;P&gt;Thanks &lt;/P&gt;

&lt;P&gt;The line 11   table prodct FirstSeen *  ,  , FirstSeen is the field ? &lt;/P&gt;

&lt;P&gt;I am only getting 60 day bucket  in my results . &lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 20:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419220#M6932</guid>
      <dc:creator>sravanthikand</dc:creator>
      <dc:date>2018-07-03T20:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419221#M6933</link>
      <description>&lt;P&gt;Yes, FirstSeen is the &lt;CODE&gt;min&lt;/CODE&gt; field value that we appended to product in line 8 and extracted back in line 10.&lt;/P&gt;

&lt;P&gt;Are you getting First-Showed_up values?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 20:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419221#M6933</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-03T20:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419222#M6934</link>
      <description>&lt;P&gt;I have  date format  as below &lt;/P&gt;

&lt;P&gt;Wed Jun 13 02:00:43 2018   . Do I need to extract the rex to get the time buckets ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 17:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419222#M6934</guid>
      <dc:creator>sravanthikand</dc:creator>
      <dc:date>2018-07-04T17:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report for product in time buckets for 0-14 , 14-30 days?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419223#M6935</link>
      <description>&lt;P&gt;Sorry , did not use First seen field in my query . Will try and post it . &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 17:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-create-a-report-for-product-in-time-buckets-for-0-14-14/m-p/419223#M6935</guid>
      <dc:creator>sravanthikand</dc:creator>
      <dc:date>2018-07-04T17:58:40Z</dc:date>
    </item>
  </channel>
</rss>

