<?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 Display Date on Dashboard panel in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344656#M102093</link>
    <description>&lt;P&gt;I want to show the previous week date on Title of panel.&lt;BR /&gt;
Can anyone have some thoughts for it?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 22:16:45 GMT</pubDate>
    <dc:creator>chintan_shah</dc:creator>
    <dc:date>2017-03-09T22:16:45Z</dc:date>
    <item>
      <title>Display Date on Dashboard panel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344656#M102093</link>
      <description>&lt;P&gt;I want to show the previous week date on Title of panel.&lt;BR /&gt;
Can anyone have some thoughts for it?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 22:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344656#M102093</guid>
      <dc:creator>chintan_shah</dc:creator>
      <dc:date>2017-03-09T22:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Display Date on Dashboard panel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344657#M102094</link>
      <description>&lt;P&gt;You can run a search to calculate previous week date one of the ways would be through makeresults and using relative_time command.&lt;BR /&gt;
Then you display the same using HTML panel with formatting of your choice.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| makeresults
| eval prevWeekDate=strftime(relative_time(now(),"-7d"),"%Y/%m/%d")
| table prevWeekDate&amp;lt;/query&amp;gt;
    &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;preview&amp;gt;
      &amp;lt;set token="tok_Prev_Week_Date"&amp;gt;$result.prevWeekDate$&amp;lt;/set&amp;gt;
    &amp;lt;/preview&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div&amp;gt;
          &amp;lt;p style="color:blue;text-align:right;font-size:150%"&amp;gt;$tok_Prev_Week_Date$
          &amp;lt;/p&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Mar 2017 05:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344657#M102094</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-10T05:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display Date on Dashboard panel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344658#M102095</link>
      <description>&lt;P&gt;Thanks Niketnilay..so we cannot have dynamic title, but need to include html tags.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 14:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344658#M102095</guid>
      <dc:creator>chintan_shah</dc:creator>
      <dc:date>2017-03-10T14:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Display Date on Dashboard panel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344659#M102096</link>
      <description>&lt;P&gt;@chintan_shah... You can print this in Title also. I just used html as an example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
   &amp;lt;title&amp;gt;Data from - $tok_Prev_Week_Date$ &amp;lt;/title&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Mar 2017 15:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Date-on-Dashboard-panel/m-p/344659#M102096</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-10T15:13:24Z</dc:date>
    </item>
  </channel>
</rss>

