<?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 show data in a range grouped by specified time period? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324544#M96821</link>
    <description>&lt;P&gt;not knowing if you want 5 or 15 days yet, i have written this:&lt;BR /&gt;
| eval earliest=relative_time(_time,"@mon-16d@d") |eval latest=relative_time(earliest,"+15d@d")|eval time=strftime(earliest,"%y-%m-%d")+" - "+strftime(latest,"%y-%m-%d")&lt;BR /&gt;
and you can use &lt;STRONG&gt;time&lt;/STRONG&gt; as the field to bucket by. you can adjust the values in the relative_time evals to meet your needs, if you really want only 5 days. these will bring you "17-08-16 - 17-08-31" for example. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:39:24 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2020-09-29T15:39:24Z</dc:date>
    <item>
      <title>How to show data in a range grouped by specified time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324542#M96819</link>
      <description>&lt;P&gt;i have below data. i want to represent in a range to group date for 5 days and i want date field to represent(16-08-16 - 16-08-30)  count. pls help&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    date        count
    16-08-26    14
    16-08-27    4
    16-08-28    14
    16-08-29    30
    16-08-30    34
    16-08-31    30
    16-09-01    6
    16-09-02    4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2017 12:03:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324542#M96819</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-09-06T12:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to show data in a range grouped by specified time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324543#M96820</link>
      <description>&lt;P&gt;do you mean 16-08-26 - 16-08-30 for a 5 day span or 16-08-16 - 16-08-30 for a 15 day span?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 12:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324543#M96820</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-09-06T12:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to show data in a range grouped by specified time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324544#M96821</link>
      <description>&lt;P&gt;not knowing if you want 5 or 15 days yet, i have written this:&lt;BR /&gt;
| eval earliest=relative_time(_time,"@mon-16d@d") |eval latest=relative_time(earliest,"+15d@d")|eval time=strftime(earliest,"%y-%m-%d")+" - "+strftime(latest,"%y-%m-%d")&lt;BR /&gt;
and you can use &lt;STRONG&gt;time&lt;/STRONG&gt; as the field to bucket by. you can adjust the values in the relative_time evals to meet your needs, if you really want only 5 days. these will bring you "17-08-16 - 17-08-31" for example. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324544#M96821</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2020-09-29T15:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to show data in a range grouped by specified time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324545#M96822</link>
      <description>&lt;P&gt;5 days span&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 12:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324545#M96822</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-09-06T12:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to show data in a range grouped by specified time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324546#M96823</link>
      <description>&lt;P&gt;Thanks. worked perfectly !&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 12:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324546#M96823</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-09-06T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to show data in a range grouped by specified time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324547#M96824</link>
      <description>&lt;P&gt;Awesome, i'm glad, just make sure to spot check that the counts all match! I'm sure you already did, but i just like to double check when doing aggregates!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 12:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-data-in-a-range-grouped-by-specified-time-period/m-p/324547#M96824</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-09-06T12:45:41Z</dc:date>
    </item>
  </channel>
</rss>

