<?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 lookups and kvstore in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194216#M55979</link>
    <description>&lt;P&gt;Great to hear that it is working for you now!&lt;/P&gt;

&lt;P&gt;From the defintion of the "time_field" in  &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf&lt;/A&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Used for temporal (time bounded) lookups. Specifies the name of the field in the lookup &lt;BR /&gt;
  table that represents the timestamp.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So the right logic is "_time = last_seen". &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:43:02 GMT</pubDate>
    <dc:creator>dgladkikh_splun</dc:creator>
    <dc:date>2020-09-28T18:43:02Z</dc:date>
    <item>
      <title>time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194204#M55967</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;We are having some problems defining a time-based kvstore lookup on Splunk 6.2.0.&lt;BR /&gt;
We tried defining a similar time_based csv lookup and it works!&lt;/P&gt;

&lt;H1&gt;kvstore time-based lookup definition&lt;/H1&gt;

&lt;P&gt;[timed_test_kv]&lt;BR /&gt;
collection = timed_test&lt;BR /&gt;
external_type = kvstore&lt;BR /&gt;
fields_list = _key,_time,username,ip,test_kv_user&lt;BR /&gt;
time_field = _time&lt;/P&gt;

&lt;H1&gt;timed_test collection definition (tried the two versions...)&lt;/H1&gt;

&lt;P&gt;[timed_test]&lt;BR /&gt;
enforceTypes = true&lt;BR /&gt;
field.kvs__time = time&lt;BR /&gt;
field.kvs_username = string&lt;BR /&gt;
field.kvs_ip = string&lt;BR /&gt;
field.kvs_test_kv_user = string&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;[timed_test]&lt;BR /&gt;
field.kvs__time = string&lt;BR /&gt;
field.kvs_username = string&lt;BR /&gt;
field.kvs_ip = string&lt;BR /&gt;
field.kvs_test_kv_user = string&lt;/P&gt;

&lt;H1&gt;collection content (via | inputlookup and created like this again when _time field was changed to string)&lt;/H1&gt;

&lt;P&gt;_time                               ip                username    test_kv_user&lt;BR /&gt;
2015-01-14 12:53:32     10.15.182.117   carva     test_user_1&lt;BR /&gt;
2015-01-14 12:53:42     10.15.182.117   carva     test_user_2&lt;BR /&gt;
2015-01-14 12:53:52     10.15.182.117   carva     test_user_3&lt;BR /&gt;
2015-01-14 12:54:02     10.15.182.117   carva     test_user_4&lt;BR /&gt;
2015-01-14 16:47:32     10.15.182.117   carva     test_user_5&lt;BR /&gt;
2015-01-14 16:47:42     10.15.182.117   carva     test_user_6&lt;BR /&gt;
2015-01-14 16:47:52     10.15.182.117   carva     test_user_7&lt;BR /&gt;
2015-01-14 16:48:02     10.15.182.117   carva     test_user_8&lt;BR /&gt;
2015-01-14 18:28:02     10.15.182.117   carva     test_user_9&lt;/P&gt;

&lt;H1&gt;csv time-based lookup definition&lt;/H1&gt;

&lt;P&gt;[timed_test]&lt;BR /&gt;
filename = timed_test.csv&lt;BR /&gt;
time_field = _time&lt;/P&gt;

&lt;H1&gt;csv file (via | inputlookup)&lt;/H1&gt;

&lt;P&gt;_time                                    ip                 username    test_temp_user&lt;BR /&gt;
2015-01-14 12:53:32     10.15.182.117   carva   test_user_1&lt;BR /&gt;
2015-01-14 12:53:42     10.15.182.117   carva   test_user_2&lt;BR /&gt;
2015-01-14 12:53:52     10.15.182.117   carva   test_user_3&lt;BR /&gt;
2015-01-14 12:54:02     10.15.182.117   carva   test_user_4&lt;BR /&gt;
2015-01-14 16:47:32     10.15.182.117   carva   test_user_5&lt;BR /&gt;
2015-01-14 16:47:42     10.15.182.117   carva   test_user_6&lt;BR /&gt;
2015-01-14 16:47:52     10.15.182.117   carva   test_user_7&lt;BR /&gt;
2015-01-14 16:48:02     10.15.182.117   carva   test_user_8&lt;BR /&gt;
2015-01-14 18:28:02     10.15.182.117   carva   test_user_9&lt;/P&gt;

&lt;P&gt;Via | Inputlookup the _time field appears parsed but all lookup versions were created with the same epoch times on the _time field.&lt;/P&gt;

&lt;P&gt;The lookup search query is the same (except the lookup name) but the last lookup field test_*_user appears empty on the kvstore version but not on the csv version.&lt;/P&gt;

