<?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: Why is the dashboard time range picker not populating the last 10 days to now() ? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332132#M21533</link>
    <description>&lt;P&gt;just one &lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 19:45:56 GMT</pubDate>
    <dc:creator>vemurisurya</dc:creator>
    <dc:date>2018-01-24T19:45:56Z</dc:date>
    <item>
      <title>Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332126#M21527</link>
      <description>&lt;P&gt;In my dashboard, I am getting the Submit_Date max and min values which are taken from the timepicker. It select the date or time range. However, when it selects last 10 days to now, it's not working. Instead of latest &lt;CODE&gt;now()&lt;/CODE&gt;, it's populating only &lt;CODE&gt;now&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where Submit_Date &amp;gt;=$timer1.earliest$ AND Submit_Date &amp;lt;=$timer1.latest$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jan 2018 21:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332126#M21527</guid>
      <dc:creator>vemurisurya</dc:creator>
      <dc:date>2018-01-23T21:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332127#M21528</link>
      <description>&lt;P&gt;Is the timer1 also used as time range in your dashboard search OR you use some different timerange picker for it?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 21:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332127#M21528</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-23T21:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332128#M21529</link>
      <description>&lt;P&gt;All the panels are using same time picker&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 02:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332128#M21529</guid>
      <dc:creator>vemurisurya</dc:creator>
      <dc:date>2018-01-24T02:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332129#M21530</link>
      <description>&lt;P&gt;try to add these tokens in header of tabel/panel to know what values are being set..&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;title&amp;gt;earliest=$timer1.earliest$ and latest=$timer1.latest$&amp;lt;/title&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 04:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332129#M21530</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-24T04:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332130#M21531</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
 Here in the  problem, in my panels  time fields are different  i panel has Submit_Date other one Create_date other has closed_date &lt;BR /&gt;
_time and the filed dates are different &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332130#M21531</guid>
      <dc:creator>vemurisurya</dc:creator>
      <dc:date>2020-09-29T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332131#M21532</link>
      <description>&lt;P&gt;So do you have two time range picker in your dashboard or just one?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:41:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332131#M21532</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-24T19:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332132#M21533</link>
      <description>&lt;P&gt;just one &lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332132#M21533</guid>
      <dc:creator>vemurisurya</dc:creator>
      <dc:date>2018-01-24T19:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332133#M21534</link>
      <description>&lt;P&gt;&lt;CODE&gt;| eval now=now() | where Submit_Date &amp;gt;= "$timer1.earliest$" AND Submit_Date &amp;lt;= "$timer1.latest$"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;this hack is working for me &lt;CODE&gt;|eval now=now()&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:47:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332133#M21534</guid>
      <dc:creator>vemurisurya</dc:creator>
      <dc:date>2018-01-24T19:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332134#M21535</link>
      <description>&lt;P&gt;Assuming you want to use same time range picket that you've in your dashboard, to filter events by different date fields, try like this (assuming your date fields have human-readable timestamp with format &lt;CODE&gt;%Y-%m-%d %H:%M:%S&lt;/CODE&gt;. If it's different, update line 2 with that)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search
| eval filterDateEpoch=strptime('Submit_Date',"%Y-%m-%d %H:%M:%S")
| addinfo 
| where filterDateEpoch&amp;gt;=info_min_time AND Submit_Date &amp;lt;=info_max_time | fields - info_min_time info_max_time info_search_time info_sid filterDateEpoch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The addinfo command add current search's time range (earliest and latest) as field info_min_time (i.e. earliest) and info_max_time (i.e. latest) with value in epoch format to all events. Line two will convert your date field to epoch value so that it can be compared.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332134#M21535</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T17:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the dashboard time range picker not populating the last 10 days to now() ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332135#M21536</link>
      <description>&lt;P&gt;@vemurisurya, Submit_Date seems to be a date field from event. Does it contain epoch time or string time? &lt;/P&gt;

&lt;P&gt;You would need to make sure Submit_Date to epoch time, if not use &lt;CODE&gt;strptime()&lt;/CODE&gt; to convert to epoch time. Also, if you are using Time Picker input for earliest and latest tokens you have to make sure it returns epoch time as well?&lt;/P&gt;

&lt;P&gt;Refer to the following answer using earliest and latest tokens from Time Picker input as epoch time: &lt;A href="https://answers.splunk.com/answers/578984/running-one-of-two-searches-based-on-time-picker-s.html"&gt;https://answers.splunk.com/answers/578984/running-one-of-two-searches-based-on-time-picker-s.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-dashboard-time-range-picker-not-populating-the-last/m-p/332135#M21536</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-24T19:56:51Z</dc:date>
    </item>
  </channel>
</rss>

