<?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 to add date range to  dashboard panel title so that the date range in the title and search query time both are in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638405#M221258</link>
    <description>&lt;P&gt;My mistake. (I was editing from a dashboard that had other inputs unrelated to this problem, then deleted some tags.)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;Show time picker&amp;lt;/label&amp;gt;
  &amp;lt;fieldset&amp;gt;
    &amp;lt;input type="time" token="time_tok"&amp;gt;
      &amp;lt;label&amp;gt;Pick a time range&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&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;Search from &amp;amp;lt;$time_tok.earliest$&amp;amp;gt; to &amp;amp;lt;$time_tok.latest$&amp;amp;gt;&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal
| addinfo
| stats count by info_min_time info_max_time
| fieldformat info_min_time = strftime(info_min_time, "%F %H:%M:%S")
| fieldformat info_max_time = strftime(info_max_time, "%F %H:%M:%S")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_tok.latest$&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, 03 Apr 2023 15:15:58 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-04-03T15:15:58Z</dc:date>
    <item>
      <title>How to add date range to  dashboard panel title so that the date range in the title and search time both are same?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638031#M221210</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a splunk dashboard panel which has a requirement that is.&lt;/P&gt;
&lt;P&gt;The dashboard panel has a title which needs a time range and that time range should be same as the time range which is used for the search time in the panel. Below are the snippets which can give an idea about the requirement.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renunaren_0-1680370592760.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24660i113F698680D9D19C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renunaren_0-1680370592760.png" alt="Renunaren_0-1680370592760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The date range which has highlighted should be same as the below search time which has been used in the same panel.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renunaren_1-1680370821374.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24661iB2FDCEDE4A57E24E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renunaren_1-1680370821374.png" alt="Renunaren_1-1680370821374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help on the above requirement.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 23:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638031#M221210</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-04-02T23:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add date range to  dashboard panel title so that the date range in the title and search query time both are</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638218#M221221</link>
      <description>&lt;P&gt;Your best bet is to use an explicit time picker in the dashboard, like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;Show time picker&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;input type="time" token="time_tok"&amp;gt;
      &amp;lt;label&amp;gt;Pick a time range&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&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;Search from &amp;amp;lt;$time_tok.earliest$&amp;amp;gt; to &amp;amp;lt;$time_tok.latest$&amp;amp;gt;&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal
| addinfo
| stats count by info_min_time info_max_time
| fieldformat info_min_time = strftime(info_min_time, "%F %H:%M:%S")
| fieldformat info_max_time = strftime(info_max_time, "%F %H:%M:%S")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_tok.latest$&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;&lt;P&gt;You'll notice that it works best when the user selects from presets. &amp;nbsp;Otherwise the title will show epoc seconds of user's selection. &amp;nbsp;It is possible to convert general time range into human-friendly form using a "hidden" token calculation on the dashboard. &amp;nbsp;Bottom line is: There is no way to make title to show information that is pre-selected inside the panel.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 06:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638218#M221221</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-04-02T06:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add date range to  dashboard panel title so that the date range in the title and search query time both are</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638301#M221232</link>
      <description>&lt;P&gt;Hi User,&lt;/P&gt;&lt;P&gt;I have tried to use the above it is showing error like below while editing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renunaren_0-1680502989378.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24672i7217903F5D90C78F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renunaren_0-1680502989378.png" alt="Renunaren_0-1680502989378.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renunaren_1-1680503007531.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24673iD17D22A7403D4589/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renunaren_1-1680503007531.png" alt="Renunaren_1-1680503007531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 06:23:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638301#M221232</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-04-03T06:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add date range to  dashboard panel title so that the date range in the title and search query time both are</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638405#M221258</link>
      <description>&lt;P&gt;My mistake. (I was editing from a dashboard that had other inputs unrelated to this problem, then deleted some tags.)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;Show time picker&amp;lt;/label&amp;gt;
  &amp;lt;fieldset&amp;gt;
    &amp;lt;input type="time" token="time_tok"&amp;gt;
      &amp;lt;label&amp;gt;Pick a time range&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&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;Search from &amp;amp;lt;$time_tok.earliest$&amp;amp;gt; to &amp;amp;lt;$time_tok.latest$&amp;amp;gt;&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal
| addinfo
| stats count by info_min_time info_max_time
| fieldformat info_min_time = strftime(info_min_time, "%F %H:%M:%S")
| fieldformat info_max_time = strftime(info_max_time, "%F %H:%M:%S")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_tok.latest$&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, 03 Apr 2023 15:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-date-range-to-dashboard-panel-title-so-that-the-date/m-p/638405#M221258</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-04-03T15:15:58Z</dc:date>
    </item>
  </channel>
</rss>