&lt;P&gt;We've restarted Splunk each time each lookup was created (just to be sure &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ).&lt;/P&gt;

&lt;P&gt;I'm afraid we might be missing some parameter to make the kvstore time-based lookup work but the documentation doesn't say anything specific for the kvstores.&lt;/P&gt;

&lt;P&gt;Thank you, and sorry for the long text.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194204#M55967</guid>
      <dc:creator>joaopcarvalho</dc:creator>
      <dc:date>2020-09-28T18:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194205#M55968</link>
      <description>&lt;P&gt;How did you import values in KVStore collection? Could you check  your log for any errors / warnings? &lt;BR /&gt;
KVStore collection stores time values in Unit epoch format (numbers) - so my guess this can be just a formatting issue somewhere. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 17:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194205#M55968</guid>
      <dc:creator>dgladkikh_splun</dc:creator>
      <dc:date>2015-01-15T17:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194206#M55969</link>
      <description>&lt;P&gt;thank you for your reply.&lt;BR /&gt;
so, to test 'every' possibility we defined 6 different kvstore collections :&lt;BR /&gt;
 - one where the time field was a number with enforced_fields on.&lt;BR /&gt;
 - one where the time field was a number with enforced_fields off.&lt;BR /&gt;
 - one where the time field was a string with enforced_fields on.&lt;BR /&gt;
 - one where the time field was a string with enforced_fields off.&lt;BR /&gt;
 - one where the time field was a time with enforced_fields on.&lt;BR /&gt;
 - one where the time field was a time with enforced_fields off.&lt;BR /&gt;
then we defined 6 different time-based kvstore lookups with each collection defined above. the only parameters used were the time_field and the fields list. no time-based lookup limits defined. then we defined a time-based csv lookup with the same fields/structure as the collections. the next step was to populate the collections/csv with data from the index we inserted the same data on every collection/csv. we inserted a couple of lines, one with the time_field as an eval attribution of _time, other as a string value and as a number value. used input lookup to check the contents, everything ok. lookup permissions, global, read, etc...restarted splunk just to be sure. tried a query, with a lookup command to each lookup defined above but only the CSV version had the output field with a value...every other lookup had that field blank. updated our search head to 6.2.1 but i got the same result.&lt;BR /&gt;
do you know if there's  a working example of a time-based kvstore lookup on the web/doc?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194206#M55969</guid>
      <dc:creator>joaopcarvalho</dc:creator>
      <dc:date>2020-09-28T18:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194207#M55970</link>
      <description>&lt;P&gt;I looked again on your example and found one issue, the names of fields in the collections.conf, for example "field.kvs__time" should be "field._time" as everywhere else you are using "_time" as a field. &lt;BR /&gt;
I guess you just copied one of the examples from &lt;A href="http://dev.splunk.com/view/SP-CAAAEZJ" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAEZJ&lt;/A&gt; where we are talking about document with fields without kvs_X but after that using kvs_X fields. This is a bug in this example. &lt;BR /&gt;
Please take a look on the collections.conf.spec file &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Admin/Collectionsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Admin/Collectionsconf&lt;/A&gt; for more details. &lt;/P&gt;

&lt;P&gt;Hope that this will fix your issue. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:41:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194207#M55970</guid>
      <dc:creator>dgladkikh_splun</dc:creator>
      <dc:date>2020-09-28T18:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194208#M55971</link>
      <description>&lt;P&gt;oh, i see the big mistake. i read the documentation but i believe the examples were stronger than the previous text. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;for some reason i've understood all kv store fields should start with field.kvs_ (i thought it was strange but...you never know :)).&lt;/P&gt;

&lt;P&gt;one very strange thing is...before we defined that time-based keystore we defined a similar kvstore lookup just like that (defining field.kvs_something on the collection and working with the something field on the search query and on the lookup definition...) and it worked!&lt;/P&gt;

&lt;P&gt;i'll try that fix on monday. thank you very much for your patience and support.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2015 00:23:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194208#M55971</guid>
      <dc:creator>joaopcarvalho</dc:creator>
      <dc:date>2015-01-17T00:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194209#M55972</link>
      <description>&lt;P&gt;Yes, we will fix this documentation "confusion". &lt;BR /&gt;
Having string types for fields is not necessary, as everything in Splunk is a string in some sense and this will be default type when you will do outputlookup. I believe this is why everything worked for you before, because all your lookups were string-based. &lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2015 00:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194209#M55972</guid>
      <dc:creator>dgladkikh_splun</dc:creator>
      <dc:date>2015-01-17T00:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194210#M55973</link>
      <description>&lt;P&gt;ok, so if, in a stanza, we define:&lt;/P&gt;

&lt;P&gt;field.test&lt;/P&gt;

&lt;P&gt;it's the same as defining:&lt;/P&gt;

&lt;P&gt;field.test = string&lt;/P&gt;

