<?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: Why does the timechart command give different values than stats command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344839#M102167</link>
    <description>&lt;P&gt;Th problem is that if you use a time period until "now" the two searches take a little different time period so you'll have different results.&lt;BR /&gt;
You can test this situation using a different time condition: instead now use: until last hour (@h), so you can verify that results of the last 24 hours are the same of the last column of you time chart.&lt;/P&gt;

&lt;P&gt;You could try use a post process search in you dashboartd so you'll have the same search in both the panels, putting the condition "last 24 hours" as a secondary search.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 15:10:35 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-04-24T15:10:35Z</dc:date>
    <item>
      <title>Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344835#M102163</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am getting difference in count while using stats in piechart and with same search with timechart in line graph.&lt;/P&gt;

&lt;P&gt;Can anyone help me with solution for this??&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Sundar&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344835#M102163</guid>
      <dc:creator>umsundar2015</dc:creator>
      <dc:date>2017-04-24T14:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344836#M102164</link>
      <description>&lt;P&gt;hi umsundar2015,&lt;BR /&gt;
did you used the same time period? try with a fixed period (e.g. yesterday) not "now" (e.g. last hour)  because results are changing.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344836#M102164</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-24T14:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344837#M102165</link>
      <description>&lt;P&gt;for pie chart i am using last 24 hours(total count  is 5386) and trending chart i am using last 7 days and values are&lt;/P&gt;

&lt;P&gt;_time   Not Reporting   Reporting&lt;BR /&gt;
2017-04-18  1819    1400&lt;BR /&gt;
2017-04-19  1819    1400&lt;BR /&gt;
2017-04-20  1819    1400&lt;BR /&gt;
2017-04-21  1819    1400&lt;BR /&gt;
2017-04-22  1829    1400&lt;BR /&gt;
2017-04-23  1829    1400&lt;BR /&gt;
2017-04-24  1829    1400&lt;/P&gt;

&lt;P&gt;can ypu suggest me a way to solve this issue ,&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344837#M102165</guid>
      <dc:creator>umsundar2015</dc:creator>
      <dc:date>2017-04-24T14:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344838#M102166</link>
      <description>&lt;P&gt;No i used different time period Like last 24hrs for piechart and last 7 days for trending chart .&lt;/P&gt;

&lt;P&gt;Please suggest me way to make it equal ..&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344838#M102166</guid>
      <dc:creator>umsundar2015</dc:creator>
      <dc:date>2017-04-24T14:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344839#M102167</link>
      <description>&lt;P&gt;Th problem is that if you use a time period until "now" the two searches take a little different time period so you'll have different results.&lt;BR /&gt;
You can test this situation using a different time condition: instead now use: until last hour (@h), so you can verify that results of the last 24 hours are the same of the last column of you time chart.&lt;/P&gt;

&lt;P&gt;You could try use a post process search in you dashboartd so you'll have the same search in both the panels, putting the condition "last 24 hours" as a secondary search.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344839#M102167</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-24T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344840#M102168</link>
      <description>&lt;P&gt;We need BOTH search strings and also the timepicker details.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:42:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344840#M102168</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-24T15:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344841#M102169</link>
      <description>&lt;P&gt;Those results are unlikely to be from the same search.&lt;/P&gt;

&lt;P&gt;Your pie chart has over 1.7 times as many results as your time chart, so the execution time difference of a few minutes is not the problem.    &lt;/P&gt;

&lt;P&gt;You have some additional criteria that is in place in one search that is not in the other, probably in terms of the aggregation.  Just to eliminate any possiblity of that, though, you can add this to the beginning of your time chart search...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-7d@d latest =@d  (your search here)
| bin _time span=1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...and add this to the beginning of your pie chart search...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-1d@d latest =@d  (your search here)
| bin _time span=1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;.. and the results will be forced to line up in the same 1-day bins.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 22:48:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344841#M102169</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-24T22:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344842#M102170</link>
      <description>&lt;P&gt;Thank you Daljeanis .&lt;/P&gt;

&lt;P&gt;It worked perfectly .&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 07:37:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344842#M102170</guid>
      <dc:creator>umsundar2015</dc:creator>
      <dc:date>2017-04-25T07:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the timechart command give different values than stats command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344843#M102171</link>
      <description>&lt;P&gt;@umsundar2015 - Great!  If that solved your issue, then please mark this answer as "accepted".&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 15:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-timechart-command-give-different-values-than-stats/m-p/344843#M102171</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-25T15:04:09Z</dc:date>
    </item>
  </channel>
</rss>

