<?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: Join 3 sources without join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622109#M216240</link>
    <description>&lt;P&gt;Another answer to avoid join&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/What-is-the-relation-between-the-Splunk-inner-left-join-and-the/m-p/391288/thread-id/113948" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/What-is-the-relation-between-the-Splunk-inner-left-join-and-the/m-p/391288/thread-id/113948&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is also some conf prentations “Join datasets without join command” or something similar which could help you.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 14:22:05 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2022-11-25T14:22:05Z</dc:date>
    <item>
      <title>How to join three sources without join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622104#M216238</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to join 3 sources from the same inidex. The Problem is, that with join i lose Date because im over 50.000 results in the subsearch. So i try to get my table over the "normal" search.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Logic is like the picture: The source "NAS" is a reported fault on a specific Production-number (PRODNR). it includes the Productionnumber, the timestamp of the detection and a clear ID (SNSM - for every fault) with the Partcode of the fault part.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The "NAU" is the data of the processed/closed defect. Problem here is as you can see that the columns in the sources have the same names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MP is the number of the process Step.&lt;BR /&gt;&lt;BR /&gt;so every source contains the PRODNR.&amp;nbsp; The NAS and NAU contain the SNSM IDs.&amp;nbsp;&lt;BR /&gt;So i want to join the NAU ans NAS by the "SNSM" IDs and see if they alsready passed the Progress step 6 and if a fault was proccessed before the step 6 or if it was open the time the Production Number passed the Step 6.&amp;nbsp;&lt;BR /&gt;my search that works is as shown. But its limited to the 50.000 results.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i try to to make it with&amp;nbsp;index=pfps-k sourcetype=NAS OR sourcetype=NAU OR sourcetype=MP.&amp;nbsp;&lt;BR /&gt;I get all the data but i cant do the same like the join so compare the SNSM IDs and then the Productionstep&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunk_User2806_0-1669382857244.png" style="width: 826px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22640iBCAA4635926CDA66/image-dimensions/826x126?v=v2" width="826" height="126" role="button" title="Splunk_User2806_0-1669382857244.png" alt="Splunk_User2806_0-1669382857244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;index=pfps-k sourcetype=NAS ( PRODNR="1*" OR PRODNR="2*" ) |where 'SPERRE' like ("PZM51%")&lt;BR /&gt;|dedup PRODNR,PRUEFUNG&lt;BR /&gt;|join type=left max=0 left=NAS right=NAU where NAS.SNSM=NAU.SNSM [search index=pfps-k sourcetype=NAU ( PRODNR="1*" OR PRODNR="2*" ) |dedup SNSM]&lt;BR /&gt;|join type=left max=0 left=L right=MP where L.NAS.PRODNR=MP.PRODNR [search index=pfps-k sourcetype="MP" earliest=@d+6h |where MELDEPUNKT=6.0 |where like(PRODNR,"1%") OR like(PRODNR,"2%")]&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 16:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622104#M216238</guid>
      <dc:creator>Splunk_User2806</dc:creator>
      <dc:date>2022-11-27T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Join 3 sources without join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622107#M216239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251637"&gt;@Splunk_User2806&lt;/a&gt;&amp;nbsp;.. not sure, maybe, pls check this topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-compare-fields-over-multiple-sourcetypes-without-join/td-p/113477" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-compare-fields-over-multiple-sourcetypes-without-join/td-p/113477&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 14:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622107#M216239</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2022-11-25T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Join 3 sources without join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622109#M216240</link>
      <description>&lt;P&gt;Another answer to avoid join&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/What-is-the-relation-between-the-Splunk-inner-left-join-and-the/m-p/391288/thread-id/113948" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/What-is-the-relation-between-the-Splunk-inner-left-join-and-the/m-p/391288/thread-id/113948&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is also some conf prentations “Join datasets without join command” or something similar which could help you.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 14:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622109#M216240</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-11-25T14:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Join 3 sources without join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622110#M216241</link>
      <description>&lt;P&gt;Hey thank you! Yes i know this post. I try it like for a week. I searched every Topic here. MY Problem is that i need the coloumn SNSM to be shorn in my results for the source=NAS and for the source=NAU. like rename them to SNSM_NAS ans SNSM_NAU... so i can compare if they are the same or if the SNSM_NAU is missing. Nothing worked for me till now. I need a easy join left for all thre sources and compare the SNSM numbers. Without the issue of missing Data&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 14:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622110#M216241</guid>
      <dc:creator>Splunk_User2806</dc:creator>
      <dc:date>2022-11-25T14:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Join 3 sources without join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622111#M216242</link>
      <description>&lt;P&gt;Can you give a some scrambled sample data? That way it’s much easier to understand your challenge. I suppose that couple of events are enough.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 14:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622111#M216242</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-11-25T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Join 3 sources without join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622113#M216243</link>
      <description>&lt;P&gt;hey thank you! yes here they are. It has to look like this. I Need all Source datas one next to the other and liks the NAU and NAS data by the SNSM as you see. at the end i want to show the 6.0 for every PRODNR in the data. and i need the empty fields, so i know if the issue is closed and if it is before or after the 6.0 point&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunk_User2806_0-1669387090528.png" style="width: 956px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22644i78E42D38EB527558/image-dimensions/956x460?v=v2" width="956" height="460" role="button" title="Splunk_User2806_0-1669387090528.png" alt="Splunk_User2806_0-1669387090528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 14:38:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622113#M216243</guid>
      <dc:creator>Splunk_User2806</dc:creator>
      <dc:date>2022-11-25T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Join 3 sources without join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622118#M216246</link>
      <description>&lt;P&gt;Not sure if I fully understand the requirements, but maybe something like this could get you started?&amp;nbsp; I can't really test so this could be all sorts of wrong - but I think it seems reasonable?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;Include all events in base search&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;create some new vars based on the sourcetype (so kinda like the rename you want to do)&lt;/LI&gt;&lt;LI&gt;get the detection time and process time for each snsm id (use eventstats to keep the rest of the event)&lt;/LI&gt;&lt;LI&gt;get the step6 time for each prodnr&amp;nbsp; (think this should put it on the nau/nas events too)&lt;/LI&gt;&lt;LI&gt;Now just look at the NAS events as they should have the detection time, process time and step 6 time and the prod nr as well&lt;/LI&gt;&lt;LI&gt;check the timestamps to see which thing happened when and provide the relevant output&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="javascript"&gt;index=whatever sourcetype IN ("MP","NAS","NAU")
