<?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 Error when using append and join-- Search Factory: Unknown search command 'index'. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-when-using-append-and-join-Search-Factory-Unknown-search/m-p/343373#M101675</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;Below are the two queries for which I am trying to join the output of the both queries but I am facing an issue as &lt;STRONG&gt;Search Factory: Unknown search command 'index'.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;First query&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=apache* sourcetype=access_log&lt;BR /&gt;
host=xyz OR host=abc | timechart&lt;BR /&gt;
span=10m count as requests_per_minute&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Second query&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=apache* sourcetype=web_logs&lt;BR /&gt;
host=cde OR host=wxy | table BClog&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;When I tried the both append and join it is not working .&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=apache* sourcetype=access_log&lt;BR /&gt;
host=xyz OR host=abc | timechart&lt;BR /&gt;
span=10m count as requests_per_minute&lt;BR /&gt;
| join [ index=apache*&lt;BR /&gt;
sourcetype=web_logs host=cde OR&lt;BR /&gt;
host=wxy | table BClog ]&lt;/P&gt;

&lt;P&gt;index=apache* sourcetype=access_log&lt;BR /&gt;
host=xyz OR host=abc | timechart&lt;BR /&gt;
span=10m count as requests_per_minute&lt;BR /&gt;
| append [ index=apache*&lt;BR /&gt;
sourcetype=web_logs host=cde OR&lt;BR /&gt;
host=wxy | table BClog ]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:34:03 GMT</pubDate>
    <dc:creator>kteng2024</dc:creator>
    <dc:date>2020-09-29T16:34:03Z</dc:date>
    <item>
      <title>Error when using append and join-- Search Factory: Unknown search command 'index'.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-when-using-append-and-join-Search-Factory-Unknown-search/m-p/343373#M101675</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;Below are the two queries for which I am trying to join the output of the both queries but I am facing an issue as &lt;STRONG&gt;Search Factory: Unknown search command 'index'.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;First query&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=apache* sourcetype=access_log&lt;BR /&gt;
host=xyz OR host=abc | timechart&lt;BR /&gt;
span=10m count as requests_per_minute&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Second query&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=apache* sourcetype=web_logs&lt;BR /&gt;
host=cde OR host=wxy | table BClog&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;When I tried the both append and join it is not working .&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=apache* sourcetype=access_log&lt;BR /&gt;
host=xyz OR host=abc | timechart&lt;BR /&gt;
span=10m count as requests_per_minute&lt;BR /&gt;
| join [ index=apache*&lt;BR /&gt;
sourcetype=web_logs host=cde OR&lt;BR /&gt;
host=wxy | table BClog ]&lt;/P&gt;

&lt;P&gt;index=apache* sourcetype=access_log&lt;BR /&gt;
host=xyz OR host=abc | timechart&lt;BR /&gt;
span=10m count as requests_per_minute&lt;BR /&gt;
| append [ index=apache*&lt;BR /&gt;
sourcetype=web_logs host=cde OR&lt;BR /&gt;
host=wxy | table BClog ]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-when-using-append-and-join-Search-Factory-Unknown-search/m-p/343373#M101675</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2020-09-29T16:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using append and join-- Search Factory: Unknown search command 'index'.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-when-using-append-and-join-Search-Factory-Unknown-search/m-p/343374#M101676</link>
      <description>&lt;P&gt;@kteng2024, add &lt;CODE&gt;search&lt;/CODE&gt; in the subquery and try.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apache* sourcetype=access_log
host=xyz OR host=abc | timechart
span=10m count as requests_per_minute
| append [ search index=apache*
sourcetype=web_logs host=cde OR
host=wxy | table BClog ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Nov 2017 21:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-when-using-append-and-join-Search-Factory-Unknown-search/m-p/343374#M101676</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-03T21:22:47Z</dc:date>
    </item>
  </channel>
</rss>

