<?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 can't I use multisearch here? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-use-multisearch-here/m-p/454185#M170560</link>
    <description>&lt;P&gt;I refactored it to not use a left or an outer join, by just using a &lt;CODE&gt;NOT [...]&lt;/CODE&gt; subsearch in the search clause.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 18:07:06 GMT</pubDate>
    <dc:creator>khevans</dc:creator>
    <dc:date>2019-07-02T18:07:06Z</dc:date>
    <item>
      <title>Why can't I use multisearch here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-use-multisearch-here/m-p/454183#M170558</link>
      <description>&lt;P&gt;I'm trying to use Multisearch to combine the results of two commands. My search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch 
    [ search index=... sourcetype=access_combined method != OPTIONS user=khevans host=... uri_path != "/" 
        earliest=1561994601 latest=1561994640 
    | join uri type=left 
        [ search index=... sourcetype=access_combined status = 200 method != OPTIONS user=khevans 
        | fields referer referer_domain 
        | dedup referer 
        | eval uri = ifnull(substr(referer, len(referer_domain) + 1), uri) 
        | eval is_nav_out = 1 ] 
    | where isnull(is_nav_out) 
    | eval ref_uri = ifnull(substr(referer, len(referer_domain) + 1), start_uri) 
    | where ref_uri="..." 
    | eval type = "Web"] 
    [ search eventtype=... host=... api_uri != ...
        earliest=1561994601 latest=1561994640 
    | where api_user == "khevans" OR isnull(api_user) 
    | eval uri_path = api_uri . IFNULL("?" . api_uri_query, ""),
        user = IFNULL(api_user, "?"),
        type = "API" ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am getting this error: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Error in 'multisearch' command: Multisearch subsearches may only contain purely streaming operations (subsearch 1 contains a non-streaming command.)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;According to the &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Commandsbytype#Streaming_commands"&gt;list of streaming commands&lt;/A&gt;, all of these are streaming. Additionally, when I run each search query independently, and press inspect job, both &lt;CODE&gt;eventIsStreaming = true&lt;/CODE&gt; and &lt;CODE&gt;resultIsStreaming = true&lt;/CODE&gt;. Why can't I run this &lt;CODE&gt;multisearch&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 16:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-use-multisearch-here/m-p/454183#M170558</guid>
      <dc:creator>khevans</dc:creator>
      <dc:date>2019-07-02T16:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use multisearch here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-use-multisearch-here/m-p/454184#M170559</link>
      <description>&lt;P&gt;To add: it seems that the left join is causing the problem, so I guess I can refactor it to not use the join. But I'm still confused as to why the Job Inspector and documentation states that it is streaming.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-use-multisearch-here/m-p/454184#M170559</guid>
      <dc:creator>khevans</dc:creator>
      <dc:date>2019-07-02T18:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I use multisearch here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-use-multisearch-here/m-p/454185#M170560</link>
      <description>&lt;P&gt;I refactored it to not use a left or an outer join, by just using a &lt;CODE&gt;NOT [...]&lt;/CODE&gt; subsearch in the search clause.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-use-multisearch-here/m-p/454185#M170560</guid>
      <dc:creator>khevans</dc:creator>
      <dc:date>2019-07-02T18:07:06Z</dc:date>
    </item>
  </channel>
</rss>

