<?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: Multiple stats command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-stats-command/m-p/560164#M159189</link>
    <description>&lt;P&gt;Is this what you are trying to do - if not, please explain what you are attempting to do (not just what doesn't work)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bin _time span=1h | stats count(eval(eventDay==curDay)) AS cv count(eval(eventDay!=curDay)) AS ce by _time, uid &lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 20 Jul 2021 06:37:44 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-07-20T06:37:44Z</dc:date>
    <item>
      <title>Multiple stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-stats-command/m-p/560151#M159183</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bin _time span=1h | stats count(eval(eventDay==curDay)) AS cv by uid | stats count(eval(eventDay!=curDay)) AS ce by _time, uid &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following commands returns with null value in&amp;nbsp; "cv"&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70"&gt;@Lowell&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/160"&gt;@Hazel&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/164621"&gt;@ramdaspr&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:12:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-stats-command/m-p/560151#M159183</guid>
      <dc:creator>lkslsaks</dc:creator>
      <dc:date>2021-07-20T12:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-stats-command/m-p/560152#M159184</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236598"&gt;@lkslsaks&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your second stats will not work. Because after 1st stats there will be only cv and uid fields available in results.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bin _time span=1h | stats count(eval(eventDay==curDay)) AS cv by uid &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second stats required &amp;nbsp;eventDay,curDay,_time and uid. That's Y you are not getting any results.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count(eval(eventDay!=curDay)) AS ce by _time, uid&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share the logic or steps for your search. So we can help you on.&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-stats-command/m-p/560152#M159184</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-20T04:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-stats-command/m-p/560164#M159189</link>
      <description>&lt;P&gt;Is this what you are trying to do - if not, please explain what you are attempting to do (not just what doesn't work)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bin _time span=1h | stats count(eval(eventDay==curDay)) AS cv count(eval(eventDay!=curDay)) AS ce by _time, uid &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Jul 2021 06:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-stats-command/m-p/560164#M159189</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-20T06:37:44Z</dc:date>
    </item>
  </channel>
</rss>

