<?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: Conditional Aggregate in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609329#M105652</link>
    <description>&lt;P&gt;Do you mean something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=coreprod pod=xxxx CASE(xxxxxx) event=ack
| streamstats range(_time) as range global=f window=2 by entityId
| where range &amp;lt; 3600
| stats count&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 12 Aug 2022 14:25:59 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-08-12T14:25:59Z</dc:date>
    <item>
      <title>Conditional Aggregate- How to search all entityID's with count?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609316#M105649</link>
      <description>&lt;P&gt;I have below splunk which gets me all entityID's with count&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=coreprod pod=xxxx CASE(xxxxxx) event=ack |stats count by entityId |where count&amp;gt;1&lt;/LI-CODE&gt;
&lt;P&gt;I want to list ONLY those entityID's where the difference between their occurrence is less than 1hr (0r xx min&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 13:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609316#M105649</guid>
      <dc:creator>bmer</dc:creator>
      <dc:date>2022-08-15T13:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Aggregate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609323#M105650</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=coreprod pod=xxxx CASE(xxxxxx) event=ack earliest=-1h | stats count by entityId |where count&amp;gt;1&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Aug 2022 12:52:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609323#M105650</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-12T12:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Aggregate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609324#M105651</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;But this is ONLY for LAST 1h. I want to pull all output of YESTERDAY and see within that how many&amp;nbsp; duplicate events had a gap of 1h or 30m or xx&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 12:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609324#M105651</guid>
      <dc:creator>bmer</dc:creator>
      <dc:date>2022-08-12T12:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Aggregate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609329#M105652</link>
      <description>&lt;P&gt;Do you mean something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=coreprod pod=xxxx CASE(xxxxxx) event=ack
| streamstats range(_time) as range global=f window=2 by entityId
| where range &amp;lt; 3600
| stats count&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Aug 2022 14:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609329#M105652</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-12T14:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Aggregate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609381#M105660</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Let me try explaining with an example.My original splunk gives below output for YESTERDAY.I know that A2 and A3 event occurred within a span of 30min whereas BOTH the A1 events occurred within a gap of 2h&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;entityId&lt;/TD&gt;&lt;TD width="50%"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;A1&lt;/TD&gt;&lt;TD width="50%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;A2&lt;/TD&gt;&lt;TD width="50%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;A3&lt;/TD&gt;&lt;TD width="50%"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iam trying to see (using splunk) if there is some way to list ONLY for YESTERDAY since these 2 records fulfil the criteria of having occurred within 30min&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;entityId&lt;/TD&gt;&lt;TD width="50%"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;A2&lt;/TD&gt;&lt;TD width="50%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;A3&lt;/TD&gt;&lt;TD width="50%"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 13 Aug 2022 00:08:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609381#M105660</guid>
      <dc:creator>bmer</dc:creator>
      <dc:date>2022-08-13T00:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Aggregate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609393#M105662</link>
      <description>&lt;LI-CODE lang="markup"&gt;| sort 0 _time
| streamstats range(_time) as range window=2 global=f by entityId
| eval range=if(range &amp;gt; 0,range,null())
| eventstats min(range) as range by entitiyId
| where range &amp;lt; 1800
| stats count by entityId
| eval count = count + 1&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 13 Aug 2022 06:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-Aggregate-How-to-search-all-entityID-s-with-count/m-p/609393#M105662</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-13T06:43:13Z</dc:date>
    </item>
  </channel>
</rss>

