<?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: Combine 2 lookup table output fields to one multivalue field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332634#M98955</link>
    <description>&lt;P&gt;So, based on your example data, you want combine lookup output for src-dest combination of 1-2, 1-3,2-1,2-3,3-1,3-2..? I think you want to combine output value for a give combination of src-dest, so just want to understand how you're coming up with src-dest combination.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Mar 2018 21:22:03 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-03-06T21:22:03Z</dc:date>
    <item>
      <title>Combine 2 lookup table output fields to one multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332631#M98952</link>
      <description>&lt;P&gt;I would like to combine 2 lookup table outputs to one multivalue field at search time. Table 1 and Table 2 are below are my lookup outputs. Table 3 is an example of my expected output:&lt;/P&gt;

&lt;P&gt;LOOKUP TABLE 1 OUTPUT: &lt;BR /&gt;
src_port, lookup1_output &lt;BR /&gt;
1, A&lt;BR /&gt;
2, B&lt;BR /&gt;
3, C&lt;/P&gt;

&lt;P&gt;LOOKUP TABLE 2 OUTPUT:&lt;BR /&gt;
dest_port, lookup2_output&lt;BR /&gt;
1, D&lt;BR /&gt;
2, E&lt;BR /&gt;
3, F&lt;/P&gt;

&lt;P&gt;I'd like to combine lookup1_output and lookup1_output to form one multivalue output:&lt;BR /&gt;
TABLE 3: EXPECTED COMBINED MULTIVALUE OUTPUT:&lt;BR /&gt;
src_port, dest_port, combined_output {lookup1_output,lookup2_output}&lt;BR /&gt;
1, 2 , {A,E}&lt;BR /&gt;
2, 3 , {B,F}&lt;BR /&gt;
and so on..&lt;/P&gt;

&lt;P&gt;I tried &lt;BR /&gt;
eval output = mvcombine(lookup1_output,lookup2_output) &lt;BR /&gt;
but this does not help as search time order of operations is EVAL -&amp;gt; LOOKUP so I can't use an eval with inputs from a lookup.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332631#M98952</guid>
      <dc:creator>rravind1</dc:creator>
      <dc:date>2020-09-29T18:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 lookup table output fields to one multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332632#M98953</link>
      <description>&lt;P&gt;ON what basis values from both lookups are combined? Is it just the cross-product of all entries?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 20:23:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332632#M98953</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-06T20:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 lookup table output fields to one multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332633#M98954</link>
      <description>&lt;P&gt;Not necessarily as a cross product. I want the values of the lookups to be combined based on the combination of the src_port and dest_port inputs. For example, if i combined table1 and table 2, I would like lookup1_output and lookup2_output to be combined into a single multi-value field.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332633#M98954</guid>
      <dc:creator>rravind1</dc:creator>
      <dc:date>2020-09-29T18:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 lookup table output fields to one multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332634#M98955</link>
      <description>&lt;P&gt;So, based on your example data, you want combine lookup output for src-dest combination of 1-2, 1-3,2-1,2-3,3-1,3-2..? I think you want to combine output value for a give combination of src-dest, so just want to understand how you're coming up with src-dest combination.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 21:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332634#M98955</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-06T21:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 lookup table output fields to one multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332635#M98956</link>
      <description>&lt;P&gt;No, It's not necessary that it needs to be a catesian product, but it could be so. to explain it better, I have a src_port field and a dest_port field in my event data. I would like to find the protocol associated with each source port and each destination port. I am using 2 automatic lookups to find the src_protocol(as lookup1_output in my example)  and dest_protocol(lookup2_output). Most events in my data have both src_port as well as dest_port , but it's not necessary that both fields should have values. When there is a case that the lookup returns values for both, i would like to combine the src_protocol output field and the dest_protocol output field to give me a multivalue field called protocol. If you have any idea as to how to combine the 2 lookup outputs to a single multi-value field, I can figure out the solution to the scenarios where the cartesian rule does not hold &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-2-lookup-table-output-fields-to-one-multivalue-field/m-p/332635#M98956</guid>
      <dc:creator>rravind1</dc:creator>
      <dc:date>2020-09-29T18:15:15Z</dc:date>
    </item>
  </channel>
</rss>

