<?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: Scan Behavior in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657203#M226993</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260338"&gt;@Dustem&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you schedule your search every day (using the last day as time frame) and you save the results in a summary index, one event every day.&lt;/P&gt;&lt;P&gt;Then you can schedule a search on the summary index, using three days as time frame.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 13:53:09 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-09-11T13:53:09Z</dc:date>
    <item>
      <title>Scan Behavior: How to query the trigger for the same period for three consecutive days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657179#M226989</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hi guys, I want to detect that more than 10 different ports of the same host are sniffed and scanned every 15 minutes and triggered 5 times in a row, then the alarm; If the same time period is triggered for three consecutive days, the alarm is triggered.&lt;BR /&gt;&lt;/SPAN&gt;The current SPL:&lt;/P&gt;
&lt;P&gt;index="xx"&lt;/P&gt;
&lt;P&gt;| bin _time span=15m&lt;/P&gt;
&lt;P&gt;| stats dc(dest_port) as dc_ports by _time src_ip dest_ip&lt;/P&gt;
&lt;P&gt;| where dc_ports &amp;gt; 10&lt;BR /&gt;| streamstats count as consecutive_triggers by src_ip dest_ip reset_on_change=Ture&lt;/P&gt;
&lt;P&gt;| where consecutive_triggers&amp;gt;=5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, I don't know how to query the trigger for the same period for three consecutive days.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657179#M226989</guid>
      <dc:creator>Dustem</dc:creator>
      <dc:date>2023-09-11T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scan Behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657183#M226991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260338"&gt;@Dustem&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could save the results of you search in a summary index (using the collect command), then execute the alert on the summary index and trigger it if you have more than 3 results.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 12:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657183#M226991</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-11T12:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scan Behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657202#M226992</link>
      <description>&lt;P&gt;Hi gcusello,&lt;/P&gt;&lt;P&gt;How do I set it to trigger at the same time in three days?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657202#M226992</guid>
      <dc:creator>Dustem</dc:creator>
      <dc:date>2023-09-11T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scan Behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657203#M226993</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260338"&gt;@Dustem&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you schedule your search every day (using the last day as time frame) and you save the results in a summary index, one event every day.&lt;/P&gt;&lt;P&gt;Then you can schedule a search on the summary index, using three days as time frame.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657203#M226993</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-11T13:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scan Behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657205#M226994</link>
      <description>&lt;P&gt;Can I do this by writing SPL?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657205#M226994</guid>
      <dc:creator>Dustem</dc:creator>
      <dc:date>2023-09-11T14:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scan Behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657219#M226998</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260338"&gt;@Dustem&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes, you should create an alert, scheduled e.g. one time&amp;nbsp; day like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="xx"
| bin _time span=15m
| stats dc(dest_port) as dc_ports by _time src_ip dest_ip
| where dc_ports &amp;gt; 10
| streamstats count as consecutive_triggers by src_ip dest_ip reset_on_change=Ture
| where consecutive_triggers&amp;gt;=5
| collect index=my_summary&lt;/LI-CODE&gt;&lt;P&gt;that triggers the conditons you need and saves results in a summary index.&lt;/P&gt;&lt;P&gt;then if the alert is named "scan"&lt;/P&gt;&lt;P&gt;you can search on the summary for the search_name="scan" in the last three days:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_summary search_name=scan
| stats count BY src_ip dest_ip
| where count&amp;gt;5&lt;/LI-CODE&gt;&lt;P&gt;Obviously you have to adapt my approach to your Use case.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/657219#M226998</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-11T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scan Behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/658073#M227314</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;gcusello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sorry, I forgot to reply. I rewrote SPL myself to complete the requirements, thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 02:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/658073#M227314</guid>
      <dc:creator>Dustem</dc:creator>
      <dc:date>2023-09-20T02:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scan Behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/658086#M227321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260338"&gt;@Dustem&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;let me know if I can help you more, or, please, accept one answer for the other people of Community.&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>Wed, 20 Sep 2023 06:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scan-Behavior-How-to-query-the-trigger-for-the-same-period-for/m-p/658086#M227321</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-20T06:45:49Z</dc:date>
    </item>
  </channel>
</rss>

