<?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: Check event count before running stats? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Check-event-count-before-running-stats/m-p/547783#M155340</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=summary-ecp-ord-oms source=ecp-ord-owls-transaction-perf-15min earliest=-10080m latest=-10070m | eventstats count as eventcount | where eventcount &amp;gt; 3 | stats sum(count) as previous by request&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 13 Apr 2021 19:18:38 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-04-13T19:18:38Z</dc:date>
    <item>
      <title>Check event count before running stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-event-count-before-running-stats/m-p/547778#M155338</link>
      <description>&lt;P&gt;I have a query where it runs a certain summary query every 15 minutes in a bucket. However, there are fairly frequent maintenance that happens for our splunk dev team which causes a lot of missing time frames in the query and causes our alerts to misfire.&lt;/P&gt;&lt;P&gt;Currently:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary-ecp-ord-oms source=ecp-ord-owls-transaction-perf-15min earliest=-10080m latest=-10070m  | stats sum(count) as previous by request&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is something like a way to check if the results from the initial query is more than 3, then run the stats on the data. Otherwise, return nothing.&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=summary-ecp-ord-oms source=ecp-ord-owls-transaction-perf-15min earliest=-10080m latest=-10070m | where eventcount &amp;gt; 3 | stats sum(count) as previous by request&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 18:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-event-count-before-running-stats/m-p/547778#M155338</guid>
      <dc:creator>exocore123</dc:creator>
      <dc:date>2021-04-13T18:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Check event count before running stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-event-count-before-running-stats/m-p/547783#M155340</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=summary-ecp-ord-oms source=ecp-ord-owls-transaction-perf-15min earliest=-10080m latest=-10070m | eventstats count as eventcount | where eventcount &amp;gt; 3 | stats sum(count) as previous by request&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Apr 2021 19:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-event-count-before-running-stats/m-p/547783#M155340</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-13T19:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Check event count before running stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-event-count-before-running-stats/m-p/547784#M155341</link>
      <description>&lt;P&gt;Ooof, I was so close to the answer. Thank you. Didnt realize I was writing eventstat wrong&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 19:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-event-count-before-running-stats/m-p/547784#M155341</guid>
      <dc:creator>exocore123</dc:creator>
      <dc:date>2021-04-13T19:51:44Z</dc:date>
    </item>
  </channel>
</rss>

