<?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: Day to day % Difference in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349064#M174865</link>
    <description>&lt;P&gt;This works, thank you so much!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 07:56:31 GMT</pubDate>
    <dc:creator>allansneddon</dc:creator>
    <dc:date>2017-04-26T07:56:31Z</dc:date>
    <item>
      <title>Day to day % Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349062#M174863</link>
      <description>&lt;P&gt;Hi guys, &lt;/P&gt;

&lt;P&gt;I create daily reports with various data on that we collect, and i am now looking to add a few extra bits of information that will be useful to the team.&lt;BR /&gt;
I am looking to create a chart that show the % difference from the today's data against the data received the day before. For example if we received 100 events yesterday and 200 today it shows an increase of 100%. Any help would be very much appreciated. &lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Allan&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 08:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349062#M174863</guid>
      <dc:creator>allansneddon</dc:creator>
      <dc:date>2017-04-25T08:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Day to day % Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349063#M174864</link>
      <description>&lt;P&gt;Ideally, &lt;STRONG&gt;streamstats&lt;/STRONG&gt; should be used for this (depending upon what is your current search). However, &lt;STRONG&gt;delta&lt;/STRONG&gt; can be used if you query is a simple scenario like a timechart being plotted for daily span. The delta command will give you the difference of count in the current row with previous row. This way you will have a way to identify what was the previous day's total. See the following run anywhere search based on Splunk's _internal index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="splunkd" log_level="WARN"
| timechart span=1d count
| delta count as Delta
| fillnull value=0 Delta
| eval Total=count-Delta
| eval percIncrDecr=(Delta/Total)*100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349063#M174864</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-25T13:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Day to day % Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349064#M174865</link>
      <description>&lt;P&gt;This works, thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 07:56:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349064#M174865</guid>
      <dc:creator>allansneddon</dc:creator>
      <dc:date>2017-04-26T07:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Day to day % Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349065#M174866</link>
      <description>&lt;P&gt;Great Cheers!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Day-to-day-Difference/m-p/349065#M174866</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-27T14:14:51Z</dc:date>
    </item>
  </channel>
</rss>