&lt;P&gt;?&lt;/P&gt;

&lt;P&gt;in our searches we will use time-based kvstore lookups with the values for the time_field coming from the _time builtin field or the result of latest/earliest(_time) operations, that is, epoch time...what do you think should be the time of the time_field defined on the collections? number? time? it doesn't matter?&lt;/P&gt;

&lt;P&gt;thank you once again.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194210#M55973</guid>
      <dc:creator>joaopcarvalho</dc:creator>
      <dc:date>2020-09-28T18:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194211#M55974</link>
      <description>&lt;P&gt;Following your suggestion, i've tried the following:&lt;/P&gt;

&lt;H1&gt;collection definition&lt;/H1&gt;

&lt;P&gt;[cdp_proxy]&lt;BR /&gt;
enforceTypes = true&lt;BR /&gt;
field.src_ip = string&lt;BR /&gt;
field.username = string&lt;BR /&gt;
field.first_seen = time&lt;BR /&gt;
field.last_seen = time&lt;/P&gt;

&lt;H1&gt;kvstore lookup definition&lt;/H1&gt;

&lt;P&gt;[cdp_proxy]&lt;BR /&gt;
collection = cdp_proxy&lt;BR /&gt;
external_type = kvstore&lt;BR /&gt;
fields_list = _key, src_ip, username, first_seen, last_seen&lt;/P&gt;

&lt;H1&gt;time-based kvstore lookup definition&lt;/H1&gt;

&lt;P&gt;[cdp_proxy_time]&lt;BR /&gt;
collection = cdp_proxy&lt;BR /&gt;
external_type = kvstore&lt;BR /&gt;
fields_list = _key, src_ip, username, first_seen, last_seen&lt;BR /&gt;
time_field = last_seen&lt;/P&gt;

&lt;H1&gt;| inputlookup cdp_proxy (kvstore lookup)&lt;/H1&gt;

&lt;P&gt;last_seen   src_ip  username&lt;BR /&gt;
1421664188  10.15.182.115   carvajp6&lt;BR /&gt;
1421664638  10.15.182.115   carvajp6 &lt;/P&gt;

&lt;H1&gt;| inputlookup cdp_proxy_time (time-based kvstore lookup)&lt;/H1&gt;

&lt;P&gt;last_seen   src_ip  username&lt;BR /&gt;
1421664188  10.15.182.115   carvajp6&lt;BR /&gt;
1421664638  10.15.182.115   carvajp6&lt;/P&gt;

&lt;H1&gt;kvstore lookup command&lt;/H1&gt;

&lt;P&gt;...&lt;BR /&gt;
| lookup cdp_proxy src_ip username output last_seen as active_session&lt;/P&gt;

&lt;H1&gt;time-based kvstore lookup command&lt;/H1&gt;

&lt;P&gt;...&lt;BR /&gt;
| lookup cdp_proxy_time src_ip username output last_seen as active_session&lt;/P&gt;

&lt;P&gt;result: doing the same search and a similar lookup command, the time-based kvstore case has a null active_session field while the kvstore case has the two lookup values there.&lt;/P&gt;

&lt;P&gt;this is strange. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194211#M55974</guid>
      <dc:creator>joaopcarvalho</dc:creator>
      <dc:date>2020-09-28T18:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194212#M55975</link>
      <description>&lt;P&gt;I meant that you do not need to define all used fields in collections.conf, so "field.test = string" is equal to not having this field defined at all. This is mostly true for case when you use this collection only in lookup. Defining "field.test = string" is useful only when you also can modify your data from JavaScript (REST endpoints) - so you will have protection that nobody will try to put number in this field. &lt;/P&gt;

&lt;P&gt;I would suggest you to use time. At current moment time field is stored and implemented as number type, but because this can be changed in future or maybe we will handle it differently - I would suggest to keep type "time".&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 19:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194212#M55975</guid>
      <dc:creator>dgladkikh_splun</dc:creator>
      <dc:date>2015-01-20T19:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194213#M55976</link>
      <description>&lt;P&gt;Why strange? &lt;/P&gt;

&lt;P&gt;Does it actually means that you just don't have any records after "1421664188" and "1421664638" for src_ip = "10.15.182.115"? &lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 20:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194213#M55976</guid>
      <dc:creator>dgladkikh_splun</dc:creator>
      <dc:date>2015-01-20T20:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194214#M55977</link>
      <description>&lt;P&gt;that's strange because the index has records on the defined time field after those dates...and a time-based csv lookup with the same structure and info work as expected.&lt;/P&gt;

&lt;P&gt;i've opened a support case with Splunk and as soon as they reply i'll update this page.&lt;/P&gt;

