<?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 Why is my single visualization w/trendline total display off by 1? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-single-visualization-w-trendline-total-display-off-by/m-p/420346#M120832</link>
    <description>&lt;P&gt;i have the following query and the events/results show "5" but the Single w/Trendline Visualization shows "4".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=logs source="*tst*" | search ("Attempt" AND "status=SUCCESS") |
timechart count as Total
&lt;/CODE&gt;&lt;/PRE&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/6430iC48E4070A71A8A2D/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, 22 Jan 2019 03:08:57 GMT</pubDate>
    <dc:creator>jaj</dc:creator>
    <dc:date>2019-01-22T03:08:57Z</dc:date>
    <item>
      <title>Why is my single visualization w/trendline total display off by 1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-single-visualization-w-trendline-total-display-off-by/m-p/420346#M120832</link>
      <description>&lt;P&gt;i have the following query and the events/results show "5" but the Single w/Trendline Visualization shows "4".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=logs source="*tst*" | search ("Attempt" AND "status=SUCCESS") |
timechart count as Total
&lt;/CODE&gt;&lt;/PRE&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/6430iC48E4070A71A8A2D/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, 22 Jan 2019 03:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-single-visualization-w-trendline-total-display-off-by/m-p/420346#M120832</guid>
      <dc:creator>jaj</dc:creator>
      <dc:date>2019-01-22T03:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my single visualization w/trendline total display off by 1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-single-visualization-w-trendline-total-display-off-by/m-p/420347#M120833</link>
      <description>&lt;P&gt;@jaj you should try to understand how single value trendline works first.&lt;/P&gt;

&lt;P&gt;By default the trendline result is the lastest value and the trend value is the difference of latest compared to the penultimate number i.e. comparison of last value with second last.&lt;/P&gt;

&lt;P&gt;As per your example single value result is  4 (on 01/21) and trend value is 4-0 (0 on 1/20). The same is also highlighted in trendline as last two data point being of bold black color.&lt;/P&gt;

&lt;P&gt;PS: You can change the default &lt;CODE&gt;Compare to&lt;/CODE&gt; option using UI &amp;gt; Edit &amp;gt; Format Visualization or Simple XML.&lt;/P&gt;

&lt;P&gt;However in case you need to compare/built trendline with non zero values you have two options&lt;/P&gt;

&lt;P&gt;1) use &lt;CODE&gt;timechart&lt;/CODE&gt; with &lt;CODE&gt;cont=f&lt;/CODE&gt; which shows only non zero values in the timechart and also breaks the continuity of the chart.&lt;/P&gt;

&lt;P&gt;2) use command &lt;CODE&gt;| filldown&lt;/CODE&gt; which fills null values as previous not null value. Since count fills each time bucket with 0 you may have to tweak the query before using fillnull.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 03:42:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-single-visualization-w-trendline-total-display-off-by/m-p/420347#M120833</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-22T03:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my single visualization w/trendline total display off by 1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-single-visualization-w-trendline-total-display-off-by/m-p/420348#M120834</link>
      <description>&lt;P&gt;@niketnilay thanks for the response and explanation.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 21:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-single-visualization-w-trendline-total-display-off-by/m-p/420348#M120834</guid>
      <dc:creator>jaj</dc:creator>
      <dc:date>2019-01-22T21:19:00Z</dc:date>
    </item>
  </channel>
</rss>

