<?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: No results when when using &amp;quot;stats&amp;quot; in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594366#M206869</link>
    <description>&lt;P&gt;I forgot to mention I'm running queries trough an API so I don't have access to the Verbose Mode AFAIK.&lt;/P&gt;&lt;P&gt;I don't think there are any issues related to permissions and with other indices or sourcetypes it seems to work fine.&lt;BR /&gt;&lt;BR /&gt;I've added a 3rd example to the original post with an addition query I've used that works.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 06:38:16 GMT</pubDate>
    <dc:creator>Liran</dc:creator>
    <dc:date>2022-04-20T06:38:16Z</dc:date>
    <item>
      <title>Why am I getting No results when when using "stats"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594362#M206867</link>
      <description>&lt;P&gt;I'm attempting to run a query and I've run into a really weird situation where if I run a query with "head 10 | fields *" I'm getting results but if I use "stats" with any field it does not return results.&lt;/P&gt;
&lt;P&gt;For example, this query is returning the results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=main sourcetype=o365:management:activity Field1=Value1
| head 10
| fields * &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is returning no results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=main sourcetype=o365:management:activity Field1=Value1
| stats count by _time&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somehow this does work and returns the result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=main sourcetype=o365:management:activity Field1=Value1
| head 10
| stats count by _time&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've looked into it and did not manage to find similar issues, did anyone see anything similar before?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 14:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594362#M206867</guid>
      <dc:creator>Liran</dc:creator>
      <dc:date>2022-04-20T14:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: No results when when using "stats"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594365#M206868</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245045"&gt;@Liran&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's avery strange behavious that I never saw.&lt;/P&gt;&lt;P&gt;I suppose that you're using an user with admin grants.&lt;/P&gt;&lt;P&gt;Anyway, did you tried using a different field as index or sourcetype?&lt;/P&gt;&lt;P&gt;Did you tried to use the Verbose Mode?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 06:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594365#M206868</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-04-20T06:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: No results when when using "stats"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594366#M206869</link>
      <description>&lt;P&gt;I forgot to mention I'm running queries trough an API so I don't have access to the Verbose Mode AFAIK.&lt;/P&gt;&lt;P&gt;I don't think there are any issues related to permissions and with other indices or sourcetypes it seems to work fine.&lt;BR /&gt;&lt;BR /&gt;I've added a 3rd example to the original post with an addition query I've used that works.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 06:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594366#M206869</guid>
      <dc:creator>Liran</dc:creator>
      <dc:date>2022-04-20T06:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: No results when when using "stats"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594368#M206870</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245045"&gt;@Liran&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I haven't a large experience in API using, so I hint to open a Case to Splunk Support.&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 06:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-No-results-when-when-using-quot-stats-quot/m-p/594368#M206870</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-04-20T06:42:31Z</dc:date>
    </item>
  </channel>
</rss>

