<?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 Splunk query returns statistics but no events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-returns-statistics-but-no-events/m-p/549435#M155897</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;New to Splunk so I must be missing something obvious. I looked through previous questions and the docs but didn't see anything about this problem.&lt;/P&gt;&lt;P&gt;I have a Splunk query which is correctly returning the statistic I am expecting but has Events(0) even when Verbose Mode is enabled.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* // search redacted 
|rex "(?P&amp;lt;json&amp;gt;{.+})" 
|table json 
|spath input=json
|stats sum(Response.Selected)&lt;/LI-CODE&gt;&lt;P&gt;When I execute this query from Splunk Search (Web UI) I am getting the correct sum under the "Statistics" tab but the "Events" tab is (0).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 09:44:15 GMT</pubDate>
    <dc:creator>doffner</dc:creator>
    <dc:date>2021-04-27T09:44:15Z</dc:date>
    <item>
      <title>Splunk query returns statistics but no events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-returns-statistics-but-no-events/m-p/549435#M155897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;New to Splunk so I must be missing something obvious. I looked through previous questions and the docs but didn't see anything about this problem.&lt;/P&gt;&lt;P&gt;I have a Splunk query which is correctly returning the statistic I am expecting but has Events(0) even when Verbose Mode is enabled.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* // search redacted 
|rex "(?P&amp;lt;json&amp;gt;{.+})" 
|table json 
|spath input=json
|stats sum(Response.Selected)&lt;/LI-CODE&gt;&lt;P&gt;When I execute this query from Splunk Search (Web UI) I am getting the correct sum under the "Statistics" tab but the "Events" tab is (0).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 09:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-returns-statistics-but-no-events/m-p/549435#M155897</guid>
      <dc:creator>doffner</dc:creator>
      <dc:date>2021-04-27T09:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query returns statistics but no events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-returns-statistics-but-no-events/m-p/549438#M155898</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233863"&gt;@doffner&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;stats&lt;/STRONG&gt; is a &lt;STRONG&gt;transforming command&lt;/STRONG&gt;&amp;nbsp;which means&amp;nbsp;&lt;SPAN&gt;the command "transforms" the specified cell values for each event into numerical values for statistical purposes. Raw events are not available once you run stats. But if you still need events you can use &lt;STRONG&gt;eventstats&lt;/STRONG&gt; command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Check this page on stats and eventstats command&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/search-command-stats-eventstats-and-streamstats-2.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/search-command-stats-eventstats-and-streamstats-2.html&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-returns-statistics-but-no-events/m-p/549438#M155898</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-04-27T10:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query returns statistics but no events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-returns-statistics-but-no-events/m-p/549439#M155899</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-returns-statistics-but-no-events/m-p/549439#M155899</guid>
      <dc:creator>doffner</dc:creator>
      <dc:date>2021-04-27T10:44:34Z</dc:date>
    </item>
  </channel>
</rss>

