<?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 add timerange values to panel content? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172270#M10636</link>
    <description>&lt;P&gt;Somesoni2 were you ever able to get the issue fixed with it not always updating when the time is changed? What you have here is exactly what I need but I need to have it fully working. Also another note is that this seems to have broken in 6.2.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Nov 2014 17:26:46 GMT</pubDate>
    <dc:creator>MattZerfas</dc:creator>
    <dc:date>2014-11-06T17:26:46Z</dc:date>
    <item>
      <title>How to add timerange values to panel content?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172265#M10631</link>
      <description>&lt;P&gt;Has anyone successfully taken the time range values from a timerange picker and passed the human readable format into the title or contents? For example I have a TRP and a single value panel that shows a simple count and then the after label is: "between $time.earliest$ and $time.latest$". This effectively just passes the range i.e. for last 7 days it would read "between -7d@h and now but" would like to see the actual dates. Any ideas on how to do this in simple xml?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 01:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172265#M10631</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2014-08-06T01:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add timerange values to panel content?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172266#M10632</link>
      <description>&lt;P&gt;What version of Splunk are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 17:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172266#M10632</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-06T17:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add timerange values to panel content?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172267#M10633</link>
      <description>&lt;P&gt;I am on 6.1.2&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 17:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172267#M10633</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2014-08-06T17:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add timerange values to panel content?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172268#M10634</link>
      <description>&lt;P&gt;See if this works for you. (run anywhere example)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;ErrorWarningDistribution&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="False"&amp;gt;
    &amp;lt;input type="time"&amp;gt;
        &amp;lt;default&amp;gt;Yesterday&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="title" id="field2"&amp;gt;
      &amp;lt;selectFirstChoice&amp;gt;true&amp;lt;/selectFirstChoice&amp;gt;
      &amp;lt;populatingSearch fieldForValue="title" fieldForLabel="title"&amp;gt;
        &amp;lt;![CDATA[
| gentimes start=-1 | addinfo | eval title="between '".strftime(info_min_time,"%F %T")."' and '".strftime(info_max_time,"%F %T")."'"]]&amp;gt;
      &amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;html id="field3"&amp;gt;
&amp;lt;style&amp;gt;
.input#field2
{
display:none;
}
&amp;lt;/style&amp;gt;      
    &amp;lt;/html&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;title&amp;gt;Showing report to period $title$&amp;lt;/title&amp;gt;
        &amp;lt;searchString&amp;gt;index=_internal log_level=*
          | chart count(eval(log_level="ERROR")) as ERROR 
          count(eval(log_level="WARN")) as WARNING over date_mday by sourcetype&amp;lt;/searchString&amp;gt; 
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;        
      &amp;lt;/chart&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>Wed, 06 Aug 2014 17:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172268#M10634</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-06T17:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to add timerange values to panel content?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172269#M10635</link>
      <description>&lt;P&gt;I guess this approach has a issue that the title is not getting updated after changing the time. I will see if I can get that part working.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 18:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172269#M10635</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-06T18:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add timerange values to panel content?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172270#M10636</link>
      <description>&lt;P&gt;Somesoni2 were you ever able to get the issue fixed with it not always updating when the time is changed? What you have here is exactly what I need but I need to have it fully working. Also another note is that this seems to have broken in 6.2.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 17:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172270#M10636</guid>
      <dc:creator>MattZerfas</dc:creator>
      <dc:date>2014-11-06T17:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to add timerange values to panel content?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172271#M10637</link>
      <description>&lt;P&gt;I use a single value panel to do this, and have the search results display the earliest and latest search times.  Try adding this to your dashboard, it should run anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
   &amp;lt;row&amp;gt;
      &amp;lt;panel&amp;gt;
         &amp;lt;single&amp;gt;
            &amp;lt;searchstring&amp;gt;|stats count | addinfo | eval startDate=strftime(info_min_time,"%m/%d/%y @ %l:%M%p") | eval endDate=strftime(info_max_time,"%m/%d/%y @ %l:%M%p") | eval searchTime=startDate+" to "+endDate | stats values(searchTime)&amp;lt;/searchstring&amp;gt;
            &amp;lt;earliestTime&amp;gt;$earliest$&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;$latest$&amp;lt;/latestTime&amp;gt;
            &amp;lt;option name="underLabel"&amp;gt;Is the time period of events in this search&amp;lt;/option&amp;gt;
         &amp;lt;/single&amp;gt;
      &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Nov 2014 18:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-timerange-values-to-panel-content/m-p/172271#M10637</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2014-11-06T18:15:55Z</dc:date>
    </item>
  </channel>
</rss>

