<?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: How to search for requests from the same source that happen within given time interval in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/504540#M140894</link>
    <description>&lt;P&gt;Maybe start with something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;base search
| streamstats time_window=100ms values(*) as * by user&lt;/LI-CODE&gt;&lt;P&gt;where the field 'user' is your username field, but at this point, it very much depends on what you want to do with that data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2020 06:25:25 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2020-06-16T06:25:25Z</dc:date>
    <item>
      <title>How to search for requests from the same source that happen within given time interval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/503620#M140581</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I need to search for requests from the same username that occur within certain time interval, say, less than 100ms and output various request attributes. How can the query be constructed to extract such requests?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 20:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/503620#M140581</guid>
      <dc:creator>passogiau</dc:creator>
      <dc:date>2020-06-09T20:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for requests from the same source that happen within given time interval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/504540#M140894</link>
      <description>&lt;P&gt;Maybe start with something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;base search
| streamstats time_window=100ms values(*) as * by user&lt;/LI-CODE&gt;&lt;P&gt;where the field 'user' is your username field, but at this point, it very much depends on what you want to do with that data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 06:25:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/504540#M140894</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-06-16T06:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for requests from the same source that happen within given time interval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/504720#M140961</link>
      <description>&lt;P&gt;That's a very good start,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;.&amp;nbsp; Two additions...&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) As a practice, we always include in the pseudocode a &lt;STRONG&gt;fields&lt;/STRONG&gt; command to limit the junk and speed the search. If beginners learn that strategy early on, it will save them centuries of machine time.&amp;nbsp; When doing &lt;STRONG&gt;values(*) as *&lt;/STRONG&gt;, it's especially important.&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;streamstats&lt;/STRONG&gt; is finicky with &lt;STRONG&gt;time_window&lt;/STRONG&gt;, so if we're doing anything complicated, then we usually include a &lt;STRONG&gt;sort 0&lt;/STRONG&gt;&amp;nbsp;to explicitly validate the event order right before the &lt;STRONG&gt;streamstats&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;base search
| fields _time user ... the exact fields that you want to know about ...
| sort 0 _time user
| streamstats time_window=101ms values(*) as * by user&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I gave it 1 extra ms, since I can never remember whether &lt;STRONG&gt;streamstats&lt;/STRONG&gt; is inclusive or exclusive, and with ms it might matter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 02:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/504720#M140961</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-06-17T02:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for requests from the same source that happen within given time interval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/504731#M140963</link>
      <description>&lt;P&gt;Good point &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203121"&gt;@DalJeanis&lt;/a&gt;&amp;nbsp;about the wildcards - you're right, that particular construct is not something you're ever likely to want to do on _raw data given all the additional fields you'd collect on the way, so worth pointing out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 05:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-requests-from-the-same-source-that-happen/m-p/504731#M140963</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-06-17T05:23:59Z</dc:date>
    </item>
  </channel>
</rss>

