<?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 from 600 seconds before to 600 seconds after the time specified in the time picker on the dashboard? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604306#M13149</link>
    <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Time Picker token&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;eval token="earliest10minutesbefore"&amp;gt;relative_time(now(),"-10m")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="latest10minutesafter"&amp;gt;relative_time(now(),"+10m")&amp;lt;/eval&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;eval token="earliest10minutesbefore"&amp;gt;relative_time(relative_time(now(),$time.earliest$),"-10m")&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="latest10minutesafter"&amp;gt;relative_time(relative_time(now(),$time.latest$),"+10m")&amp;lt;/eval&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;10 minute buffer&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| eval earliest10minutesbefore= $earliest10minutesbefore$,
latest10minutesafter=$latest10minutesafter$
| eval earliest_time=strftime(earliest10minutesbefore,"%Y-%m-%dT%H:%M:%S"),
latest_time=strftime(latest10minutesafter,"%Y-%m-%dT%H:%M:%S")
| table earliest_time, latest_time, earliest10minutesbefore, latest10minutesafter
| fields - _time&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$earliest10minutesbefore$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$latest10minutesafter$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 04 Jul 2022 10:38:10 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-07-04T10:38:10Z</dc:date>
    <item>
      <title>How to search from 600 seconds before to 600 seconds after the time specified in the time picker on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/603757#M13062</link>
      <description>&lt;P&gt;I would like to search from 600 seconds before to 600 seconds after the time specified in the time picker on the dashboard. Is there a good idea?&lt;BR /&gt;&lt;BR /&gt;The time picker is also used in another panel, so it is in response to the request that I&amp;nbsp;didn't want to place multiple time pickers.&lt;BR /&gt;&lt;BR /&gt;=== This SPL did not pass. ===&lt;BR /&gt;index = _internal&lt;BR /&gt;earliest = $ field1.earliest $ --600&lt;BR /&gt;latest = $ field1.earliest $ + 600&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 21:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/603757#M13062</guid>
      <dc:creator>Msugiyama</dc:creator>
      <dc:date>2022-06-29T21:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to search from 600 seconds before to 600 seconds after the time specified in the time picker on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604108#M13123</link>
      <description>&lt;P&gt;You could add a change handler to the timepicker to evaluate new tokens based on the values chosen and use those new tokens for your earliest and latest values.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 11:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604108#M13123</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-01T11:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to search from 600 seconds before to 600 seconds after the time specified in the time picker on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604300#M13148</link>
      <description>&lt;P&gt;Thank you for reply&lt;BR /&gt;What you want to search is the log related to the input to the form of the web page.&lt;/P&gt;&lt;P&gt;When "Today" is specified in the time picker&lt;BR /&gt;I can't search for a start and end if started a session at 23:50 yesterday and the session expires at 0:10 today.&lt;BR /&gt;For the time being, I would like to set up a buffer for about 10 minutes.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604300#M13148</guid>
      <dc:creator>Msugiyama</dc:creator>
      <dc:date>2022-07-04T10:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to search from 600 seconds before to 600 seconds after the time specified in the time picker on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604306#M13149</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Time Picker token&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;eval token="earliest10minutesbefore"&amp;gt;relative_time(now(),"-10m")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="latest10minutesafter"&amp;gt;relative_time(now(),"+10m")&amp;lt;/eval&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;eval token="earliest10minutesbefore"&amp;gt;relative_time(relative_time(now(),$time.earliest$),"-10m")&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="latest10minutesafter"&amp;gt;relative_time(relative_time(now(),$time.latest$),"+10m")&amp;lt;/eval&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;10 minute buffer&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| eval earliest10minutesbefore= $earliest10minutesbefore$,
latest10minutesafter=$latest10minutesafter$
| eval earliest_time=strftime(earliest10minutesbefore,"%Y-%m-%dT%H:%M:%S"),
latest_time=strftime(latest10minutesafter,"%Y-%m-%dT%H:%M:%S")
| table earliest_time, latest_time, earliest10minutesbefore, latest10minutesafter
| fields - _time&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$earliest10minutesbefore$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$latest10minutesafter$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604306#M13149</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-04T10:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to search from 600 seconds before to 600 seconds after the time specified in the time picker on the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604441#M13163</link>
      <description>&lt;P&gt;This is awesome!!&lt;BR /&gt;Resolved. Thanks!&lt;/P&gt;&lt;P&gt;I will relearn about TOKEN.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 12:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-search-from-600-seconds-before-to-600-seconds-after-the/m-p/604441#M13163</guid>
      <dc:creator>Msugiyama</dc:creator>
      <dc:date>2022-07-05T12:46:31Z</dc:date>
    </item>
  </channel>
</rss>

