<?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: Search returns incorrect dc count in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625068#M51244</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252160"&gt;@Dzmitry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;which time period did you used?&lt;/P&gt;&lt;P&gt;don't use a rtime period containing latest=now, but a closed time period: e.g. yesterday, earliest=-h@h latest=@h.&lt;/P&gt;&lt;P&gt;To be sure that the number of events is fixed.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 10:57:20 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-12-22T10:57:20Z</dc:date>
    <item>
      <title>Why does search return incorrect dc count?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625067#M51243</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I noticed that for some hosts search returns incorrect dc count:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;1) the query to dc count ids when status is failed&lt;BR /&gt;index=".." exec_mode="..." host_name="test_host"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;status="failed"&amp;nbsp;&lt;/STRONG&gt;| stats&amp;nbsp; dc(id) AS failed BY host_name | table host_name failed &lt;U&gt;(returns&amp;nbsp;&lt;STRONG&gt;1)&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp; the query to dc count ids when status is skipped or passed&lt;/P&gt;
&lt;P&gt;index="..." exec_mode="..." host_name="test_host"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;(status="skipped" OR status="passed")&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| stats&amp;nbsp; dc(id) AS pass_skip BY host_name | table host_name pass_skip &lt;U&gt;(returns&amp;nbsp;&lt;STRONG&gt;234&lt;/STRONG&gt;)&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3) the query to dc count every id&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;index="..." exec_mode="..." host_name="test_host" | stats dc(id) AS executed BY host_name | table host_name executed&amp;nbsp;&lt;U&gt;(returns&amp;nbsp;&lt;STRONG&gt;234&lt;/STRONG&gt;)&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;but I expect that query #3 returns sum queries 1 (failed) and 2 (skipped and passed) : &lt;STRONG&gt;1 + 234 = 235&lt;/STRONG&gt;&lt;BR /&gt;the I try to play with statuses in the query to get the total ids dc count&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;4) &lt;SPAN&gt;index="..." exec_mode="..." host_name="test_host"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;(status="failed" OR status!="failed")&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| stats&amp;nbsp; dc(id) AS failed BY host_name | table host_name failed ( it returns also &lt;STRONG&gt;234)&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Only 10% of hosts have such odd search behavior,&amp;nbsp; for another 90% total = failed + passed/skipped&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 16:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625067#M51243</guid>
      <dc:creator>Dzmitry</dc:creator>
      <dc:date>2022-12-22T16:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search returns incorrect dc count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625068#M51244</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252160"&gt;@Dzmitry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;which time period did you used?&lt;/P&gt;&lt;P&gt;don't use a rtime period containing latest=now, but a closed time period: e.g. yesterday, earliest=-h@h latest=@h.&lt;/P&gt;&lt;P&gt;To be sure that the number of events is fixed.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 10:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625068#M51244</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-12-22T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search returns incorrect dc count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625073#M51246</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I use "Last 7 days"&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried "Date range" and "Date &amp;amp; Time range" "Advanced" and got same issue&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 12:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625073#M51246</guid>
      <dc:creator>Dzmitry</dc:creator>
      <dc:date>2022-12-22T12:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search returns incorrect dc count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625075#M51248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252160"&gt;@Dzmitry&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;please try, always using a fixed and closed time (e.g. last week) the following search and see if the results are correct:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="..." exec_mode="..." host_name="test_host" (status="failed" OR status="skipped" OR status="passed") 
| stats  dc(id) AS pass_skip BY host_name 
| table host_name pass_skip&lt;/LI-CODE&gt;&lt;P&gt;if they are correct means that you have events outside the three types you're using in your searches.&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 12:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625075#M51248</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-12-22T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search returns incorrect dc count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625079#M51249</link>
      <description>&lt;P&gt;Unfortunately, it doesn't help.&lt;BR /&gt;I get the same result for queries with (status="skipped" OR status="passed") and&amp;nbsp;(status="skipped" OR status="passed" OR &lt;STRONG&gt;status="failed"&lt;/STRONG&gt;), tried all fixed time ranges.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 12:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625079#M51249</guid>
      <dc:creator>Dzmitry</dc:creator>
      <dc:date>2022-12-22T12:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search returns incorrect dc count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625083#M51250</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252160"&gt;@Dzmitry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what's the result (always in the same time period) of :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="..." exec_mode="..." host_name="test_host" (status="failed" OR status="skipped" OR status="passed") 
| stats  dc(id) AS pass_skip BY host_name status
| stats sum(pass_skip) AS total BY status&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 12:49:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625083#M51250</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-12-22T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search returns incorrect dc count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625090#M51251</link>
      <description>&lt;P&gt;Thank you and Merry &lt;SPAN&gt;Christmas&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;BR /&gt;final version&amp;nbsp;&lt;BR /&gt;index="..." exec_mode="..." host_name="..." (status="skipped" OR status="passed" OR status="failed") | stats dc(id) AS executed BY host_name status | stats sum(executed ) AS total BY host_name&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:07:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625090#M51251</guid>
      <dc:creator>Dzmitry</dc:creator>
      <dc:date>2022-12-22T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Search returns incorrect dc count</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625092#M51252</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252160"&gt;@Dzmitry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Please accept one answer for the other people of Community&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-search-return-incorrect-dc-count/m-p/625092#M51252</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-12-22T14:16:45Z</dc:date>
    </item>
  </channel>
</rss>

