<?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: Issue on Dropdown timepicker on Dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-on-Dropdown-timepicker-on-Dashboard/m-p/433895#M28600</link>
    <description>&lt;P&gt;Thanks! This works the way I want it. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 01:07:48 GMT</pubDate>
    <dc:creator>iancorrea</dc:creator>
    <dc:date>2019-06-20T01:07:48Z</dc:date>
    <item>
      <title>Issue on Dropdown timepicker on Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-on-Dropdown-timepicker-on-Dashboard/m-p/433893#M28598</link>
      <description>&lt;P&gt;I'm having problem on the eval part on join subsearch. When i run this search, I've got this result &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;"Error in 'eval' command: The expression is malformed. Expected )."&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I'm using Dropdown on the dashboard as my timepicker so i have multiple tokens. Thanks&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...//my base search//... earliest=$_emon$/$_eday$/$_eyear$:00:00:00 latest=$_lmon$/$_lday$/$_lyear$:23:59:59 

| join type=outer
        [
            search ...//another base search//... latest="+2mon" earliest=[| gentimes start=-1|eval new = relative_time($_emon$/$_eday$/$_eyear$:00:00:00 ,"-2228000")| return $new]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I'm using default time picker and use only one token $time.earliest$, my search is okay. Is the issue on this was having multiple tokens when selecting time? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 05:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-on-Dropdown-timepicker-on-Dashboard/m-p/433893#M28598</guid>
      <dc:creator>iancorrea</dc:creator>
      <dc:date>2019-06-19T05:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Dropdown timepicker on Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-on-Dropdown-timepicker-on-Dashboard/m-p/433894#M28599</link>
      <description>&lt;P&gt;Hi, @iancorrea &lt;/P&gt;

&lt;P&gt;Let's check how to use the relative_time function.&lt;BR /&gt;
You must specify UNIX time in the first argument.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/DateandTimeFunctions"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/DateandTimeFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For the problem you are facing, converting to UNIX time with strptime function first will give you the expected result.&lt;/P&gt;

&lt;P&gt;ex) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval etime = strptime("$_emon$/$_eday$/$_eyear$:00:00:00", "%m/%d/%Y:%H:%M:%S")
| eval new = relative_time(etime,"-2228000")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jun 2019 09:45:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-on-Dropdown-timepicker-on-Dashboard/m-p/433894#M28599</guid>
      <dc:creator>elle118</dc:creator>
      <dc:date>2019-06-19T09:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Dropdown timepicker on Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-on-Dropdown-timepicker-on-Dashboard/m-p/433895#M28600</link>
      <description>&lt;P&gt;Thanks! This works the way I want it. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 01:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-on-Dropdown-timepicker-on-Dashboard/m-p/433895#M28600</guid>
      <dc:creator>iancorrea</dc:creator>
      <dc:date>2019-06-20T01:07:48Z</dc:date>
    </item>
  </channel>
</rss>

