<?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: Need help modifying this correlation search in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44937#M80</link>
    <description>&lt;P&gt;It looks like the new version of  the Enterprise Security App is using extreme search and looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats allow_old_summaries=true count from datamodel=Network_Traffic by All_Traffic.dest_port | `drop_dm_object_name("All_Traffic")` | localop | xswhere count from count_by_dest_port_1d in network_traffic by dest_port is extreme
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea how to tweak the threshold on this?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2015 21:05:03 GMT</pubDate>
    <dc:creator>dirkmeeuwsen</dc:creator>
    <dc:date>2015-11-18T21:05:03Z</dc:date>
    <item>
      <title>Need help modifying this correlation search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44932#M75</link>
      <description>&lt;P&gt;This correlation search detects a "substantial increase in port activity" and it works well.  How can I tune/modify it so that it is a little less sensitive so that it doesn't "trigger" as often?  Basically, increase the threshold/limits.  I'm pretty new with Splunk searches in general so I'm a little hesitant to modify this myself.  Thanks!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| `tstats` sum(count) from sa_port_proto groupby _time,transport,dest_port span=30m | stats sum(count) as count by _time,transport,dest_port | `timeDiff` | appendpipe [search timeDiff&amp;lt;=86400 | stats max(_time) as _time,sum(count) as count by transport,dest_port | eval group="Last 24 hours"] | eval group=if(_time&amp;lt;relative_time(time(),"@d") AND timeDiff&amp;lt;=5184000,"Last 60 days",group) | bin _time span=1d | stats sum(count) as count by _time,group,transport,dest_port | eval temp=if(group="Last 60 days",transport.dest_port,null()) | eventstats stdev(count) as stdev,avg(count) as avg by temp | eventstats max(stdev) as stdev,max(avg) as avg by transport,dest_port | dedup transport,dest_port sortby -_time | eval limit=(3*stdev)+avg | eval diff=count-limit | search diff&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Aug 2013 15:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44932#M75</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-23T15:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help modifying this correlation search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44933#M76</link>
      <description>&lt;P&gt;The "limit" field near the end is the magic. It gets set to 3 standard deviations (3 sigma) from the average. According to &lt;A href="http://en.wikipedia.org/wiki/68%E2%80%9395%E2%80%9399.7_rule"&gt;this wiki page&lt;/A&gt;, that should account for 99% of the values in a standard distribution curve. You could change it to 3.5 or 4 stdev, but that would probably never fire. It's a balancing act between crying wolf and not hearing about a potential problem.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 16:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44933#M76</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-08-23T16:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help modifying this correlation search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44934#M77</link>
      <description>&lt;P&gt;Thank very much for the info!  I will tweak it (starting at 3.1) and find a healthy balance.&lt;/P&gt;

&lt;P&gt;Any idea what the: 'search diff&amp;gt;0' at the end means?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 16:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44934#M77</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-23T16:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help modifying this correlation search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44935#M78</link>
      <description>&lt;P&gt;"Filter results to those where the value of the 'diff' field is greater than zero."&lt;/P&gt;

&lt;P&gt;We first set the limit with the stdev term I identified earlier. Next, we set a new field called diff which is the difference between the count of events and our "limit" or threshold. Finally, we look for cases where this is greater than zero, indicating "more events than our threshold".&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 16:15:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44935#M78</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-08-23T16:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help modifying this correlation search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44936#M79</link>
      <description>&lt;P&gt;Great explanation, now I understand, thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 16:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44936#M79</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-23T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help modifying this correlation search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44937#M80</link>
      <description>&lt;P&gt;It looks like the new version of  the Enterprise Security App is using extreme search and looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats allow_old_summaries=true count from datamodel=Network_Traffic by All_Traffic.dest_port | `drop_dm_object_name("All_Traffic")` | localop | xswhere count from count_by_dest_port_1d in network_traffic by dest_port is extreme
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea how to tweak the threshold on this?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 21:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44937#M80</guid>
      <dc:creator>dirkmeeuwsen</dc:creator>
      <dc:date>2015-11-18T21:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help modifying this correlation search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44938#M81</link>
      <description>&lt;P&gt;I am also facing the same issue with the new version of this query using extreme search.&lt;BR /&gt;
Our ES setup is not very old so the xswhere is not able to establish a base line for each destination port. I read that we can check the current threshold level for this using extreme search. But I am unable to do that.&lt;BR /&gt;
Kindly advise.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Need-help-modifying-this-correlation-search/m-p/44938#M81</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2017-10-12T18:19:32Z</dc:date>
    </item>
  </channel>
</rss>

