<?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: For Xml data join 2 tables with different fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541760#M153394</link>
    <description>&lt;P&gt;Sorry, missed mvexpand for PNO1 - try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "ShipLine PrimeNo\=\"(?&amp;lt;PNO1&amp;gt;.*). Q"
| mvexpand PNO1
| table LineNo PNO1&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 01 Mar 2021 14:13:09 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-03-01T14:13:09Z</dc:date>
    <item>
      <title>For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541564#M153332</link>
      <description>&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Type&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LineNo=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;589123363&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;Type&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;OrderLine Line="6" PrimeNo="3" S="2"&amp;gt;&amp;nbsp;Code="75602005" /&amp;gt; &amp;lt;/OrderLine&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;OrderLine Line="6" PrimeNo="4" S="3"&amp;gt;&amp;nbsp;Code="95602015" /&amp;gt; &amp;lt;/OrderLine&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;OrderLine Line="6" PrimeNo="2" S="4"&amp;gt;&amp;nbsp;Code="65602025" /&amp;gt; &amp;lt;/OrderLine&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;OrderLine Line="6" PrimeNo="1" S="5"&amp;gt;&amp;nbsp;Code="55602305" /&amp;gt; &amp;lt;/OrderLine&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;OrderLine Line="6" PrimeNo="5" S="6"&amp;gt;&amp;nbsp;Code="65602405" /&amp;gt; &amp;lt;/OrderLine&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table B:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Type&amp;nbsp;&amp;nbsp;LineNo="589123363" &amp;gt; &amp;lt;Type&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;ShipLines&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;ShipLine PrimeNo="2" Q=&lt;/SPAN&gt;&lt;SPAN&gt;"1"/&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;ShipLine PrimeNo="3" Q="2"/&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;ShipLine PrimeNo="4" Q="4"/&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;ShipLine PrimeNo="1" Q="3"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;/ShipLines&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Need to join above 2 tables with LineNo,&amp;nbsp;PrimeNo and get the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tired but values is not coming properly in one table values are coming in&amp;nbsp; horizontal&amp;nbsp;and second table values coming vertical. please help me out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LineNo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PrimeNo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;589123363&amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55602305&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;589123363&amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 65602025&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;589123363&amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75602005&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;589123363&amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 95602015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 18:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541564#M153332</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2021-02-26T18:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541653#M153362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227309"&gt;@Annna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Assuming you have these tables in separate events; you can try something below;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(Code) as Code by LineNo PrimeNo&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 11:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541653#M153362</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-28T11:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541655#M153364</link>
      <description>&lt;P&gt;With the join command in splunk, you are joining the results of two searches at an event by event level. What events are you getting from your search of the first set of data? How have you extracted PrimeNo and Code? Same for the second set of data.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 11:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541655#M153364</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-28T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541723#M153380</link>
      <description>&lt;P&gt;after joining 2 tables my result is like below and shipline prime is not split properly, using mvexpand also no use. i tried many ways but no use.&lt;/P&gt;&lt;P&gt;Using below query getting output like below and help me with correct one&lt;/P&gt;&lt;P&gt;index=A earliest=-120d@d latest=now&lt;BR /&gt;| dedup LineNo&lt;BR /&gt;| eval new=mvzip(PrimeNo, Code)&lt;BR /&gt;| mvexpand new&lt;BR /&gt;| makemv delim="," new&lt;BR /&gt;| eval N_PrimeNo=mvindex(new,0)&lt;BR /&gt;| eval N_Code=mvindex(new,1)&lt;BR /&gt;| table LineNo N_PrimeNo N_Code&lt;BR /&gt;| join LineNo&lt;BR /&gt;[search index=B&lt;BR /&gt;| dedup Order | rex max_match=0 "(?&amp;lt;ShipLine&amp;gt;ShipLine)\s"&lt;BR /&gt;| search ShipLine=ShipLine&lt;BR /&gt;| rex max_match=0 "ShipLine PrimeNo\=\"(?&amp;lt;PNO1&amp;gt;.*). Q"&lt;BR /&gt;| table LineNo PNO1]&lt;BR /&gt;| table LineNo N_PrimeNo PNO1 N_Code&lt;BR /&gt;| mvexpand PNO1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annna_0-1614592267262.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13116i90D735A977792585/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annna_0-1614592267262.png" alt="Annna_0-1614592267262.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but i need final output be like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annna_1-1614592303535.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13117i77C2D01B92B89F28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annna_1-1614592303535.png" alt="Annna_1-1614592303535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 12:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541723#M153380</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2021-03-01T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541750#M153389</link>
      <description>&lt;P&gt;Will this work?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=A earliest=-120d@d latest=now
