<?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 No results found, still chart and stats return 1. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233908#M176191</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a query which returns no results:&lt;/P&gt;

&lt;P&gt;index="itsm" sourcetype=incidents | dedup NUMBER sortby OPEN_TIME | search STATUS!=Closed STATUS!=Resolved ASSIGNMENT="MY GROUP"&lt;/P&gt;

&lt;P&gt;but when I add chart or stats:&lt;/P&gt;

&lt;P&gt;index="itsm" sourcetype=incidents | dedup NUMBER sortby OPEN_TIME | search STATUS!=Closed STATUS!=Resolved ASSIGNMENT="MY GROUP" | chart count&lt;/P&gt;

&lt;P&gt;it returns 1 (but not always).&lt;/P&gt;

&lt;P&gt;Does someone have an explanation for this and a solution?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;Regard, Hans van Straten&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2016 06:53:23 GMT</pubDate>
    <dc:creator>stratenh</dc:creator>
    <dc:date>2016-11-21T06:53:23Z</dc:date>
    <item>
      <title>No results found, still chart and stats return 1.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233908#M176191</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a query which returns no results:&lt;/P&gt;

&lt;P&gt;index="itsm" sourcetype=incidents | dedup NUMBER sortby OPEN_TIME | search STATUS!=Closed STATUS!=Resolved ASSIGNMENT="MY GROUP"&lt;/P&gt;

&lt;P&gt;but when I add chart or stats:&lt;/P&gt;

&lt;P&gt;index="itsm" sourcetype=incidents | dedup NUMBER sortby OPEN_TIME | search STATUS!=Closed STATUS!=Resolved ASSIGNMENT="MY GROUP" | chart count&lt;/P&gt;

&lt;P&gt;it returns 1 (but not always).&lt;/P&gt;

&lt;P&gt;Does someone have an explanation for this and a solution?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;Regard, Hans van Straten&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 06:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233908#M176191</guid>
      <dc:creator>stratenh</dc:creator>
      <dc:date>2016-11-21T06:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: No results found, still chart and stats return 1.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233909#M176192</link>
      <description>&lt;P&gt;Are you fixing your Time Range or is it a Relative Time Range? That could explain the intermittence of 0 and 1 values&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233909#M176192</guid>
      <dc:creator>TiagoTLD1</dc:creator>
      <dc:date>2016-11-21T16:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: No results found, still chart and stats return 1.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233910#M176193</link>
      <description>&lt;P&gt;It's a relative time range of 1 week. But swithing between the 2 queries back and forth didn't show any change in the results. The number of records is also very low. A couple of records per week after filtering on ASSIGNMENT. So I don't expect this to be the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 09:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233910#M176193</guid>
      <dc:creator>stratenh</dc:creator>
      <dc:date>2016-11-22T09:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: No results found, still chart and stats return 1.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233911#M176194</link>
      <description>&lt;P&gt;At this moment I don't see the issue using a relative period of 1 week. Just to be sure, I now used a fixed time frame specifying a period from Monday morning until the next Monday morning: it's still there. So a relative period is not the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 07:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233911#M176194</guid>
      <dc:creator>stratenh</dc:creator>
      <dc:date>2016-11-23T07:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: No results found, still chart and stats return 1.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233912#M176195</link>
      <description>&lt;P&gt;Maybe some additional info will help.&lt;/P&gt;

&lt;P&gt;I created a dashboard with this query in it. I didn't notice the problem before we used the dashboard.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 08:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233912#M176195</guid>
      <dc:creator>stratenh</dc:creator>
      <dc:date>2016-11-23T08:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: No results found, still chart and stats return 1.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233913#M176196</link>
      <description>&lt;P&gt;My query was wrong. The dedup sorted nothing, because OPEN_TIME is the same. So sorting is different every time, as well as the remaining records after the dedup.&lt;/P&gt;

&lt;P&gt;Sorry for taking your time.&lt;/P&gt;

&lt;P&gt;Regards, Hans van Straten&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 15:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-results-found-still-chart-and-stats-return-1/m-p/233913#M176196</guid>
      <dc:creator>stratenh</dc:creator>
      <dc:date>2016-11-23T15:18:10Z</dc:date>
    </item>
  </channel>
</rss>

