<?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: Need help on joining on multiple search in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693605#M12535</link>
    <description>&lt;P&gt;Please post the SPL as text rather than as screen shots.&lt;/P&gt;&lt;P&gt;It looks like the first search would become a subsearch within the second search.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 12:26:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-07-17T12:26:53Z</dc:date>
    <item>
      <title>Need help on joining on multiple search</title>
      <link>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693587#M12534</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1721202171881.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31799i0A3F412DB1E842E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1721202171881.png" alt="bhaskar5428_0-1721202171881.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_1-1721202206996.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31800i6203E95EA0814D29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_1-1721202206996.png" alt="bhaskar5428_1-1721202206996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi , Please check above two screenshot , i want to join these queries in such way where i will get AppID along with coluns in first search query&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;requirement is appid should come against order id from from first screen shot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pls suggest . .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 07:45:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693587#M12534</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-17T07:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on joining on multiple search</title>
      <link>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693605#M12535</link>
      <description>&lt;P&gt;Please post the SPL as text rather than as screen shots.&lt;/P&gt;&lt;P&gt;It looks like the first search would become a subsearch within the second search.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 12:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693605#M12535</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-17T12:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on joining on multiple search</title>
      <link>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693655#M12537</link>
      <description>&lt;P&gt;index = app_events_sdda_core_de_prod source="/home/sdda/apps/logs/sep-app/app-json.log" level=TRACE&lt;BR /&gt;| fields message&lt;BR /&gt;| rex field=message "\"orderId\":\"(?&amp;lt;orderId&amp;gt;[^\"]+)\"},\"error\":\{\"errorCode\":\"(?&amp;lt;errorCode&amp;gt;[^\"]+)\""&lt;BR /&gt;| dedup orderId&lt;BR /&gt;| table orderId, errorCode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;index = app_events_sdda_core_de_prod "Process transaction locally" &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;b95d0d10-9709-4299-9d3e-8c65dd5a539d&lt;/STRONG&gt;&lt;/FONT&gt; source="/home/sdda/apps/logs/sep-app/app-json.log"&lt;BR /&gt;|rex field=message "deliveringApplication=(?&amp;lt;AppID&amp;gt;\w+)"&lt;BR /&gt;|dedup AppID&lt;BR /&gt;|table AppID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above order id i have added just for showcase purpose&lt;BR /&gt;actually i want SPl in such way that order id in my first SPL automatically get checks in 2nd&amp;nbsp;&lt;BR /&gt;and i will get three column.&lt;BR /&gt;Inner search kind of thing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pls help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 04:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693655#M12537</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-18T04:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on joining on multiple search</title>
      <link>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693656#M12538</link>
      <description>&lt;P&gt;If you want i can share raw event for both queries&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 04:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693656#M12538</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-18T04:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on joining on multiple search</title>
      <link>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693665#M12541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244235"&gt;@bhaskar5428&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you need a correlation key that cannot be a simple string, in this case you need to extract this field:&lt;/P&gt;&lt;P&gt;in your case, the correlation key should be orderId, so you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = app_events_sdda_core_de_prod source="/home/sdda/apps/logs/sep-app/app-json.log" level=TRACE
| rex field=message "\"orderId\":\"(?&amp;lt;orderId&amp;gt;[^\"]+)\"},\"error\":\{\"errorCode\":\"(?&amp;lt;errorCode&amp;gt;[^\"]+)\""
| fields orderId errorCode 
| dedup orderId
| table orderId, errorCode
| append [
index = app_events_sdda_core_de_prod "Process transaction locally" b95d0d10-9709-4299-9d3e-8c65dd5a539d source="/home/sdda/apps/logs/sep-app/app-json.log"
| rex field=message "deliveringApplication=(?&amp;lt;AppID&amp;gt;\w+)"
| rex "(?&amp;lt;orderId&amp;gt;\w{8}-\w{4}-\w{4}-\w{4}-\w{12})"
| dedup AppID
| table AppID orderId ]
| stats 
     values(errorCode) AS errorCode 
     values(AppID) AS AppID 
     BY orderId&lt;/LI-CODE&gt;&lt;P&gt;This solution has only one limit: you must be sure that the second search will have less than 50,000 results, otherwise, you need a different solution&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 06:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-help-on-joining-on-multiple-search/m-p/693665#M12541</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-18T06:07:11Z</dc:date>
    </item>
  </channel>
</rss>

