<?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 Can you combine fields from multiple search in one table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444434#M126041</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'm trying to combine fields in multiple search result in one output table as overall result, for example:&lt;/P&gt;

&lt;P&gt;Search 1 result&lt;BR /&gt;
Date,open ,close&lt;/P&gt;

&lt;P&gt;Search 2 result&lt;BR /&gt;
incident ,type1,result&lt;/P&gt;

&lt;P&gt;Output table&lt;BR /&gt;
Date,open ,close,incident ,type1,result&lt;/P&gt;

&lt;P&gt;Hope question is clear&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 12:55:11 GMT</pubDate>
    <dc:creator>roopasree</dc:creator>
    <dc:date>2018-06-12T12:55:11Z</dc:date>
    <item>
      <title>Can you combine fields from multiple search in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444434#M126041</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'm trying to combine fields in multiple search result in one output table as overall result, for example:&lt;/P&gt;

&lt;P&gt;Search 1 result&lt;BR /&gt;
Date,open ,close&lt;/P&gt;

&lt;P&gt;Search 2 result&lt;BR /&gt;
incident ,type1,result&lt;/P&gt;

&lt;P&gt;Output table&lt;BR /&gt;
Date,open ,close,incident ,type1,result&lt;/P&gt;

&lt;P&gt;Hope question is clear&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444434#M126041</guid>
      <dc:creator>roopasree</dc:creator>
      <dc:date>2018-06-12T12:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can you combine fields from multiple search in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444435#M126042</link>
      <description>&lt;P&gt;How will you know what rows from result 1 relate to what rows in result 2? Is there not a common field between the two datasets?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 14:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444435#M126042</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2018-06-12T14:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can you combine fields from multiple search in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444436#M126043</link>
      <description>&lt;P&gt;Sure, just use | appendcols&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search foo | fields date,open,close | appendcols [ search bar | fields incident,type1,result]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Appendcols"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Appendcols&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444436#M126043</guid>
      <dc:creator>jowenssi</dc:creator>
      <dc:date>2018-06-12T19:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can you combine fields from multiple search in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444437#M126044</link>
      <description>&lt;P&gt;Hi @roopasree&lt;/P&gt;

&lt;P&gt;There should be a common field in main &amp;amp; sub search to map the results correctly,&lt;/P&gt;

&lt;P&gt;if you want to just append the columns use the above answer ----- appendcols, append commands should work for that.&lt;/P&gt;

&lt;P&gt;if you want to map the results between main and sub search based on a specific field ----- join command should work for you.&lt;/P&gt;

&lt;P&gt;main search | fields date,open,close,incidentnum | join incidentnum [search subsearch | fields incident,type1,result,incidentnum] | stats c by date,open,close,incidentnum,incident,type1,result &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444437#M126044</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-06-12T19:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can you combine fields from multiple search in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444438#M126045</link>
      <description>&lt;P&gt;@gpradeepkumarreddy   yes there is  no comman field among two datasets&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 07:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-combine-fields-from-multiple-search-in-one-table/m-p/444438#M126045</guid>
      <dc:creator>roopasree</dc:creator>
      <dc:date>2018-06-13T07:03:43Z</dc:date>
    </item>
  </channel>
</rss>

