<?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 do I find the delta between sum of values for two days with below query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270332#M175777</link>
    <description>&lt;P&gt;the date_* fields are not considered authoritative from an accuracy standpoint, and your query will only work as long as you have queries less than one week (non-overlapping days of the week).&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 16:04:33 GMT</pubDate>
    <dc:creator>rjthibod</dc:creator>
    <dc:date>2017-01-31T16:04:33Z</dc:date>
    <item>
      <title>How do I find the delta between sum of values for two days with below query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270329#M175774</link>
      <description>&lt;P&gt;index=_internal type=usage idx=wineventlog | bucket span=1d _time | stats sum(b) as sum by h,_time&lt;/P&gt;

&lt;P&gt;The above query gives the sum for "b" values over a period of one day. If I run the query for time period of two days I get two sums for "h". Difference between these two sums need to be found.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:40:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270329#M175774</guid>
      <dc:creator>rajapr15</dc:creator>
      <dc:date>2020-09-29T12:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the delta between sum of values for two days with below query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270330#M175775</link>
      <description>&lt;P&gt;Look at the last answer in this post&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/47037/delta-then-sum-then-graph-from-multiple-hosts.html"&gt;https://answers.splunk.com/answers/47037/delta-then-sum-then-graph-from-multiple-hosts.html&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal type=usage idx=wineventlog 
| bucket span=1d _time 
| stats sum(b) as b by h,_time
| streamstats current=t global=f window=2 latest(b) as curr earliest(b) as next by h
| eval delta=next-curr
| timechart span=1d sum(delta) as delta by h
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:41:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270330#M175775</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-31T13:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the delta between sum of values for two days with below query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270331#M175776</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;I found an alternative which worked for me- &lt;/P&gt;

&lt;P&gt;index=_internal type=usage idx=wineventlog | chart sum(b) by h date_wday | eval diff=sunday-tuesday | eval diff=abs(diff) | sort -diff&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270331#M175776</guid>
      <dc:creator>rajapr15</dc:creator>
      <dc:date>2020-09-29T12:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the delta between sum of values for two days with below query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270332#M175777</link>
      <description>&lt;P&gt;the date_* fields are not considered authoritative from an accuracy standpoint, and your query will only work as long as you have queries less than one week (non-overlapping days of the week).&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-delta-between-sum-of-values-for-two-days-with/m-p/270332#M175777</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-31T16:04:33Z</dc:date>
    </item>
  </channel>
</rss>

