<?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 use timepicker from a CSV lookup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375725#M110391</link>
    <description>&lt;P&gt;Sorry, it works as what I expected.  Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 16:26:14 GMT</pubDate>
    <dc:creator>splunkrocks2014</dc:creator>
    <dc:date>2018-02-15T16:26:14Z</dc:date>
    <item>
      <title>How to use timepicker from a CSV lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375721#M110387</link>
      <description>&lt;P&gt;I found the similar post &lt;A href="https://answers.splunk.com/answers/223364/how-to-use-timepicker-on-csv.html"&gt;here&lt;/A&gt;, but the solution doesn't seem to be working.  I have a CSV file with a timestamp field that looks as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my_time      name      count
----------   -----     -----
2017-10-13   abc       10
2017-11-13   xyz       20 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My search looks this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup mytable.csv | eval _time=strptime(my_time,"%Y-%m-%d")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No matter how I change the time range from the search window, it doesn't change the result.  Any clues?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 22:23:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375721#M110387</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2018-02-14T22:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timepicker from a CSV lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375722#M110388</link>
      <description>&lt;P&gt;Check out the bottom answer on this &lt;A href="https://answers.splunk.com/answers/617407/how-to-configure-a-time-based-lookup-temporal-look.html"&gt;recent answers post&lt;/A&gt; to see if it explains why what you're trying isn't working.&lt;/P&gt;

&lt;P&gt;Adding the pertinent text of the answer in question to make it easier to find:&lt;/P&gt;

&lt;P&gt;Lookups, even time-based lookups, don't (by default) enable searching by using the timepicker.&lt;/P&gt;

&lt;P&gt;However, if you have a time in your lookup file, you can somewhat fake what you may be looking for with a search like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup server_purposes
| eval _time=strptime(start_time, "%Y-%m-%d")
| addinfo
| where _time&amp;gt;=info_min_time and _time&amp;lt;info_max_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;addinfo&lt;/CODE&gt; command adds your earliest/latest times as chosen by the timepicker and puts them in the fields &lt;CODE&gt;info_min_time&lt;/CODE&gt; and &lt;CODE&gt;info_max_time&lt;/CODE&gt;, after which you can use the &lt;CODE&gt;where&lt;/CODE&gt; command to search for &lt;CODE&gt;_time&lt;/CODE&gt; values within that range.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 22:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375722#M110388</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-14T22:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timepicker from a CSV lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375723#M110389</link>
      <description>&lt;P&gt;That's a time-based lookup, but this is not what I am looking for.  &lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375723#M110389</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2018-02-15T15:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timepicker from a CSV lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375724#M110390</link>
      <description>&lt;P&gt;That's what the subject referenced, but I don't think that's actually what the poster wanted, and my answer addressed what I think your need is. &lt;/P&gt;

&lt;P&gt;I've added that answer to my original answer here as well.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375724#M110390</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-15T15:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timepicker from a CSV lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375725#M110391</link>
      <description>&lt;P&gt;Sorry, it works as what I expected.  Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375725#M110391</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2018-02-15T16:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timepicker from a CSV lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375726#M110392</link>
      <description>&lt;P&gt;Very helpful. Explained in more detail here: &lt;A href="https://www.splunk.com/blog/2016/09/16/i-cant-make-my-time-range-picker-pick.html"&gt;https://www.splunk.com/blog/2016/09/16/i-cant-make-my-time-range-picker-pick.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 17:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375726#M110392</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2018-10-23T17:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timepicker from a CSV lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375727#M110393</link>
      <description>&lt;P&gt;I have same problem but can't get the solution I need..&lt;BR /&gt;
I have indexed data with fields conferenceID "start Time" "End Time" I basically wants to get output by taking "Start Time" when ever I search using time-picker.&lt;BR /&gt;
problem: it is always taking _time and giving wrong results but after below query it gives 0 results.&lt;BR /&gt;
 index=test sourcetype=webex "testinc" | eval _time=strptime("Start Time","%Y-%m-%d")&lt;BR /&gt;
| sort - _time&lt;BR /&gt;
| addinfo&lt;BR /&gt;
| where _time&amp;gt;=info_min_time AND (_time&amp;lt;=info_max_time OR info_max_time="+Infinity")&lt;BR /&gt;
|table ConferenceID  "Start Time" "End Time"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timepicker-from-a-CSV-lookup/m-p/375727#M110393</guid>
      <dc:creator>splunkuseradmin</dc:creator>
      <dc:date>2020-09-30T00:58:34Z</dc:date>
    </item>
  </channel>
</rss>

