<?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 to display another field with subsearch ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241846#M71938</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="test.csv" earliest=-mon@mo  | table Serial "Last Week" | eval From=1 | append [search source="source1.csv" Status="Ship*" | table "Serial Number" OtherFieldThatYourWant | rename "Serial_Number" as Serial | eval From=2 ] | stats values(*) as * by Serial | where mvcount(From)=2 | table Serial "Last Week" OtherFieldThatYourWant 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2015 22:09:46 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-09-28T22:09:46Z</dc:date>
    <item>
      <title>How to display another field with subsearch ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241845#M71937</link>
      <description>&lt;P&gt;Hi everyone, I have a question about a subsearch.&lt;BR /&gt;
I have this query :&lt;/P&gt;

&lt;P&gt;source="test.csv" earliest=-mon@mon [search source="source1.csv"  "Status"="Ship" | rename "Serial Number" AS "Serial" |table "Serial"  ] | table "Serial" "Last Week"&lt;/P&gt;

&lt;P&gt;This search displays the serial numbers that are shipped and the date ("Last Week"). I want to display another field which is in "source1". &lt;BR /&gt;
After having looked at some splunk answers I tried to add "fields" in the subsearch but it didn't work.&lt;/P&gt;

&lt;P&gt;Could you please help me with that ?&lt;BR /&gt;
Thanks in advance for your help ! &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 20:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241845#M71937</guid>
      <dc:creator>clairebesson</dc:creator>
      <dc:date>2015-09-28T20:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to display another field with subsearch ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241846#M71938</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="test.csv" earliest=-mon@mo  | table Serial "Last Week" | eval From=1 | append [search source="source1.csv" Status="Ship*" | table "Serial Number" OtherFieldThatYourWant | rename "Serial_Number" as Serial | eval From=2 ] | stats values(*) as * by Serial | where mvcount(From)=2 | table Serial "Last Week" OtherFieldThatYourWant 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2015 22:09:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241846#M71938</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-28T22:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to display another field with subsearch ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241847#M71939</link>
      <description>&lt;P&gt;Why use join at all?  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(source="test.csv") OR (source="source1.csv" "Status"="Ship") | eval Serial=coalesce(Serial, "Serial Number") | stats dc(source) AS numSources values(*) AS * by Serial | where numSources&amp;gt;1 | table Serial "Last Week" OtherFieldThatYourWant
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2015 04:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241847#M71939</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-29T04:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to display another field with subsearch ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241848#M71940</link>
      <description>&lt;P&gt;Thanks a lot ! &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-another-field-with-subsearch/m-p/241848#M71940</guid>
      <dc:creator>clairebesson</dc:creator>
      <dc:date>2015-09-29T13:01:49Z</dc:date>
    </item>
  </channel>
</rss>

