<?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 eval time from timepicker and use it in search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415039#M190986</link>
    <description>&lt;P&gt;Thanks! Can you explain what this part is doing "| fields - info_*"?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 14:30:58 GMT</pubDate>
    <dc:creator>kimberlytrayson</dc:creator>
    <dc:date>2019-07-30T14:30:58Z</dc:date>
    <item>
      <title>How to eval time from timepicker and use it in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415034#M190981</link>
      <description>&lt;P&gt;I need to eval &lt;STRONG&gt;time in hours between now and earliest time&lt;/STRONG&gt; from timepicker to use it in search.&lt;BR /&gt;
e.g. if timepicker set to “&lt;EM&gt;last 24 hours&lt;/EM&gt;” - evaluated time should be 24h, for “&lt;EM&gt;last 2 days&lt;/EM&gt;” - 48h, etc. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 10:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415034#M190981</guid>
      <dc:creator>kimberlytrayson</dc:creator>
      <dc:date>2019-07-26T10:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to eval time from timepicker and use it in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415035#M190982</link>
      <description>&lt;P&gt;@kimberlytrayson &lt;/P&gt;

&lt;P&gt;You can try &lt;CODE&gt;addinfo&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;info_min_time = The earliest time boundary for the search.
info_max_time = The latest time boundary for the search.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/addinfo"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/addinfo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 10:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415035#M190982</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-07-26T10:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to eval time from timepicker and use it in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415036#M190983</link>
      <description>&lt;P&gt;Sorry, it will be epoch time, right?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 11:21:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415036#M190983</guid>
      <dc:creator>kimberlytrayson</dc:creator>
      <dc:date>2019-07-26T11:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to eval time from timepicker and use it in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415037#M190984</link>
      <description>&lt;P&gt;Yes, @kimberlytrayson,  &lt;/P&gt;

&lt;P&gt;Please check below link for time picker label.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/633356/whats-the-token-name-for-the-time-pickers-display.html"&gt;https://answers.splunk.com/answers/633356/whats-the-token-name-for-the-time-pickers-display.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/682095/how-to-display-the-label-from-the-time-field-token.html"&gt;https://answers.splunk.com/answers/682095/how-to-display-the-label-from-the-time-field-token.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&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>Fri, 26 Jul 2019 11:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415037#M190984</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-07-26T11:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to eval time from timepicker and use it in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415038#M190985</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | addinfo | eval hours_between_now_and_earliest = round(((now() - info_min_time) / 60 / 60), 2) | fields - info_*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415038#M190985</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-26T20:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to eval time from timepicker and use it in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415039#M190986</link>
      <description>&lt;P&gt;Thanks! Can you explain what this part is doing "| fields - info_*"?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 14:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415039#M190986</guid>
      <dc:creator>kimberlytrayson</dc:creator>
      <dc:date>2019-07-30T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to eval time from timepicker and use it in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415040#M190987</link>
      <description>&lt;P&gt;It is getting rid of the &lt;CODE&gt;info_*&lt;/CODE&gt; fields that were added by the call to &lt;CODE&gt;addinfo&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 16:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415040#M190987</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-30T16:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to eval time from timepicker and use it in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415041#M190988</link>
      <description>&lt;P&gt;There was a typo; I was using &lt;CODE&gt;earliest&lt;/CODE&gt; when I should have been using &lt;CODE&gt;info_min_time&lt;/CODE&gt;.  I edited my answer and fixed it.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 16:46:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eval-time-from-timepicker-and-use-it-in-search/m-p/415041#M190988</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-30T16:46:09Z</dc:date>
    </item>
  </channel>
</rss>

