<?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 Time Picker into Query in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Time-Picker-into-Query/m-p/373100#M6109</link>
    <description>&lt;P&gt;I have a query where I'm using &lt;/P&gt;

&lt;P&gt;time() - _indextime,&lt;BR /&gt;
1. but I want to be using what the user has selected from time range picker&lt;BR /&gt;
2. if time picker local time is different from index time, how to make sure that is cordinated &amp;amp; used instead of what the server time.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 17:45:22 GMT</pubDate>
    <dc:creator>msachdeva3</dc:creator>
    <dc:date>2017-03-24T17:45:22Z</dc:date>
    <item>
      <title>Time Picker into Query</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Time-Picker-into-Query/m-p/373100#M6109</link>
      <description>&lt;P&gt;I have a query where I'm using &lt;/P&gt;

&lt;P&gt;time() - _indextime,&lt;BR /&gt;
1. but I want to be using what the user has selected from time range picker&lt;BR /&gt;
2. if time picker local time is different from index time, how to make sure that is cordinated &amp;amp; used instead of what the server time.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 17:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Time-Picker-into-Query/m-p/373100#M6109</guid>
      <dc:creator>msachdeva3</dc:creator>
      <dc:date>2017-03-24T17:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Time Picker into Query</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Time-Picker-into-Query/m-p/373101#M6110</link>
      <description>&lt;P&gt;Without seeing your full search, to see what exact calculations are being performed, I can only say that, you can use command &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Addinfo"&gt;addinfo&lt;/A&gt; to get the value from timerange picker to your search result. Example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd | addinfo | table _time info_min_time info_max_time 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The two (out of 4 total) fields that this command adds, &lt;CODE&gt;info_min_time&lt;/CODE&gt; which contains the &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;info_max_time&lt;/CODE&gt; contains the &lt;CODE&gt;latest&lt;/CODE&gt; value of time range picker. See this for more information on this command.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:21:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Time-Picker-into-Query/m-p/373101#M6110</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-24T18:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Time Picker into Query</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Time-Picker-into-Query/m-p/373102#M6111</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;now()&lt;/CODE&gt; instead of &lt;CODE&gt;time()&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Time-Picker-into-Query/m-p/373102#M6111</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-24T18:35:15Z</dc:date>
    </item>
  </channel>
</rss>

