<?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 Difference between outputs of same query as search and subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-outputs-of-same-query-as-search-and-subsearch/m-p/545004#M154333</link>
    <description>&lt;P&gt;Noob here. Can anyone tell me why the following search:&lt;/P&gt;&lt;P&gt;search sourcetype=srt&amp;nbsp; | table serialNumber&lt;/P&gt;&lt;P&gt;will give me a one-column table of serial numbers as expected, while the same query in subsearch brackets&lt;/P&gt;&lt;P&gt;[search sourcetype=srt&amp;nbsp; | table serialNumber]&lt;/P&gt;&lt;P&gt;does not return the same table that I expect, but rather returns the full record?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 20:42:59 GMT</pubDate>
    <dc:creator>ebarnhill</dc:creator>
    <dc:date>2021-03-23T20:42:59Z</dc:date>
    <item>
      <title>Difference between outputs of same query as search and subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-outputs-of-same-query-as-search-and-subsearch/m-p/545004#M154333</link>
      <description>&lt;P&gt;Noob here. Can anyone tell me why the following search:&lt;/P&gt;&lt;P&gt;search sourcetype=srt&amp;nbsp; | table serialNumber&lt;/P&gt;&lt;P&gt;will give me a one-column table of serial numbers as expected, while the same query in subsearch brackets&lt;/P&gt;&lt;P&gt;[search sourcetype=srt&amp;nbsp; | table serialNumber]&lt;/P&gt;&lt;P&gt;does not return the same table that I expect, but rather returns the full record?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 20:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-outputs-of-same-query-as-search-and-subsearch/m-p/545004#M154333</guid>
      <dc:creator>ebarnhill</dc:creator>
      <dc:date>2021-03-23T20:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between outputs of same query as search and subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-outputs-of-same-query-as-search-and-subsearch/m-p/545028#M154340</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232822"&gt;@ebarnhill&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Subsearch outputs are formatted as search string. In your case the result is&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;serialNumber=serialNumber1 OR serialNumber=serialNumber2 OR ...&lt;/LI-CODE&gt;&lt;P&gt;You can test the subsearch output by adding format command end of the normal search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search sourcetype=srt  | table serialNumber | format&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Mar 2021 03:48:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-outputs-of-same-query-as-search-and-subsearch/m-p/545028#M154340</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-24T03:48:52Z</dc:date>
    </item>
  </channel>
</rss>

