<?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 PARSER: Applying intentions failed Error in 'append' command: The last argument must be a subsearch. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/PARSER-Applying-intentions-failed-Error-in-append-command-The/m-p/86113#M4669</link>
    <description>&lt;P&gt;Greetings everyone. I am trying to build a large search into a dashboard and getting the error shown in the title. Any ideas? It works just fine from the command line (other than the regex capture groups using the greater than/less than escape codes instead of symbols).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| append [search (index=prod_msp sourcetype=msp-prod Call_ID_1!=unknown Call_ID_1!=NULL AND ($TN$ OR 1$TN$ OR +1$TN$)) OR (index=prodcorr sourcetype=as-cdr AS_Direction=Terminating Call_ID_1!=NULL Call_ID_2!=NULL AND ($TN$ OR 1$TN$ OR +1$TN$)) OR (index=premed_pbts PBTS_ORIG_SIP_CALL_ID!=NULL PBTS_TERM_SIP_CALL_ID!=NULL AND ($TN$ OR 1$TN$ OR +1$TN$)) OR (index=premed_sbc SBC_ORIG_SIP_CALL_ID!=NULL AND ($TN$ OR 1$TN$ OR +1$TN$))|eval CID1=Call_ID_1|eval CID2=coalesce(Call_ID_2,PBTS_TERM_SIP_CALL_ID)|eval CID3=coalesce(PBTS_ORIG_SIP_CALL_ID,SBC_TERM_SIP_CALL_ID)] 
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, the last part of the append statement IS a subsearch, so I don't understand why splunk is complaining.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2011 17:44:10 GMT</pubDate>
    <dc:creator>msarro</dc:creator>
    <dc:date>2011-10-04T17:44:10Z</dc:date>
    <item>
      <title>PARSER: Applying intentions failed Error in 'append' command: The last argument must be a subsearch.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/PARSER-Applying-intentions-failed-Error-in-append-command-The/m-p/86113#M4669</link>
      <description>&lt;P&gt;Greetings everyone. I am trying to build a large search into a dashboard and getting the error shown in the title. Any ideas? It works just fine from the command line (other than the regex capture groups using the greater than/less than escape codes instead of symbols).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| append [search (index=prod_msp sourcetype=msp-prod Call_ID_1!=unknown Call_ID_1!=NULL AND ($TN$ OR 1$TN$ OR +1$TN$)) OR (index=prodcorr sourcetype=as-cdr AS_Direction=Terminating Call_ID_1!=NULL Call_ID_2!=NULL AND ($TN$ OR 1$TN$ OR +1$TN$)) OR (index=premed_pbts PBTS_ORIG_SIP_CALL_ID!=NULL PBTS_TERM_SIP_CALL_ID!=NULL AND ($TN$ OR 1$TN$ OR +1$TN$)) OR (index=premed_sbc SBC_ORIG_SIP_CALL_ID!=NULL AND ($TN$ OR 1$TN$ OR +1$TN$))|eval CID1=Call_ID_1|eval CID2=coalesce(Call_ID_2,PBTS_TERM_SIP_CALL_ID)|eval CID3=coalesce(PBTS_ORIG_SIP_CALL_ID,SBC_TERM_SIP_CALL_ID)] 
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, the last part of the append statement IS a subsearch, so I don't understand why splunk is complaining.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2011 17:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/PARSER-Applying-intentions-failed-Error-in-append-command-The/m-p/86113#M4669</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-10-04T17:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: PARSER: Applying intentions failed Error in 'append' command: The last argument must be a subsearch.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/PARSER-Applying-intentions-failed-Error-in-append-command-The/m-p/86114#M4670</link>
      <description>&lt;P&gt;Encountered a similar problem...&lt;BR /&gt;
To fix, I re-wrote the query with spaces instead of tabs and it appears to have worked.&lt;BR /&gt;
For example, I initially had:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="searchindex" sourcetype="sourcetype" AND thisandthat
        | test1
        | test2
        | append [search blabalbal
                   | blablabla
                   | blablablabla
                   | blabla]
        | chart blablaa
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Fixed by changing it to: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="searchindex" sourcetype="sourcetype" AND thisandthat | test1 | test2 | append [search blabalbal | blablabla | blablablabla  | blabla]  | chart blablaa
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I wrote the initial query in notepad++, copied/pasted it which is what failed. When re-written without the tabs it was fine. &lt;BR /&gt;
I assume there is a character it didn't like that was inserted by NP++.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 13:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/PARSER-Applying-intentions-failed-Error-in-append-command-The/m-p/86114#M4670</guid>
      <dc:creator>moesaidi</dc:creator>
      <dc:date>2017-03-16T13:41:03Z</dc:date>
    </item>
  </channel>
</rss>