| eval step6_time = case(sourcetype="MP" AND meldepunkt="6",strptime(zeitstempeli,"%d.%m.%Y %H:%M"))
| eval detection_time = case(sourcetype="NAS",strptime(errfaast,"%d.%m.%Y %H:%M"))
| eval process_time = case(sourcetype="NAU",strptime(errfaast,"%d.%m.%Y %H:%M"))
| eventstats values(detection_time) as detection_time, values(process_time) as process_time by snsm
| eventstats values(step6_time) as step6_time by prodnr
| where sourcetype="NAS"
| eval result = case(isnotnull(process_time) AND process_time &amp;lt; step6_time,"fault processed before",isnotnull(process_time),"fault processed after step 6",isnull(process_time),"fault not processed")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 16:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622118#M216246</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2022-11-25T16:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Join 3 sources without join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622276#M216309</link>
      <description>&lt;P class="lia-align-justify"&gt;Hey! seems to work. The key was the&amp;nbsp; sourcetype IN ("MP"...) and the extraction with eval case...&lt;BR /&gt;But my Problem now is i want to see all Production Numbers PRODNR wich passed the Step 6 today so earliest&amp;nbsp;@d+6h is right... but the cause could be up to 2-3 days back! The NAS or NAU.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can i extract the MP PORDNR from today but search for all Causes in NAS and NAU wich are linkt to that PRODNR even if they are some days back?&lt;BR /&gt;&lt;BR /&gt;Thank youo very much guys!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunk_User2806_0-1669646027546.png" style="width: 805px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22670iE21AE2A3C0EEEB56/image-dimensions/805x451?v=v2" width="805" height="451" role="button" title="Splunk_User2806_0-1669646027546.png" alt="Splunk_User2806_0-1669646027546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 14:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622276#M216309</guid>
      <dc:creator>Splunk_User2806</dc:creator>
      <dc:date>2022-11-28T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Join 3 sources without join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622293#M216316</link>
      <description>&lt;P&gt;You may be able to do a subsearch, but not sure if that's needed here.&amp;nbsp; If you simply search the past 3 days (or however long in the past you need to go), then you should be able to filter only those events where step 6 occurred today.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not looking to type it all out again, but something like this once you have all of the fields you need and are ready to actually check timestamps.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;... | where step6_time &amp;gt; relative_time(now(),"@d")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;That should eliminate any events where&amp;nbsp; step 6 happened before today.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 18:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-three-sources-without-join/m-p/622293#M216316</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2022-11-28T18:03:16Z</dc:date>
    </item>
  </channel>
</rss>

