<?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 Time Range options in Correlation Search? in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45080#M87</link>
    <description>&lt;P&gt;In Enterprise Security I have this correlation search which I believe includes searching through the previous 24 hours of events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=T listeningports_tracker | eval _time=firstTime | `hoursago(24)` | stats dc(dest) as dest_count by transport,dest_port | search dest_count&amp;gt;10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the correlation search properties (Configure-&amp;gt;Correlation Searches-&amp;gt;Edit Correlation Search) you can specify a "time range".  Would it be incorrect to specify the start time as -60m (previous 60 minutes) if the search string itself wants to go back 24 hours?&lt;/P&gt;

&lt;P&gt;I'm confused about how the time range options affect searches that include defined time ranges.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2013 17:52:42 GMT</pubDate>
    <dc:creator>echojacques</dc:creator>
    <dc:date>2013-08-23T17:52:42Z</dc:date>
    <item>
      <title>Time Range options in Correlation Search?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45080#M87</link>
      <description>&lt;P&gt;In Enterprise Security I have this correlation search which I believe includes searching through the previous 24 hours of events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=T listeningports_tracker | eval _time=firstTime | `hoursago(24)` | stats dc(dest) as dest_count by transport,dest_port | search dest_count&amp;gt;10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the correlation search properties (Configure-&amp;gt;Correlation Searches-&amp;gt;Edit Correlation Search) you can specify a "time range".  Would it be incorrect to specify the start time as -60m (previous 60 minutes) if the search string itself wants to go back 24 hours?&lt;/P&gt;

&lt;P&gt;I'm confused about how the time range options affect searches that include defined time ranges.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 17:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45080#M87</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-23T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Time Range options in Correlation Search?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45081#M88</link>
      <description>&lt;P&gt;echojacques,&lt;/P&gt;

&lt;P&gt;In this case the search is an "| inputlookup" search, so the "time range" in the correlation search editor is ignored.  This holds true for Splunk search as well (the TimeRangePicker would be ignored in the flashtimeline/search view).  This is why we are using the &lt;CODE&gt;hoursago&lt;/CODE&gt; macro to filter based on time. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 20:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45081#M88</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2013-08-23T20:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time Range options in Correlation Search?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45082#M89</link>
      <description>&lt;P&gt;Thanks for the info!  So then what about this correlation search that doesn't use inputlookup and looks like it goes back 60 days?&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
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;continued in next comment...&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 22:08:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45082#M89</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-23T22:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time Range options in Correlation Search?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45083#M90</link>
      <description>&lt;P&gt;| 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.2*stdev)+avg | eval diff=count-limit | search diff&amp;gt;0&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45083#M90</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2020-09-28T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time Range options in Correlation Search?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45084#M91</link>
      <description>&lt;P&gt;That correlation search is a tstats query, so it absolutely respects "time range" (either a Time Range Picker, or in this case dispatch.earliest and dispatch.latest in savedsearches.conf).  &lt;/P&gt;

&lt;P&gt;For this correlation search, you can modify the "time range" to look back over a different period of time, we would just need to also modify the in-search bucket calculation.&lt;/P&gt;

&lt;P&gt;Let's say you wanted to go back 30 days, you would modify all instances of "Last 60 days" to "Last 30 days", and timeDiff&amp;lt;=5184000 to timeDiff&amp;lt;=2592000.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2013 13:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45084#M91</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2013-08-24T13:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time Range options in Correlation Search?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45085#M92</link>
      <description>&lt;P&gt;Great, thanks for the info!  So I'll modify the in-search time references and also the Time Range (start/end) settings in the search config.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 22:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Time-Range-options-in-Correlation-Search/m-p/45085#M92</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-27T22:12:02Z</dc:date>
    </item>
  </channel>
</rss>

