<?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: Fields vs table vs nothing? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/498525#M194897</link>
    <description>&lt;P&gt;You should never use &lt;CODE&gt;table&lt;/CODE&gt; in the middle of any search; always use &lt;CODE&gt;fields&lt;/CODE&gt; if anything and save &lt;CODE&gt;table&lt;/CODE&gt; for the very end (or debugging, because it forces your search to switch to the &lt;CODE&gt;stats&lt;/CODE&gt; tab).  If you are immediately pumping the data into &lt;CODE&gt;stats&lt;/CODE&gt; then there is no reason to do &lt;CODE&gt;fields&lt;/CODE&gt; because it is an extra pass through all events to add no value (because &lt;CODE&gt;stats&lt;/CODE&gt; is going to drop all of those fields as part of its work anyway).&lt;/P&gt;</description>
    <pubDate>Sat, 21 Mar 2020 20:46:24 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2020-03-21T20:46:24Z</dc:date>
    <item>
      <title>Fields vs table vs nothing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/498523#M194895</link>
      <description>&lt;P&gt;Thought there was an answer on this already but can't find it, but for something like this, which is the most performant and why?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=potato&lt;BR /&gt;
| evals&lt;BR /&gt;
| fields&lt;BR /&gt;
| stats&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=potato&lt;BR /&gt;
| evals&lt;BR /&gt;
| stats&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=potato&lt;BR /&gt;
| evals&lt;BR /&gt;
| table&lt;BR /&gt;
| stats&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I would have that just the stats would've been the fastest, but potentially if fields can be done on the indexer that would be faster?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 20:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/498523#M194895</guid>
      <dc:creator>aberkow</dc:creator>
      <dc:date>2020-03-20T20:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fields vs table vs nothing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/498524#M194896</link>
      <description>&lt;P&gt;The chief distinction between &lt;CODE&gt;table&lt;/CODE&gt; and &lt;CODE&gt;fields&lt;/CODE&gt; is that &lt;CODE&gt;table&lt;/CODE&gt; returns results to the search head whereas 'fields' does not.&lt;BR /&gt;
Early use of 'fields' can improve performance in events with many fields by reducing the number of fields the query has to process.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 21:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/498524#M194896</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-20T21:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fields vs table vs nothing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/498525#M194897</link>
      <description>&lt;P&gt;You should never use &lt;CODE&gt;table&lt;/CODE&gt; in the middle of any search; always use &lt;CODE&gt;fields&lt;/CODE&gt; if anything and save &lt;CODE&gt;table&lt;/CODE&gt; for the very end (or debugging, because it forces your search to switch to the &lt;CODE&gt;stats&lt;/CODE&gt; tab).  If you are immediately pumping the data into &lt;CODE&gt;stats&lt;/CODE&gt; then there is no reason to do &lt;CODE&gt;fields&lt;/CODE&gt; because it is an extra pass through all events to add no value (because &lt;CODE&gt;stats&lt;/CODE&gt; is going to drop all of those fields as part of its work anyway).&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 20:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/498525#M194897</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-21T20:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fields vs table vs nothing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/592962#M206383</link>
      <description>&lt;P&gt;I also note that with Splunk SDK (Python), at the end of the embedded query, using 'fields' to select the returned fields, it does not work as I desired with all fields returned. But 'table' would result in only the listed fields returned.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 18:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-vs-table-vs-nothing/m-p/592962#M206383</guid>
      <dc:creator>yshen</dc:creator>
      <dc:date>2022-04-07T18:25:41Z</dc:date>
    </item>
  </channel>
</rss>

