<?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: Why does appendcols with search post-process fail? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-appendcols-with-search-post-process-fail/m-p/156381#M43985</link>
    <description>&lt;P&gt;Only the base search actually runs the search job.  The reference search act as filter and/ or modifiers of the original data.  The base search should include all data need in post process search, because they will not initiate a search job.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2015 18:38:50 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2015-08-06T18:38:50Z</dc:date>
    <item>
      <title>Why does appendcols with search post-process fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-appendcols-with-search-post-process-fail/m-p/156380#M43984</link>
      <description>&lt;P&gt;I've got a search defined in a simple dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search id="jenkins_search"&amp;gt;
  &amp;lt;query&amp;gt;index=scm sourcetype=jenkins_test_summary test summary| head 1&amp;lt;/query&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I reference that search further down in the panels. In one of them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search base="jenkins_search"&amp;gt;
  &amp;lt;query&amp;gt;stats last(failures) as Failures by tests&amp;lt;/query&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That works. But if I modify this to include an appendcols command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search base="jenkins_search"&amp;gt;
  &amp;lt;query&amp;gt;stats last(failures) as Failures by tests | appendcols [search index=test | stats count as TOTAL | fields TOTAL]&amp;lt;/query&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The panel fails with the error: &lt;STRONG&gt;"Error in appendcols command: You can only use appendcols after a reporting command (such as stats, chart or timechart)."&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;REALLY curious... if I click the magnifying glass, bottom left of the panel, to open in search, the entire search works as intended.&lt;/P&gt;

&lt;P&gt;Am I missing something, or is this a bug with the postProcess feature? Running on Splunk Enterprise 6.2.4 Linux 64-bit.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Jon&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 17:31:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-appendcols-with-search-post-process-fail/m-p/156380#M43984</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2015-08-06T17:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why does appendcols with search post-process fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-appendcols-with-search-post-process-fail/m-p/156381#M43985</link>
      <description>&lt;P&gt;Only the base search actually runs the search job.  The reference search act as filter and/ or modifiers of the original data.  The base search should include all data need in post process search, because they will not initiate a search job.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 18:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-appendcols-with-search-post-process-fail/m-p/156381#M43985</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-08-06T18:38:50Z</dc:date>
    </item>
  </channel>
</rss>

