<?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: Dynamic Text on Dashboard description Area. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452414#M42404</link>
    <description>&lt;P&gt;@niketnilay  Thank you for the answer above.   I am in a similar situation, and can't figure out how to use your answer to display last months name in the description.  I.E.   I run a report on may 1 for  totals for April.   I want to display April, 2019 in the description.  I can't figure out how to get the previous months value.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
John&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2019 12:05:53 GMT</pubDate>
    <dc:creator>john_glasscock</dc:creator>
    <dc:date>2019-05-01T12:05:53Z</dc:date>
    <item>
      <title>Dynamic Text on Dashboard description Area.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452412#M42402</link>
      <description>&lt;P&gt;Is it possible to have some dynamic text in Dashboard description area, like current system time?&lt;BR /&gt;
I am attaching the screen shot.&lt;BR /&gt;
I am very new to Splunk ,it is my learning journey. Thank you for your help. &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6750iBCF877384B2598CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 16:48:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452412#M42402</guid>
      <dc:creator>nilanjankc</dc:creator>
      <dc:date>2019-03-21T16:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text on Dashboard description Area.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452413#M42403</link>
      <description>&lt;P&gt;@nilanjankc try the following Run anywhere example. &lt;BR /&gt;
1) You can use &lt;CODE&gt;hideTitle="true"&lt;/CODE&gt; to hide the Splunk dashboard title. &lt;BR /&gt;
2) Then use &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel to build your own dashboard header.&lt;BR /&gt;
3) In another row add the inputs.&lt;BR /&gt;
4) Create an independent search to find the current time and set it to token to be used to display the current time in the html panel.&lt;/P&gt;

&lt;P&gt;PS: You can type &lt;CODE&gt;/edit&lt;/CODE&gt; or &lt;CODE&gt;/editxml&lt;/CODE&gt; after the &lt;CODE&gt;dashboard title in the URL&lt;/CODE&gt; to bring up &lt;CODE&gt;Dashboard UI Edit&lt;/CODE&gt; or &lt;CODE&gt;Dashboard Edit XML&lt;/CODE&gt; respectively since the &lt;CODE&gt;Edit&lt;/CODE&gt; button will also not show.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form hideTitle="true"&amp;gt;
  &amp;lt;label&amp;gt;Test&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Refresh Interval 15 Minutes&amp;lt;/description&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| makeresults
    | eval CurrentTime=strftime(_time,"%Y/%m/%d %H:%M:%S %p")
    &amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;progress&amp;gt;
      &amp;lt;set token="tokCurrentTime"&amp;gt;$result.CurrentTime$&amp;lt;/set&amp;gt;
    &amp;lt;/progress&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div&amp;gt;
          &amp;lt;h1&amp;gt;Test&amp;lt;/h1&amp;gt;
          &amp;lt;p class="dashboard-header-description"&amp;gt;Refresh Interval 15 Minutes - $tokCurrentTime$&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;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="time" token="field1"&amp;gt;
        &amp;lt;label&amp;gt;&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;input type="dropdown" token="field2"&amp;gt;
        &amp;lt;label&amp;gt;Business&amp;lt;/label&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Mar 2019 17:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452413#M42403</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-21T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text on Dashboard description Area.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452414#M42404</link>
      <description>&lt;P&gt;@niketnilay  Thank you for the answer above.   I am in a similar situation, and can't figure out how to use your answer to display last months name in the description.  I.E.   I run a report on may 1 for  totals for April.   I want to display April, 2019 in the description.  I can't figure out how to get the previous months value.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
John&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 12:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452414#M42404</guid>
      <dc:creator>john_glasscock</dc:creator>
      <dc:date>2019-05-01T12:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text on Dashboard description Area.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452415#M42405</link>
      <description>&lt;P&gt;Hi @john.glasscock I am glad you found the answer useful. Do up-vote the answer/comment if it helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;As per you issue description you need to display Month name using token through an independent search. Please try out the following and use &lt;CODE&gt;tokPreviousMonth&lt;/CODE&gt; for your dynamic description.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;search&amp;gt;
     &amp;lt;query&amp;gt;| makeresults
| eval PreviousMonth=strftime(relative_time(_time,"-1mon@mon"),"%B")
     &amp;lt;/query&amp;gt;
     &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
     &amp;lt;progress&amp;gt;
       &amp;lt;set token="tokPreviousMonth"&amp;gt;$result.PreviousMonth$&amp;lt;/set&amp;gt;
     &amp;lt;/progress&amp;gt;
   &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 May 2019 14:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-Text-on-Dashboard-description-Area/m-p/452415#M42405</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-05-01T14:21:13Z</dc:date>
    </item>
  </channel>
</rss>

