<?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: How can I get the subsearch results in the same row as the main search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272045#M81862</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=wms-stage 1000075422|search ORDDETAILSTATUS="Shipped"|dedup SAP_SALESORDER SO_LINEITEM|fields SAP_SALESORDER SO_LINEITEM SHIPPINGCODE SHIPCONDITION | stats values(*) as * | appendcols[|search index=sapecc-stage sourcetype="SE8-SalesOrder" 1000075422| rename SHIPPINGCONDITION AS SHIPCOND | fields SHIPCOND | stats values(*) as *]|
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Sep 2016 21:05:49 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-09T21:05:49Z</dc:date>
    <item>
      <title>How can I get the subsearch results in the same row as the main search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272040#M81857</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please see the image below. I want to get shipcond=NEXTDAY in the first column also. How can I get that? Here, SAP_salesorder is a common field in both. &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1822i64E47994EDD75920/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 20:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272040#M81857</guid>
      <dc:creator>uhkc777</dc:creator>
      <dc:date>2016-09-09T20:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the subsearch results in the same row as the main search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272041#M81858</link>
      <description>&lt;P&gt;To get it in the same row as the main search, use &lt;CODE&gt;appendcols&lt;/CODE&gt; instead of &lt;CODE&gt;append&lt;/CODE&gt;. Note, the column names cannot be same between main search and subsearch.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 20:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272041#M81858</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-09T20:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the subsearch results in the same row as the main search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272042#M81859</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/140181"&gt;@sundareshr&lt;/a&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wms-stage 1000075422|search ORDDETAILSTATUS="Shipped"|dedup SAP_SALESORDER SO_LINEITEM|table SAP_SALESORDER SO_LINEITEM SHIPPINGCODE SHIPCONDITION|appendcols[|search index=sapecc-stage sourcetype="SE8-SalesOrder" 1000075422|table SHIPPINGCONDITION ]|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output: &lt;BR /&gt;
SAP_SALESORDER  SO_LINEITEM    SHIPPINGCODE             SHIPCONDITION&lt;BR /&gt;
1000075422                 10                                     21                                 GROUND (FedEx)&lt;/P&gt;

&lt;P&gt;Still not getting SHIPPINGCONDITION IN SUBSEARCH as a result&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272042#M81859</guid>
      <dc:creator>uhkc777</dc:creator>
      <dc:date>2020-09-29T10:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the subsearch results in the same row as the main search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272043#M81860</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=wms-stage 1000075422|search ORDDETAILSTATUS="Shipped"|dedup SAP_SALESORDER SO_LINEITEM|table SAP_SALESORDER SO_LINEITEM SHIPPINGCODE SHIPCONDITION|appendcols[|search index=sapecc-stage sourcetype="SE8-SalesOrder" 1000075422| rename SHIPPINGCONDITION AS SHIPCOND | table SHIPCOND ]|
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2016 20:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272043#M81860</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-09T20:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the subsearch results in the same row as the main search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272044#M81861</link>
      <description>&lt;P&gt;NO still getting the same result&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 20:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272044#M81861</guid>
      <dc:creator>uhkc777</dc:creator>
      <dc:date>2016-09-09T20:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the subsearch results in the same row as the main search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272045#M81862</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=wms-stage 1000075422|search ORDDETAILSTATUS="Shipped"|dedup SAP_SALESORDER SO_LINEITEM|fields SAP_SALESORDER SO_LINEITEM SHIPPINGCODE SHIPCONDITION | stats values(*) as * | appendcols[|search index=sapecc-stage sourcetype="SE8-SalesOrder" 1000075422| rename SHIPPINGCONDITION AS SHIPCOND | fields SHIPCOND | stats values(*) as *]|
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2016 21:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-subsearch-results-in-the-same-row-as-the-main/m-p/272045#M81862</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-09T21:05:49Z</dc:date>
    </item>
  </channel>
</rss>

