<?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: Group DNS queries per src_ip where two domains are queried within minutes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590056#M205433</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/202672"&gt;@Daniel_K&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think I understand what you are trying to do.&lt;/P&gt;&lt;P&gt;You could use&amp;nbsp; bucket/bin command. Then use time field to group other fields.&lt;/P&gt;&lt;P&gt;For X=5 minutes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=something 
| bucket span=5m _time
| stats count by src_ip, _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 17:27:47 GMT</pubDate>
    <dc:creator>BahadirS</dc:creator>
    <dc:date>2022-03-21T17:27:47Z</dc:date>
    <item>
      <title>Group DNS queries per src_ip where two domains are queried within minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/589973#M205412</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I would appreciate some design help with a query where I want to see all src_ip's querying for two different domains within X minutes of time interval during a longer time period.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 10:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/589973#M205412</guid>
      <dc:creator>Daniel_K</dc:creator>
      <dc:date>2022-03-21T10:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Group DNS queries per src_ip where two domains are queried within minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/589975#M205414</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/202672"&gt;@Daniel_K&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you want to know the IPs that queried both the domains, is is it correct?&lt;/P&gt;&lt;P&gt;In this case, please, try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index (domain=domain1 OR domain=domain2)
| stats dc(domain) AS dc_domain BY src_ip
| where dc_domain=2
| table src_ip&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 10:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/589975#M205414</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-21T10:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Group DNS queries per src_ip where two domains are queried within minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/589990#M205417</link>
      <description>&lt;P&gt;Thanks Giuseppe!&lt;/P&gt;&lt;P&gt;That search worked just fine but if you help me even more it would be great. Let's assume that both queries must be within X minutes of time but the complete query time is earliest=Y and latest=Z.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 12:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/589990#M205417</guid>
      <dc:creator>Daniel_K</dc:creator>
      <dc:date>2022-03-21T12:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Group DNS queries per src_ip where two domains are queried within minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/589995#M205419</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=your_index (domain=domain1 OR domain=domain2)
| streamstats dc(domain) as dc_domain range(_time) as interval window=2 global=f by src_ip
| where dc_domain=2 AND interval &amp;lt; 120
| table src_ip&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Mar 2022 12:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/589995#M205419</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-21T12:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Group DNS queries per src_ip where two domains are queried within minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590008#M205425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/202672"&gt;@Daniel_K&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry but I don't understand your request: you can choose the earliest and latest values using the Time Picker or the Time Modifiers (&lt;A href="https://docs.splunk.com/Documentation/SCS/current/Search/Timemodifiers" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/Search/Timemodifiers&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Search/Specifytimemodifiersinyoursearch" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Search/Specifytimemodifiersinyoursearch&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;So what's your question?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 13:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590008#M205425</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-21T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Group DNS queries per src_ip where two domains are queried within minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590019#M205426</link>
      <description>&lt;P&gt;Yes, you're correct and&amp;nbsp; I was unclear.&lt;/P&gt;&lt;P&gt;I wanted the result to be whenever the 2 different domains where queried within a specific time frame.&lt;BR /&gt;Your suggestion was great and &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; tweaked it a bit more to satisfy the needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I still think the search could be improve by:&lt;/P&gt;&lt;P&gt;* Group based on src_ip with only one line with the different domains within the time frame&lt;BR /&gt;* If any query as it is now gives more than one hit - the result will be wrong, right?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 13:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590019#M205426</guid>
      <dc:creator>Daniel_K</dc:creator>
      <dc:date>2022-03-21T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Group DNS queries per src_ip where two domains are queried within minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590027#M205427</link>
      <description>&lt;P&gt;I am not sure what you are asking here - you will get a "hit" each time the domain changes for a src_ip within the short period of time. You could dedup by src_ip to pick up on src_ip hitting both domains at any time in the overall time period, or even count by src_ip to find how many times the src_ip switched from one domain to the other. It depends on what it is that you are looking for.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590027#M205427</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-21T14:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Group DNS queries per src_ip where two domains are queried within minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590056#M205433</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/202672"&gt;@Daniel_K&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think I understand what you are trying to do.&lt;/P&gt;&lt;P&gt;You could use&amp;nbsp; bucket/bin command. Then use time field to group other fields.&lt;/P&gt;&lt;P&gt;For X=5 minutes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=something 
| bucket span=5m _time
| stats count by src_ip, _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 17:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-DNS-queries-per-src-ip-where-two-domains-are-queried/m-p/590056#M205433</guid>
      <dc:creator>BahadirS</dc:creator>
      <dc:date>2022-03-21T17:27:47Z</dc:date>
    </item>
  </channel>
</rss>

