<?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: Error in 'join' command: Usage: join  ()? [subsearch] in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-in-join-command-Usage-join-subsearch/m-p/111668#M29260</link>
    <description>&lt;P&gt;Make sure the ENTIRE search is on a single line within the macros.conf file. Line breaks will kill this quite quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2013 15:40:46 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2013-10-23T15:40:46Z</dc:date>
    <item>
      <title>Error in 'join' command: Usage: join  ()? [subsearch]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-join-command-Usage-join-subsearch/m-p/111667#M29259</link>
      <description>&lt;P&gt;I get the error "&lt;CODE&gt;Error in 'join' command: Usage: join &amp;lt;options&amp;gt; (&amp;lt;join-fields&amp;gt;)? [subsearch]&lt;/CODE&gt;" when running the following search within a macro but it runs fine and produces desired results if i run it in a regular search without encasulating it inside a macro so it means that the main and subsearches inside the join command are working fine. Any help will be appreciated.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup bank_statement | join type=outer key [search index=treasury sourcetype="treasury_wss_ebs" | regex path="ARCHIVE|ERROR" | regex path!="SWIFT" | eval mtime=round(strptime(modtime, "%a %b %d %H:%M:%S %Y")) | eval tz=strftime(now(),"%z") | eval offset=tonumber(tz/100) | eval eastern_time=mtime+(offset*60*60) | eval time=strftime(eastern_time, "%b %d %H:%M:%S %Y") | eval x=split(path,"/") | eval c=mvcount(x)-1 | eval filename=mvindex(x,c) | rex field=filename "^(?&amp;lt;bank&amp;gt;[^_]+)" | where bank!=filename | eval y=split(filename,"_") | eval type=mvindex(y,2) | eval x=mvindex(y,3) | rex field=x "^(?&amp;lt;location&amp;gt;[^\d]+)" | eval location=if(isnull(location),"-",location) | eval key=bank.type.location]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-join-command-Usage-join-subsearch/m-p/111667#M29259</guid>
      <dc:creator>jeffreygaraygay</dc:creator>
      <dc:date>2013-10-23T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'join' command: Usage: join  ()? [subsearch]</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-join-command-Usage-join-subsearch/m-p/111668#M29260</link>
      <description>&lt;P&gt;Make sure the ENTIRE search is on a single line within the macros.conf file. Line breaks will kill this quite quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-join-command-Usage-join-subsearch/m-p/111668#M29260</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-23T15:40:46Z</dc:date>
    </item>
  </channel>
</rss>

