<?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: Compare total by today with yesterday and against the 7dayavg for the last week in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343496#M101749</link>
    <description>&lt;P&gt;It's giving you that because you have fed it data at the hourly basis, so it is assuming you care about hours.  If you are trying to calculate on a daily basis, rather than hourly, change this line - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | timechart count span=1h 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | timechart count span=1d 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Mar 2017 15:59:18 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-03-09T15:59:18Z</dc:date>
    <item>
      <title>Compare total by today with yesterday and against the 7dayavg for the last week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343495#M101748</link>
      <description>&lt;P&gt;I have the following query where I am trying to utilize timewrap to display the total number of credit cards used as a payment method today, yesterday, and compare it to the 7 day average. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search...
| payment_method=credit_card 
    | timechart count span=1h 
    | timewrap d series=short
    | addtotals s* 
    | eval 7dayavg=Total/7.0 
    | table _time, _span, s0, s1, 7dayavg 
    | rename s0 as now, s1 as yesterday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is currently that the legend shows 4 data series labeled 6:00 PM - 12:00 AM, 12:00 AM - 6:00 AM, 6:00 AM - 12:00 PM, 12:00 PM - 6:00 PM when I would like for it to be today, yesterday, and 7dayavg. The x-axis barely starts from 6:00 pm however I would like it to start from the beginning of the day today (midnight) compared to the beginning of the day yesterday (midnight), with the 7 day average at midnight. &lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 01:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343495#M101748</guid>
      <dc:creator>demkic</dc:creator>
      <dc:date>2017-03-09T01:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare total by today with yesterday and against the 7dayavg for the last week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343496#M101749</link>
      <description>&lt;P&gt;It's giving you that because you have fed it data at the hourly basis, so it is assuming you care about hours.  If you are trying to calculate on a daily basis, rather than hourly, change this line - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | timechart count span=1h 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | timechart count span=1d 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Mar 2017 15:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343496#M101749</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-09T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare total by today with yesterday and against the 7dayavg for the last week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343497#M101750</link>
      <description>&lt;P&gt;Thank you for your response. I realize I wasn't very clear in my question. To clarify, I am using the custom timewrap extension and would like a graph to display on the x-axis the &lt;STRONG&gt;hours&lt;/STRONG&gt; against today, yesterday, and the 7-day average. &lt;/P&gt;

&lt;P&gt;Essentially, I would see three lines going across with a data point at each hour (01, 02, 03, 04...- .. 22, 23). &lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 21:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343497#M101750</guid>
      <dc:creator>demkic</dc:creator>
      <dc:date>2017-03-09T21:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare total by today with yesterday and against the 7dayavg for the last week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343498#M101751</link>
      <description>&lt;P&gt;In this above query i want to include prior week like last 14 days and instead of 7dayavg i want eventcount &lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 08:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-total-by-today-with-yesterday-and-against-the-7dayavg/m-p/343498#M101751</guid>
      <dc:creator>john_q</dc:creator>
      <dc:date>2018-08-16T08:19:55Z</dc:date>
    </item>
  </channel>
</rss>