| dedup LineNo
| eval new=mvzip(PrimeNo, Code)
| mvexpand new
| makemv delim="," new
| eval N_PrimeNo=mvindex(new,0)
| eval N_Code=mvindex(new,1)
| table LineNo N_PrimeNo N_Code
| eval lineprime=LineNo."|".N_PrimeNo
| join lineprime
[search index=B
| dedup Order | rex max_match=0 "(?&amp;lt;ShipLine&amp;gt;ShipLine)\s"
| search ShipLine=ShipLine
| rex max_match=0 "ShipLine PrimeNo\=\"(?&amp;lt;PNO1&amp;gt;.*). Q"
| table LineNo PNO1
| eval lineprime=LineNo."|".PNO1]
| eval lineprime=split(lineprime,"|")
| eval LineNo=mvindex(lineprime,0)
| eval PrimeNo=mvindex(lineprime,1)
| table LineNo PrimeNo N_Code&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 13:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541750#M153389</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-01T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541757#M153393</link>
      <description>&lt;P&gt;NO, its not giving any results because joined with "lineprime"&lt;/P&gt;&lt;P&gt;Because lineprime is not populating properly in the second table.&lt;/P&gt;&lt;P&gt;see below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annna_1-1614607804478.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13122i8732C9EFBBF697F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annna_1-1614607804478.png" alt="Annna_1-1614607804478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:10:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541757#M153393</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2021-03-01T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541760#M153394</link>
      <description>&lt;P&gt;Sorry, missed mvexpand for PNO1 - try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "ShipLine PrimeNo\=\"(?&amp;lt;PNO1&amp;gt;.*). Q"
| mvexpand PNO1
| table LineNo PNO1&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541760#M153394</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-01T14:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541771#M153402</link>
      <description>&lt;P&gt;after Joining with 2 tables mvexpand is not working. Results not found&lt;/P&gt;&lt;P&gt;| mvexpand PNO1&lt;/P&gt;&lt;P&gt;that mvexpand while using individual table its worked out.&lt;/P&gt;&lt;P&gt;While joining 2 tables only its not split&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541771#M153402</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2021-03-01T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541776#M153405</link>
      <description>&lt;P&gt;You shouldn't need the mvexpand after the join&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=A earliest=-120d@d latest=now
