<?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 do I merge lookup table and index results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324032#M96716</link>
    <description>&lt;P&gt;You would need to setup time-based lookup. See this for more information.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/Configureatime-boundedlookup"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/Configureatime-boundedlookup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Your lookup should have a time field with epoch format value (not string). Once it's configured, you just need to do a &lt;CODE&gt;|lookup&lt;/CODE&gt; (no joins required).&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2017 15:36:29 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-12-07T15:36:29Z</dc:date>
    <item>
      <title>How do I merge lookup table and index results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324030#M96714</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;
To start with, I have a lookup table like so.&lt;BR /&gt;
keyValue.csv&lt;BR /&gt;
&lt;CODE&gt;date           key         value&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/01/2017     EE       Enterprise Edition&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/03/2017     EE       Edited Edition&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/05/2017     EE       Epsilon Edition&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Now, we see that the value for the key &lt;CODE&gt;EE&lt;/CODE&gt; changes twice.&lt;BR /&gt;
For events coming from an index, I have _time and a field called 'Name'.&lt;BR /&gt;
Like this.&lt;BR /&gt;
index=event_container&lt;BR /&gt;
&lt;CODE&gt;_time           Name&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/12/2016       EE&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/02/2017       EE&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/04/2017       EE&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/12/2017       EE&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What I'm looking to do is, retrieve the value from the lookup for the "Name" in the event, and display it along side the Name, but with the time in consideration. Hence:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;_time           Name       Description&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/12/2016       EE     (whatever previous value if it existed)&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/02/2017       EE     Enterprise Edition&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/04/2017       EE     Edited Edition&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;01/12/2017       EE     Epsilon Edition&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;what I have so far is: &lt;CODE&gt;index=event_container | lookup keyValue.csv date key value | join type=inner _time | table _time, Name, value | rename value as Description&lt;/CODE&gt;&lt;BR /&gt;
Thank you.&lt;BR /&gt;
-SnipeDown21&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324030#M96714</guid>
      <dc:creator>snipedown21</dc:creator>
      <dc:date>2020-09-29T17:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge lookup table and index results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324031#M96715</link>
      <description>&lt;P&gt;Hi @snipedown21,&lt;/P&gt;

&lt;P&gt;I am bit confused about what you want to achieve because you have mentioned that &lt;CODE&gt;Name&lt;/CODE&gt; and &lt;CODE&gt;_time&lt;/CODE&gt; field should be match with lookup table &lt;CODE&gt;key&lt;/CODE&gt; and &lt;CODE&gt;date&lt;/CODE&gt; fields then your output will be something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time Name Description
01/12/2016 EE NULL
01/01/2017 EE Enterprise Edition
01/03/2017 EE Edited Edition
01/05/2017 EE Epsilon Edition
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you please clarify on this?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 14:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324031#M96715</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-07T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge lookup table and index results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324032#M96716</link>
      <description>&lt;P&gt;You would need to setup time-based lookup. See this for more information.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/Configureatime-boundedlookup"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/Configureatime-boundedlookup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Your lookup should have a time field with epoch format value (not string). Once it's configured, you just need to do a &lt;CODE&gt;|lookup&lt;/CODE&gt; (no joins required).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:36:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324032#M96716</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-07T15:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge lookup table and index results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324033#M96717</link>
      <description>&lt;P&gt;The Name and _time will be variables looked up in the lookup table called keyValue.csv and the appropriate value(for the key and the date range) will be picked and returned to the table.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 03:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324033#M96717</guid>
      <dc:creator>snipedown21</dc:creator>
      <dc:date>2017-12-08T03:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge lookup table and index results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324034#M96718</link>
      <description>&lt;P&gt;Yes. I read that link and looks like I need that, but I need help with the query as well. What I have doesn't seem to work currently.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 03:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-lookup-table-and-index-results/m-p/324034#M96718</guid>
      <dc:creator>snipedown21</dc:creator>
      <dc:date>2017-12-08T03:57:43Z</dc:date>
    </item>
  </channel>
</rss>

