<?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 timechart not showing correct values in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559259#M9317</link>
    <description>&lt;P&gt;Hi, I am new to splunk and am trying to build one timechart.&lt;/P&gt;&lt;P&gt;we have the following timechart search query which is not giving the correct values in statistics but when we browse the events from the statistics the required data seems to be there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not able to figure out how timechart exactly works here. Query as below , request help / explanation for the behavior. Filtered for a particular bizname, I select the date range from say 00:45 to 1:30 for a particular day.&lt;/P&gt;&lt;P&gt;I get the wrong "Percentage" value [say 60%] for the first block [00:45 to 1:00], but when go to the events and check it comes out to be 93%. What am I doing wrong here.&lt;/P&gt;&lt;P&gt;index=index1 sourcetype=*XYZ*&amp;nbsp;&lt;BR /&gt;| dedup col1, col2,col3&amp;nbsp;| search bizname="ABC"&lt;BR /&gt;| where completed in("Y","N")&lt;BR /&gt;| eval status=if(completed ="Y",100,0)&lt;BR /&gt;| timechart span=15m mean(status) as Percentage by bizname useother=false limit=100&lt;BR /&gt;| fillnull value=100&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2021 12:40:57 GMT</pubDate>
    <dc:creator>nikhilpai</dc:creator>
    <dc:date>2021-07-13T12:40:57Z</dc:date>
    <item>
      <title>timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559259#M9317</link>
      <description>&lt;P&gt;Hi, I am new to splunk and am trying to build one timechart.&lt;/P&gt;&lt;P&gt;we have the following timechart search query which is not giving the correct values in statistics but when we browse the events from the statistics the required data seems to be there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not able to figure out how timechart exactly works here. Query as below , request help / explanation for the behavior. Filtered for a particular bizname, I select the date range from say 00:45 to 1:30 for a particular day.&lt;/P&gt;&lt;P&gt;I get the wrong "Percentage" value [say 60%] for the first block [00:45 to 1:00], but when go to the events and check it comes out to be 93%. What am I doing wrong here.&lt;/P&gt;&lt;P&gt;index=index1 sourcetype=*XYZ*&amp;nbsp;&lt;BR /&gt;| dedup col1, col2,col3&amp;nbsp;| search bizname="ABC"&lt;BR /&gt;| where completed in("Y","N")&lt;BR /&gt;| eval status=if(completed ="Y",100,0)&lt;BR /&gt;| timechart span=15m mean(status) as Percentage by bizname useother=false limit=100&lt;BR /&gt;| fillnull value=100&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 12:40:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559259#M9317</guid>
      <dc:creator>nikhilpai</dc:creator>
      <dc:date>2021-07-13T12:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559267#M9318</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;mean()&lt;/FONT&gt; function does not calculate a percentage.&amp;nbsp; It's just an average of the values it's seen.&amp;nbsp; Percentages have to be calculated manually using the &lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt; command.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 13:35:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559267#M9318</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-13T13:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559269#M9320</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;In this case we are using 100 for success &amp;amp; 0 for failure , no other values That would kind of work like a % in this case, I might be wrong.&lt;/P&gt;&lt;P&gt;Would you please advice how do I use calculation of % via eval in the query I am using. I have tried with count but it gives same kind of values as with mean function.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 13:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559269#M9320</guid>
      <dc:creator>nikhilpai</dc:creator>
      <dc:date>2021-07-13T13:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559283#M9323</link>
      <description>&lt;P&gt;Yes, I suppose an average of 0's and 100's is the same as a percentage.&lt;/P&gt;&lt;P&gt;What data are you seeing where you are calculating the 60% figure?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 15:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559283#M9323</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-13T15:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559349#M9328</link>
      <description>&lt;P&gt;For e.g. in the case mentioned if I go down to the events it shows me 93% "Y" &amp;amp; 7% "N" with about 104 total events for the mentioned time frame [00:45 - 01:00].&lt;/P&gt;&lt;P&gt;But on the statistics page we are seeing 60% "Y" and if I put a count in the timechart as below it shows a count of 14. Again if I go in the events I see 104 events. So, very much confused on how the timechart is interpreting the data.&lt;/P&gt;&lt;P&gt;timechart span=15m count(completed) as tot_cnt&amp;nbsp; by bizname useother=false limit=100&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 04:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559349#M9328</guid>
      <dc:creator>nikhilpai</dc:creator>
      <dc:date>2021-07-14T04:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559412#M9330</link>
      <description>&lt;P&gt;I am confused as well.&amp;nbsp; Can you share screen shots showing where you see the 60% and 93%.&amp;nbsp; I suspect you may be comparing an overall figure with one for a 15-minute interval.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 13:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559412#M9330</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-14T13:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559431#M9331</link>
      <description>&lt;P&gt;Thank you for your patience .This is the first screen. I have selected a time period from 00:45 to 1:30 span=15m as given in the query. I am taking example of the first entry on 00:45. The count is shown as 14 &amp;amp; mean of around 57%.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1-statistics" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15086iC022702F0865EB74/image-size/large?v=v2&amp;amp;px=999" role="button" title="statistics.JPG" alt="1-statistics" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;1-statistics&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for the first one 00:45 if I go to the events, I see 104 events and the status count as below. [which is not same as count of 14 ]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2-status_count" style="width: 413px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15087i861E9C63C23A282F/image-size/large?v=v2&amp;amp;px=999" role="button" title="status_count.JPG" alt="2-status_count" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2-status_count&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From&amp;nbsp; the statistics page if I narrow down to the 00:45 window I get expected values. So not sure what's happening here. Appreciate any insights on this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3-narrow_dwn" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15088i41BE7E37DE82A084/image-size/large?v=v2&amp;amp;px=999" role="button" title="narrow_dwn.JPG" alt="3-narrow_dwn" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;3-narrow_dwn&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559431#M9331</guid>
      <dc:creator>nikhilpai</dc:creator>
      <dc:date>2021-07-14T14:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559449#M9332</link>
      <description>&lt;P&gt;Thanks for the pix.&amp;nbsp; I'm afraid I still can't explain the difference.&amp;nbsp; Perhaps someone else will have a suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 15:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559449#M9332</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-14T15:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559523#M9338</link>
      <description>&lt;P&gt;Thank You for your time hope someone else can help.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 05:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559523#M9338</guid>
      <dc:creator>nikhilpai</dc:creator>
      <dc:date>2021-07-15T05:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not showing correct values</title>
      <link>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559977#M9339</link>
      <description>&lt;P class="lia-align-left"&gt;We figured this out. We are using dedup as we have some values which het updated in the source at different intervals.&lt;/P&gt;&lt;P class="lia-align-left"&gt;Hence when we were selecting the window 00:45 - 1:30 the dedup would be done across this time period and hence the % would go less in the first 15 min slot as they had corresponding&amp;nbsp; duplicate values in the third 15 min slot.&lt;/P&gt;&lt;P class="lia-align-left"&gt;but when we would filter based only on the first 15 min slot it would show a higher % as there were no corresponding duplicates in this window.&lt;/P&gt;&lt;P class="lia-align-left"&gt;So not a issue it only how the data is collected. Thanks .&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/timechart-not-showing-correct-values/m-p/559977#M9339</guid>
      <dc:creator>nikhilpai</dc:creator>
      <dc:date>2021-07-19T06:23:30Z</dc:date>
    </item>
  </channel>
</rss>

