<?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: time-based inputookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36311#M8074</link>
    <description>&lt;P&gt;No up vote? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2011 12:57:44 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2011-02-01T12:57:44Z</dc:date>
    <item>
      <title>time-based inputookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36306#M8069</link>
      <description>&lt;P&gt;I have a search that is exported to a csv file which is also set up to be a lookup table. &lt;/P&gt;

&lt;P&gt;I can call the lookup table just fine and see all the contents of the csv file by using the following search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup po1usertable 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I am trying to do though is be able to specify a time range on the search so that the results which get returned match the time stamp range that is in every row of the csv file.&lt;/P&gt;

&lt;P&gt;There is a timestamp that gets created before exporting the lookup table for each row based off the following eval statement. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| convert timeformat="%Y%m%d%H%M%S" ctime(time) AS thetime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;example: &lt;CODE&gt;20110122221814&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In my props file i have the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[po1usertable]
filename = po1usertable.csv
time_field = thetime
time_format = "%Y%m%d%H%M%S"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However when specifying a time range it does not seem to be working as i get the entire csv contents in the results.&lt;/P&gt;

&lt;P&gt;Im not sure if im doing something wrong or if Im misunderstanding the point of a time-based lookup.&lt;/P&gt;

&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 04:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36306#M8069</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2011-02-01T04:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: time-based inputookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36307#M8070</link>
      <description>&lt;P&gt;The 'inputlookup' command is different than the 'lookup' command.  &lt;/P&gt;

&lt;P&gt;The former just inputs all the values from a given lookup, while the latter will actually 'look up' k/v pairs based on given fields in events.&lt;/P&gt;

&lt;P&gt;Time-based lookups only apply to the 'lookup' command.&lt;/P&gt;

&lt;P&gt;If you want to get the last 15 minutes of a lookup's data, try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| inputlookup po1usertable | where thetime &amp;gt; now()-900 | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Feb 2011 04:44:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36307#M8070</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-02-01T04:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: time-based inputookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36308#M8071</link>
      <description>&lt;P&gt;Thanks for the info I did not know that.  So I take it there is no way to use the time picker for selecting the time range and it has to be specified in the search?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 05:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36308#M8071</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2011-02-01T05:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: time-based inputookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36309#M8072</link>
      <description>&lt;P&gt;Seems to me that if you need to do this, you should be indexing the file, not using it as a lookup?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 10:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36309#M8072</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-01T10:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: time-based inputookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36310#M8073</link>
      <description>&lt;P&gt;meh, there are some good reasons to use lookups like this, at least until a future iteration of summary indexing fits those use cases.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 12:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36310#M8073</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-02-01T12:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: time-based inputookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36311#M8074</link>
      <description>&lt;P&gt;No up vote? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 12:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36311#M8074</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-02-01T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: time-based inputookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36312#M8075</link>
      <description>&lt;P&gt;Heres one that can be controlled using the time picker..&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| inputlookup&lt;BR /&gt;
vladimir_inputlookup_timestamps.csv |&lt;BR /&gt;
eval &lt;EM&gt;time=strptime(date, "%Y-%m-%d")&lt;BR /&gt;
| addinfo | eval&lt;BR /&gt;
info_max_time=if(info_max_time="+Infinity",9999999999,info_max_time) | where _time &amp;gt;= info_min_time AND&lt;BR /&gt;
_time &amp;lt;= info_max_time | fields - info&lt;/EM&gt;* _time&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-inputookup/m-p/36312#M8075</guid>
      <dc:creator>vskoryk_splunk</dc:creator>
      <dc:date>2020-09-28T16:17:04Z</dc:date>
    </item>
  </channel>
</rss>

