<?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 How to join events with lookuptable based on numerical values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-events-with-lookuptable-based-on-numerical-values/m-p/339918#M100805</link>
    <description>&lt;P&gt;I want to join these two types of data: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;The following events have the recorded value for each step in a test.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TestNum        StepNum       recordedValue  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;AFKE-232322    501           32.254 &lt;BR /&gt;
  AFKE-232322    508           1.0223 &lt;BR /&gt;
  AFKE-232322    842           1.0582 &lt;BR /&gt;
  AFKE-232322    805           -24.25 &lt;BR /&gt;
  AFKE-232322    503           22.0 &lt;BR /&gt;
  AFKE-232322    504           100.05&lt;BR /&gt;
The following table (lookuptable) has the instrument name used on each block of the test. (A test has multiple blocks, each block has multiple steps, and each block use an instrument.) The Instrument field has string values like "DMM_23s3".&lt;/P&gt;

&lt;P&gt;TestNum        Block       InstrumentUsed&lt;BR /&gt;
AFKE-232322    100         inst_1&lt;BR /&gt;
AFKE-232322    200         inst_2&lt;BR /&gt;
AFKE-232322    300         inst_3&lt;BR /&gt;
AFKE-232322    400         inst_4&lt;BR /&gt;
At the end, I would like to have something like this:&lt;/P&gt;

&lt;P&gt;TestNum        StepNum       recordedValue  Instrument&lt;BR /&gt;
  AFKE-232322    501           32.254         Inst_5&lt;BR /&gt;
  AFKE-232322    508           1.0223         inst_5&lt;BR /&gt;
  AFKE-232322    842           1.0582         inst_8&lt;BR /&gt;
  AFKE-232322    805           -24.25         inst_8&lt;BR /&gt;
  AFKE-232322    503           22.0           inst_5&lt;BR /&gt;
  AFKE-232322    504           100.05         ints_5&lt;BR /&gt;
Note that the block number is always the first step on the block and it could be any positive integer. To find the block of a step, I need to look for the two blocks before and after a step. &lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Examples of blocks and their steps:&lt;BR /&gt;
Block 502 { 503, 504, 550, ... ,634}&lt;BR /&gt;
Block 650 { 651, 652, 653}&lt;BR /&gt;
Block 655 { 656, 657, 658}&lt;/P&gt;

&lt;P&gt;step 634 is part of block 502&lt;BR /&gt;
step 652 is part of Block 650&lt;BR /&gt;
step 657 is part of Block 655&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:22:33 GMT</pubDate>
    <dc:creator>edrivera3</dc:creator>
    <dc:date>2020-09-29T18:22:33Z</dc:date>
    <item>
      <title>How to join events with lookuptable based on numerical values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-events-with-lookuptable-based-on-numerical-values/m-p/339918#M100805</link>
      <description>&lt;P&gt;I want to join these two types of data: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;The following events have the recorded value for each step in a test.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TestNum        StepNum       recordedValue  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;AFKE-232322    501           32.254 &lt;BR /&gt;
  AFKE-232322    508           1.0223 &lt;BR /&gt;
  AFKE-232322    842           1.0582 &lt;BR /&gt;
  AFKE-232322    805           -24.25 &lt;BR /&gt;
  AFKE-232322    503           22.0 &lt;BR /&gt;
  AFKE-232322    504           100.05&lt;BR /&gt;
The following table (lookuptable) has the instrument name used on each block of the test. (A test has multiple blocks, each block has multiple steps, and each block use an instrument.) The Instrument field has string values like "DMM_23s3".&lt;/P&gt;

&lt;P&gt;TestNum        Block       InstrumentUsed&lt;BR /&gt;
AFKE-232322    100         inst_1&lt;BR /&gt;
AFKE-232322    200         inst_2&lt;BR /&gt;
AFKE-232322    300         inst_3&lt;BR /&gt;
AFKE-232322    400         inst_4&lt;BR /&gt;
At the end, I would like to have something like this:&lt;/P&gt;

&lt;P&gt;TestNum        StepNum       recordedValue  Instrument&lt;BR /&gt;
  AFKE-232322    501           32.254         Inst_5&lt;BR /&gt;
  AFKE-232322    508           1.0223         inst_5&lt;BR /&gt;
  AFKE-232322    842           1.0582         inst_8&lt;BR /&gt;
  AFKE-232322    805           -24.25         inst_8&lt;BR /&gt;
  AFKE-232322    503           22.0           inst_5&lt;BR /&gt;
  AFKE-232322    504           100.05         ints_5&lt;BR /&gt;
Note that the block number is always the first step on the block and it could be any positive integer. To find the block of a step, I need to look for the two blocks before and after a step. &lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Examples of blocks and their steps:&lt;BR /&gt;
Block 502 { 503, 504, 550, ... ,634}&lt;BR /&gt;
Block 650 { 651, 652, 653}&lt;BR /&gt;
Block 655 { 656, 657, 658}&lt;/P&gt;

&lt;P&gt;step 634 is part of block 502&lt;BR /&gt;
step 652 is part of Block 650&lt;BR /&gt;
step 657 is part of Block 655&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-events-with-lookuptable-based-on-numerical-values/m-p/339918#M100805</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2020-09-29T18:22:33Z</dc:date>
    </item>
  </channel>
</rss>