| dedup LineNo
| eval new=mvzip(PrimeNo, Code)
| mvexpand new
| makemv delim="," new
| eval N_PrimeNo=mvindex(new,0)
| eval N_Code=mvindex(new,1)
| table LineNo N_PrimeNo N_Code
| eval lineprime=LineNo."|".N_PrimeNo
| join lineprime
[search index=B
| dedup Order | rex max_match=0 "(?&amp;lt;ShipLine&amp;gt;ShipLine)\s"
| search ShipLine=ShipLine
| rex max_match=0 "ShipLine PrimeNo\=\"(?&amp;lt;PNO1&amp;gt;.*). Q"
| table LineNo PNO1
| mvexpand PNO1
| eval lineprime=LineNo."|".PNO1]
| eval lineprime=split(lineprime,"|")
| eval LineNo=mvindex(lineprime,0)
| eval PrimeNo=mvindex(lineprime,1)
| table LineNo PrimeNo N_Code&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:34:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541776#M153405</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-01T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541798#M153419</link>
      <description>&lt;P&gt;Sorry, Its not working out.&lt;/P&gt;&lt;P&gt;With the&amp;nbsp; below query i am getting results like that.&lt;/P&gt;&lt;P&gt;index=A earliest=-120d@d latest=now&lt;BR /&gt;| dedup LineNo&lt;BR /&gt;| eval new=mvzip(PrimeNo, Code)&lt;BR /&gt;| mvexpand new&lt;BR /&gt;| makemv delim="," new&lt;BR /&gt;| eval N_PrimeNo=mvindex(new,0)&lt;BR /&gt;| eval N_Code=mvindex(new,1)&lt;BR /&gt;| table LineNo N_PrimeNo N_Code&lt;BR /&gt;| join LineNo&lt;BR /&gt;[search index=B&lt;BR /&gt;| dedup Order | rex max_match=0 "(?&amp;lt;ShipLine&amp;gt;ShipLine)\s"&lt;BR /&gt;| search ShipLine=ShipLine&lt;BR /&gt;| rex max_match=0 "ShipLine PrimeLineNo\=\"(?&amp;lt;PNO1&amp;gt;.*). Q"&lt;BR /&gt;| table LineNo PNO1]&lt;BR /&gt;| table LineNo N_PrimeLineNo PNO1 N_Code&lt;BR /&gt;| mvexpand PNO1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annna_0-1614610891431.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13124i0E9E51BEB191CB5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annna_0-1614610891431.png" alt="Annna_0-1614610891431.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY expecting output be like after giving where N_PrimeNo = PNO1&lt;/P&gt;&lt;TABLE width="268"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="98px"&gt;LineNo&amp;nbsp;&lt;/TD&gt;&lt;TD width="94px"&gt;N_PrimeNo&lt;/TD&gt;&lt;TD width="54px"&gt;PNO1&lt;/TD&gt;&lt;TD width="88px"&gt;N_Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;288136957&lt;/TD&gt;&lt;TD width="94px"&gt;1&lt;/TD&gt;&lt;TD width="54px"&gt;1&lt;/TD&gt;&lt;TD width="88px"&gt;66871812&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;588136313&lt;/TD&gt;&lt;TD width="94px"&gt;1&lt;/TD&gt;&lt;TD width="54px"&gt;1&lt;/TD&gt;&lt;TD width="88px"&gt;66871812&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;588136313&lt;/TD&gt;&lt;TD width="94px"&gt;3&lt;/TD&gt;&lt;TD width="54px"&gt;3&lt;/TD&gt;&lt;TD width="88px"&gt;65602005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;588136313&lt;/TD&gt;&lt;TD width="94px"&gt;4&lt;/TD&gt;&lt;TD width="54px"&gt;4&lt;/TD&gt;&lt;TD width="88px"&gt;69101805&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;488136313&lt;/TD&gt;&lt;TD width="94px"&gt;1&lt;/TD&gt;&lt;TD width="54px"&gt;1&lt;/TD&gt;&lt;TD width="88px"&gt;66871812&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;488136313&lt;/TD&gt;&lt;TD width="94px"&gt;2&lt;/TD&gt;&lt;TD width="54px"&gt;2&lt;/TD&gt;&lt;TD width="88px"&gt;65252707&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;488136313&lt;/TD&gt;&lt;TD width="94px"&gt;3&lt;/TD&gt;&lt;TD width="54px"&gt;3&lt;/TD&gt;&lt;TD width="88px"&gt;65602005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;488136313&lt;/TD&gt;&lt;TD width="94px"&gt;4&lt;/TD&gt;&lt;TD width="54px"&gt;4&lt;/TD&gt;&lt;TD width="88px"&gt;69101805&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 15:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541798#M153419</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2021-03-01T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541802#M153421</link>
      <description>&lt;P&gt;You are not looking at what I&amp;nbsp; suggested carefully enough - there is a mvexpand inside the join query not outside&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 15:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541802#M153421</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-01T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541813#M153427</link>
      <description>&lt;P&gt;sorry i wrongly copied the results, i am keeping the mvexpand command inside only.&lt;/P&gt;&lt;P&gt;Suggested query no results found&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annna_0-1614614982934.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13126i5ABA4AAE3FE34782/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annna_0-1614614982934.png" alt="Annna_0-1614614982934.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mvexpand inside the join results. Its not showing correctly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annna_2-1614615446141.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13128i3F5EC650DB92846C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annna_2-1614615446141.png" alt="Annna_2-1614615446141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY expecting output be like after giving where N_PrimeNo = PNO1&lt;/P&gt;&lt;TABLE width="268"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="98px"&gt;LineNo&amp;nbsp;&lt;/TD&gt;&lt;TD width="94px"&gt;N_PrimeNo&lt;/TD&gt;&lt;TD width="54px"&gt;PNO1&lt;/TD&gt;&lt;TD width="88px"&gt;N_Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;288136957&lt;/TD&gt;&lt;TD width="94px"&gt;1&lt;/TD&gt;&lt;TD width="54px"&gt;1&lt;/TD&gt;&lt;TD width="88px"&gt;66871812&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;588136313&lt;/TD&gt;&lt;TD width="94px"&gt;1&lt;/TD&gt;&lt;TD width="54px"&gt;1&lt;/TD&gt;&lt;TD width="88px"&gt;66871812&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;588136313&lt;/TD&gt;&lt;TD width="94px"&gt;3&lt;/TD&gt;&lt;TD width="54px"&gt;3&lt;/TD&gt;&lt;TD width="88px"&gt;65602005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;588136313&lt;/TD&gt;&lt;TD width="94px"&gt;4&lt;/TD&gt;&lt;TD width="54px"&gt;4&lt;/TD&gt;&lt;TD width="88px"&gt;69101805&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;488136313&lt;/TD&gt;&lt;TD width="94px"&gt;1&lt;/TD&gt;&lt;TD width="54px"&gt;1&lt;/TD&gt;&lt;TD width="88px"&gt;66871812&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;488136313&lt;/TD&gt;&lt;TD width="94px"&gt;2&lt;/TD&gt;&lt;TD width="54px"&gt;2&lt;/TD&gt;&lt;TD width="88px"&gt;65252707&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;488136313&lt;/TD&gt;&lt;TD width="94px"&gt;3&lt;/TD&gt;&lt;TD width="54px"&gt;3&lt;/TD&gt;&lt;TD width="88px"&gt;65602005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="98px"&gt;488136313&lt;/TD&gt;&lt;TD width="94px"&gt;4&lt;/TD&gt;&lt;TD width="54px"&gt;4&lt;/TD&gt;&lt;TD width="88px"&gt;69101805&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 16:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541813#M153427</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2021-03-01T16:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541814#M153428</link>
      <description>&lt;P&gt;You also need the eval to create lineprime inside the joined search but it doesn't appear to be in your image&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mvexpand PNO1
| eval lineprime=LineNo."|".PNO1 ]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 16:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541814#M153428</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-01T16:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541831#M153435</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annna_0-1614619030424.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13129iD2C4554F68FC7614/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annna_0-1614619030424.png" alt="Annna_0-1614619030424.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;See above screenshot, giving eval logic values are not coming.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That image was which I tried earlier and now I shared&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 17:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541831#M153435</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2021-03-01T17:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541844#M153442</link>
      <description>&lt;P&gt;The image you shared earlier appeared to have no space between ShipLine and PrimeNo - try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "ShipLine PrimeNo\=\"(?&amp;lt;PNO1&amp;gt;[^\"]+)\" Q"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 19:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/541844#M153442</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-01T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: For Xml data join 2 tables with different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/542022#M153520</link>
      <description>&lt;P&gt;Thank you so much for the help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 18:09:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/For-Xml-data-join-2-tables-with-different-fields/m-p/542022#M153520</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2021-03-02T18:09:12Z</dc:date>
    </item>
  </channel>
</rss>

