<?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: Mechanism to return fields not part of a query from subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Mechanism-to-return-fields-not-part-of-a-query-from-subsearch/m-p/48850#M11689</link>
    <description>&lt;P&gt;I'm not sure I understand your aim, but could you use &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Append"&gt;append&lt;/A&gt;, &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Appendcols"&gt;appendcols&lt;/A&gt;, or &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join"&gt;join&lt;/A&gt; to get what you need instead of having a subsearch in your primary search?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2013 01:25:08 GMT</pubDate>
    <dc:creator>wpreston</dc:creator>
    <dc:date>2013-08-28T01:25:08Z</dc:date>
    <item>
      <title>Mechanism to return fields not part of a query from subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mechanism-to-return-fields-not-part-of-a-query-from-subsearch/m-p/48849#M11688</link>
      <description>&lt;P&gt;index=abc [index=def a=b | fields c,d,e | format] &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
will create something like &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
index=abc (c=blah) AND (d=foo) AND (e=bar)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
Instead of e being part of the search, I just want the value of e to be used later in the primary search possibly in a table? I lose the values of the fields in the subsearch. I tried outputing them to an outputlookup in the subsearch and then doing a lookup to pull them back but it appears the outputlookup doesn't flush them out to the file quick enough. If I re-run the search, I will get those results but that is a hack. Any ideas here? &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
-Bob&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 00:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mechanism-to-return-fields-not-part-of-a-query-from-subsearch/m-p/48849#M11688</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2013-08-28T00:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mechanism to return fields not part of a query from subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mechanism-to-return-fields-not-part-of-a-query-from-subsearch/m-p/48850#M11689</link>
      <description>&lt;P&gt;I'm not sure I understand your aim, but could you use &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Append"&gt;append&lt;/A&gt;, &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Appendcols"&gt;appendcols&lt;/A&gt;, or &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join"&gt;join&lt;/A&gt; to get what you need instead of having a subsearch in your primary search?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 01:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mechanism-to-return-fields-not-part-of-a-query-from-subsearch/m-p/48850#M11689</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2013-08-28T01:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mechanism to return fields not part of a query from subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mechanism-to-return-fields-not-part-of-a-query-from-subsearch/m-p/48851#M11690</link>
      <description>&lt;P&gt;You made fields part of the result, so it ends up in the result.  It does not appear to be part of the search, but if the event contains e and you make e part of your result, then you will end up with e.  That's just the way it is.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 01:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mechanism-to-return-fields-not-part-of-a-query-from-subsearch/m-p/48851#M11690</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-08-28T01:27:26Z</dc:date>
    </item>
  </channel>
</rss>

