<?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: Query not displaying any events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491149#M194201</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;

&lt;P&gt;We tried modifying the query as follows but No results found.&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions warehouse=wk | bucket span=5m _time | stats count AS sessions by _time,warehouse,machine,program| stats sum(sessions) AS psessions by _time,program | timechart avg(psessions) by program&lt;/P&gt;

&lt;P&gt;We tried the  below query as well, but no results found.&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions warehouse=wk | timechart span=5m count by program&lt;/P&gt;

&lt;P&gt;Even when we try the below ones, no results found.&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions warehouse=wk&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions &lt;/P&gt;

&lt;P&gt;sourcetype=wms_oracle_sessions&lt;/P&gt;

&lt;P&gt;It seems source type wms_oracle_sessions does not exist. Please suggest what can be done.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:33:39 GMT</pubDate>
    <dc:creator>pratapa</dc:creator>
    <dc:date>2020-09-30T04:33:39Z</dc:date>
    <item>
      <title>Query not displaying any events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491146#M194198</link>
      <description>&lt;P&gt;User complained that following query is not displaying any events.&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions | bucket span=5m _time | stats count AS sessions by _time,warehouse,machine,program | search warehouse=wk | stats sum(sessions) AS psessions by _time,program | timechart avg(psessions) by program&lt;/P&gt;

&lt;P&gt;what could be the problem in the above query.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491146#M194198</guid>
      <dc:creator>pratapa</dc:creator>
      <dc:date>2020-09-30T04:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query not displaying any events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491147#M194199</link>
      <description>&lt;P&gt;One possibility is there are no events to display.&lt;BR /&gt;
Another possibility is one of the fields in the &lt;CODE&gt;by&lt;/CODE&gt; clause of &lt;CODE&gt;stats&lt;/CODE&gt; is null.  That will cause &lt;CODE&gt;stats&lt;/CODE&gt; to return no results.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 12:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491147#M194199</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-12T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query not displaying any events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491148#M194200</link>
      <description>&lt;P&gt;Hi @pratapa,&lt;BR /&gt;
I see that you filter your results for warehouse=wk that's one of the BY clause fields in the first stats command, it's always better to filter in the main search so you don't need it in the first stats, in addition the clause machine isn't used so you don't need the two stats commands.&lt;BR /&gt;
so you could simplify your search in this way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=wms_oracle_sessions warehouse=wk
| timechart span=5m count by program
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491148#M194200</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-03-12T13:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Query not displaying any events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491149#M194201</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;

&lt;P&gt;We tried modifying the query as follows but No results found.&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions warehouse=wk | bucket span=5m _time | stats count AS sessions by _time,warehouse,machine,program| stats sum(sessions) AS psessions by _time,program | timechart avg(psessions) by program&lt;/P&gt;

&lt;P&gt;We tried the  below query as well, but no results found.&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions warehouse=wk | timechart span=5m count by program&lt;/P&gt;

&lt;P&gt;Even when we try the below ones, no results found.&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions warehouse=wk&lt;/P&gt;

&lt;P&gt;index=main sourcetype=wms_oracle_sessions &lt;/P&gt;

&lt;P&gt;sourcetype=wms_oracle_sessions&lt;/P&gt;

&lt;P&gt;It seems source type wms_oracle_sessions does not exist. Please suggest what can be done.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:33:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491149#M194201</guid>
      <dc:creator>pratapa</dc:creator>
      <dc:date>2020-09-30T04:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query not displaying any events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491150#M194202</link>
      <description>&lt;P&gt;Searching only for sourcetype may not work, depending on your default index(es).  Try &lt;CODE&gt;index=* sourcetype=wms_oracle_sessions&lt;/CODE&gt;.  If that returns nothing then you need to investigate why you are not receiving any data of that source type.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 12:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491150#M194202</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-13T12:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Query not displaying any events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491151#M194203</link>
      <description>&lt;P&gt;&lt;CODE&gt;Query not displaying any events&lt;/CODE&gt;&lt;BR /&gt;
Where?&lt;BR /&gt;
1st &lt;CODE&gt;stats&lt;/CODE&gt;?&lt;BR /&gt;
&lt;CODE&gt;search&lt;/CODE&gt;?&lt;BR /&gt;
2nd &lt;CODE&gt;stats&lt;/CODE&gt;?&lt;BR /&gt;
last &lt;CODE&gt;timechart&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;SPL runs in order.&lt;BR /&gt;
Please run the query line by line.&lt;BR /&gt;
You can find where the problem is.&lt;BR /&gt;
Good luck.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 21:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491151#M194203</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-14T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query not displaying any events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491152#M194204</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="main" AND sourcetype="wms_oracle_sessions" AND warehouse="wk"
| bucket _time span=5m
| stats count AS sessions BY _time warehouse machine program
| stats sum(sessions) AS psessions BY _time program
| stats avg(psessions) BY program
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Mar 2020 22:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-not-displaying-any-events/m-p/491152#M194204</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-14T22:04:50Z</dc:date>
    </item>
  </channel>
</rss>

