<?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 load a dashboard with a default time range of &amp;quot;month to date&amp;quot; in Splunk? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157441#M9703</link>
    <description>&lt;P&gt;You need to add a token to your input and apply it to the earliest Time latest Time elements for each panel. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;form&amp;gt;
        &amp;lt;input type="time" token="timefield1"&amp;gt;
          &amp;lt;label&amp;gt;Range&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;
            &amp;lt;earliestTime&amp;gt;-30d@d&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
          &amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
      &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;chart&amp;gt;
            &amp;lt;title&amp;gt;CPU Usage&amp;lt;/title&amp;gt;
            &amp;lt;searchString&amp;gt;index=os sourcetype=performance | timechart avg(CPU) by host&amp;lt;/searchString&amp;gt;
            &amp;lt;earliestTime&amp;gt;$timefield1.earliest$&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;$timefield1.latest$&amp;lt;/latestTime&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>Mon, 15 Jun 2015 17:43:18 GMT</pubDate>
    <dc:creator>mkemmerer</dc:creator>
    <dc:date>2015-06-15T17:43:18Z</dc:date>
    <item>
      <title>How to load a dashboard with a default time range of "month to date" in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157440#M9702</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I need to load a dashboard as "month to date" , I tried with below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
  &amp;lt;label/&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliestTime&amp;gt;-30d@d&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I need to load as month to date, can any one help me on this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Snehal &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 16:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157440#M9702</guid>
      <dc:creator>snehalk</dc:creator>
      <dc:date>2015-06-15T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a dashboard with a default time range of "month to date" in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157441#M9703</link>
      <description>&lt;P&gt;You need to add a token to your input and apply it to the earliest Time latest Time elements for each panel. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;form&amp;gt;
        &amp;lt;input type="time" token="timefield1"&amp;gt;
          &amp;lt;label&amp;gt;Range&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;
            &amp;lt;earliestTime&amp;gt;-30d@d&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
          &amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
      &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;chart&amp;gt;
            &amp;lt;title&amp;gt;CPU Usage&amp;lt;/title&amp;gt;
            &amp;lt;searchString&amp;gt;index=os sourcetype=performance | timechart avg(CPU) by host&amp;lt;/searchString&amp;gt;
            &amp;lt;earliestTime&amp;gt;$timefield1.earliest$&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;$timefield1.latest$&amp;lt;/latestTime&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>Mon, 15 Jun 2015 17:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157441#M9703</guid>
      <dc:creator>mkemmerer</dc:creator>
      <dc:date>2015-06-15T17:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a dashboard with a default time range of "month to date" in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157442#M9704</link>
      <description>&lt;P&gt;Hello mkemmerer,&lt;/P&gt;

&lt;P&gt;Thanks for reply, for last month it working fine, but what I need is, it should be "month to date" by default and not "last month". &lt;/P&gt;

&lt;P&gt;Could you please guide me on this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Snehal &lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157442#M9704</guid>
      <dc:creator>snehalk</dc:creator>
      <dc:date>2015-06-16T14:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a dashboard with a default time range of "month to date" in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157443#M9705</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;

&lt;P&gt;I used below time range to get "month to date" by default.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
  &amp;lt;label/&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliestTime&amp;gt;@mon&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thannks for your support&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 11:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-load-a-dashboard-with-a-default-time-range-of-quot-month/m-p/157443#M9705</guid>
      <dc:creator>snehalk</dc:creator>
      <dc:date>2015-07-20T11:05:15Z</dc:date>
    </item>
  </channel>
</rss>

