<?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: Using events from last 30 minutes find duplicates from last 4 hours in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639172#M221464</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241018"&gt;@solaced&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex userRegistration earliest=-4h latest=now
| eval Period=if(now()-_time&amp;gt;1800,"Last 30 minutes","Other time")
| stats dc(Period) AS Period_count count by userName
| where Period_count&amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;In this way you have only events present in both last 30 minutes and in before time, you don't have multiple events in the same period.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2023 07:47:49 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-04-07T07:47:49Z</dc:date>
    <item>
      <title>How to use events from last 30 minutes find duplicates from last 4 hours?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639171#M221463</link>
      <description>&lt;P&gt;Could someone help me with such a query? I am running a scheduled search every 30 minutes which aims to find duplicate registrations from the last 30 minutes, that were also used when compared to the last 4 hours.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since it runs search every 30 minutes, I cannot just search using a 4 hour window, else it will keep triggering an alert every 30 minutes for 4 hours basically.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index=myindex userRegistration earliest=-4h latest=now&lt;/P&gt;
&lt;P&gt;|stats count by dc(userName) as UserCount&lt;/P&gt;
&lt;P&gt;| where UserCount&amp;gt;1&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 17:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639171#M221463</guid>
      <dc:creator>solaced</dc:creator>
      <dc:date>2023-04-07T17:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using events from last 30 minutes find duplicates from last 4 hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639172#M221464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241018"&gt;@solaced&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex userRegistration earliest=-4h latest=now
| eval Period=if(now()-_time&amp;gt;1800,"Last 30 minutes","Other time")
| stats dc(Period) AS Period_count count by userName
| where Period_count&amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;In this way you have only events present in both last 30 minutes and in before time, you don't have multiple events in the same period.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 07:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639172#M221464</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-07T07:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using events from last 30 minutes find duplicates from last 4 hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639258#M221499</link>
      <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 03:24:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639258#M221499</guid>
      <dc:creator>solaced</dc:creator>
      <dc:date>2023-04-08T03:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using events from last 30 minutes find duplicates from last 4 hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639263#M221502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241018"&gt;@solaced&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 05:41:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-events-from-last-30-minutes-find-duplicates-from-last/m-p/639263#M221502</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-08T05:41:18Z</dc:date>
    </item>
  </channel>
</rss>