&lt;P&gt;thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 10:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194214#M55977</guid>
      <dc:creator>joaopcarvalho</dc:creator>
      <dc:date>2015-01-21T10:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194215#M55978</link>
      <description>&lt;P&gt;I think we manage to understand why it didn't worked, but it's still strange as time-based csv lookups worked that way (or it was all a big coincidence).&lt;/P&gt;

&lt;P&gt;our problem was that, despite you define the time_field as last_seen...the match between the events and the lookup is always done with _time = last_seen on the lookup....and not last_seen = last_seen as we might expect.&lt;/P&gt;

&lt;P&gt;well, we have a time-based kvstore lookup working.&lt;/P&gt;

&lt;P&gt;thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194215#M55978</guid>
      <dc:creator>joaopcarvalho</dc:creator>
      <dc:date>2020-09-28T18:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194216#M55979</link>
      <description>&lt;P&gt;Great to hear that it is working for you now!&lt;/P&gt;

&lt;P&gt;From the defintion of the "time_field" in  &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf&lt;/A&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Used for temporal (time bounded) lookups. Specifies the name of the field in the lookup &lt;BR /&gt;
  table that represents the timestamp.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So the right logic is "_time = last_seen". &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194216#M55979</guid>
      <dc:creator>dgladkikh_splun</dc:creator>
      <dc:date>2020-09-28T18:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194217#M55980</link>
      <description>&lt;H1&gt;This is the solution found by joaopcarvalho that works:&lt;/H1&gt;

&lt;P&gt;I think we manage to understand why it didn't worked, but it's still strange as time-based csv lookups worked that way (or it was all a big coincidence).&lt;/P&gt;

&lt;P&gt;our problem was that, despite you define the time_field as last_seen...the match between the events and the lookup is always done with _time = last_seen on the lookup....and not last_seen = last_seen as we might expect.&lt;/P&gt;

&lt;P&gt;well, we have a time-based kvstore lookup working now. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194217#M55980</guid>
      <dc:creator>ntbahriti_splun</dc:creator>
      <dc:date>2020-09-28T18:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194218#M55981</link>
      <description>&lt;P&gt;Can someone post a final and working example  for using kvstore for time based lookup?  Maybe splunk should post it on their blog or  in their documentation? &lt;/P&gt;

&lt;P&gt;It seems that the confusing issues are the following:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;  when we populate the lookup table,  should we write out _time  or  convert(_time)?&lt;/LI&gt;
&lt;LI&gt; in kvstore collection,  do we need to specify the type of the time field or not? &lt;/LI&gt;
&lt;LI&gt; If yes to 1,  should it be specified as  number or string or time. &lt;/LI&gt;
&lt;LI&gt; in lookup definition,  should we leave the format empty  or  else. &lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194218#M55981</guid>
      <dc:creator>kundeng</dc:creator>
      <dc:date>2020-09-29T07:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194219#M55982</link>
      <description>&lt;P&gt;Did you get answers from splunk support?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 20:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194219#M55982</guid>
      <dc:creator>kundeng</dc:creator>
      <dc:date>2015-11-30T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194220#M55983</link>
      <description>&lt;P&gt;Sooo, after over three years when you're searching for "time-based kv store lookups", you'll find this thread. Because the answer isn't really clear what you need to define (and more interesting, what not), I'll give you an example because we had the exact same issue. The issue is that Splunk doesn't recognise the time field as being a time format.&lt;/P&gt;

&lt;P&gt;So, what you want is something like this. I've taken the examples from above. Feel free to upvote if you run into the same issues and think this helps. Because it did for us atleast.&lt;/P&gt;

&lt;P&gt;I'd recommend storing the time as epoch (standard).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;KV store lookup definition:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cdp_proxy]
collection = cdp_proxy
external_type = kvstore
fields_list = _key, src_ip, username, time
time_field = time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd rather &lt;STRONG&gt;not&lt;/STRONG&gt; name the field in the KV store "_time".&lt;/P&gt;

&lt;P&gt;In the collection definitions (collections.conf):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cdp_proxy]
enforceTypes = true
field.time = time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The "field.time" is actually the field followed by its name and then defined as the type "time". Just refer to the collections.conf spec file for further information.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 14:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194220#M55983</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-05-23T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: time-based lookups and kvstore</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194221#M55984</link>
      <description>&lt;P&gt;Thank you @skalliger!!&lt;BR /&gt;
I also dropped some feedback on &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Knowledge/Defineatime-basedlookupinSplunkWeb"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Knowledge/Defineatime-basedlookupinSplunkWeb&lt;/A&gt; so hopefully that will help as well.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 21:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-based-lookups-and-kvstore/m-p/194221#M55984</guid>
      <dc:creator>pmeyerson</dc:creator>
      <dc:date>2020-02-10T21:22:12Z</dc:date>
    </item>
  </channel>
</rss>

