<?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: Difference in result with timechart span=1d dc(ip) vs timechart span=1h dc(ip) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405853#M172860</link>
    <description>&lt;P&gt;I notice that both your queries above say "span=1h". Is the second one - the one with the lower result - supposed to be "span=1d"?&lt;/P&gt;

&lt;P&gt;If so, here's a possibility: &lt;/P&gt;

&lt;P&gt;For span=1h, it counts the distinct Session IDs in each hour and sums them up. &lt;/P&gt;

&lt;P&gt;For span=1d, it's counting all the distinct IDs in the day. &lt;/P&gt;

&lt;P&gt;Let's say you have Session ID 12345 that appears at 2 pm and at 7 pm. Perhaps with span=1h it gets counted twice - once for the 2pm span and once for the 7 pm span. But with span=1d it just gets counted once.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 22:19:57 GMT</pubDate>
    <dc:creator>Ranazar</dc:creator>
    <dc:date>2019-02-22T22:19:57Z</dc:date>
    <item>
      <title>Difference in result with timechart span=1d dc(ip) vs timechart span=1h dc(ip)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405848#M172855</link>
      <description>&lt;P&gt;I am using distinct count with time chart for the whole day (yesterday). The result is varying  if the span is changed to 1h and 1d.&lt;/P&gt;

&lt;P&gt;| timechart span=1h dc(SessionId) as "TotalCustomerSession"| addcoltotals labelfield=_time label=Total| sort -_time&lt;BR /&gt;
 gives me a result 10802&lt;/P&gt;

&lt;P&gt;| timechart span=1h dc(SessionId) as "TotalCustomerSession"| addcoltotals labelfield=_time label=Total| sort -_time&lt;BR /&gt;
gives me result 10399&lt;/P&gt;

&lt;P&gt;Confused!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:25:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405848#M172855</guid>
      <dc:creator>aa274t</dc:creator>
      <dc:date>2020-09-29T23:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in result with timechart span=1d dc(ip) vs timechart span=1h dc(ip)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405849#M172856</link>
      <description>&lt;P&gt;Are you seeing same number of events for yesterday in both the searches?&lt;/P&gt;

&lt;P&gt;when you specify span, splunk looks for related buckets to pull the events, so there will be a difference in count&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 17:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405849#M172856</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-22T17:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in result with timechart span=1d dc(ip) vs timechart span=1h dc(ip)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405850#M172857</link>
      <description>&lt;P&gt;If I use dedup and count by hour I see the result math with span=1d. But with DC it is not.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 17:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405850#M172857</guid>
      <dc:creator>aa274t</dc:creator>
      <dc:date>2019-02-22T17:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in result with timechart span=1d dc(ip) vs timechart span=1h dc(ip)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405851#M172858</link>
      <description>&lt;P&gt;What is your timerange set to? Are you saying that if you sum the hourly distinct counts and compare that summed value with the 1 day value, the unique count of IP's are different? Are you snapping time?&lt;/P&gt;

&lt;P&gt;You should add this to the top line of your search to check &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest-1d@d latest=@d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2019 18:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405851#M172858</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-02-22T18:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in result with timechart span=1d dc(ip) vs timechart span=1h dc(ip)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405852#M172859</link>
      <description>&lt;P&gt;I am saying that distinct_count with &lt;STRONG&gt;timechart span=1h&lt;/STRONG&gt; is giving more count when compared with &lt;STRONG&gt;timechart span=1d.&lt;/STRONG&gt;(correct value)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 21:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405852#M172859</guid>
      <dc:creator>aa274t</dc:creator>
      <dc:date>2019-02-22T21:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in result with timechart span=1d dc(ip) vs timechart span=1h dc(ip)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405853#M172860</link>
      <description>&lt;P&gt;I notice that both your queries above say "span=1h". Is the second one - the one with the lower result - supposed to be "span=1d"?&lt;/P&gt;

&lt;P&gt;If so, here's a possibility: &lt;/P&gt;

&lt;P&gt;For span=1h, it counts the distinct Session IDs in each hour and sums them up. &lt;/P&gt;

&lt;P&gt;For span=1d, it's counting all the distinct IDs in the day. &lt;/P&gt;

&lt;P&gt;Let's say you have Session ID 12345 that appears at 2 pm and at 7 pm. Perhaps with span=1h it gets counted twice - once for the 2pm span and once for the 7 pm span. But with span=1d it just gets counted once.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 22:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-in-result-with-timechart-span-1d-dc-ip-vs-timechart/m-p/405853#M172860</guid>
      <dc:creator>Ranazar</dc:creator>
      <dc:date>2019-02-22T22:19:57Z</dc:date>
    </item>
  </channel>
</rss>

