<?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 do I get a 400 stanza error when using a join command in searches? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425032#M121871</link>
    <description>&lt;P&gt;Try adding the &lt;CODE&gt;search&lt;/CODE&gt; command to the &lt;CODE&gt;join&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | join namespace
     [search source="/var/log/lag/mongostats.txt" namespace=* earliest=-12h@s 
     | eval namespace=trim(replace(namespace,"vodcoe-vdm.",""))]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Aug 2018 17:33:06 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-08-23T17:33:06Z</dc:date>
    <item>
      <title>Why do I get a 400 stanza error when using a join command in searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425031#M121870</link>
      <description>&lt;P&gt;I tried to add a simple &lt;CODE&gt;join&lt;/CODE&gt; onto my search but Splunk throws a 400 error &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"messages":[{"type":"FATAL","text":"Missing or malformed messages.conf stanza for SEARCHFACTORY:UNKNOWN_OP__namespace"}]}

&amp;lt;Search&amp;gt;
| eventstats earliest(count) as earliest_count,earliest(_time) as earliest_time,latest(_time) as latest_time, latest(count) as latest_count by namespace
| where latest_count=earliest_count
| eval l_time=strftime(latest_time,"%m/%d/%y %H:%M:%S")
| eval e_time=strftime(earliest_time,"%m/%d/%y %H:%M:%S")
| eval time_since_last = latest_time - earliest_time
| fieldformat time_since_last = tostring(time_since_last, "duration")
| join namespace
    [source="/var/log/lag/mongostats.txt" namespace=* earliest=-12h@s 
    | eval namespace=trim(replace(namespace,"vodcoe-vdm.",""))]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 15:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425031#M121870</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2018-08-23T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get a 400 stanza error when using a join command in searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425032#M121871</link>
      <description>&lt;P&gt;Try adding the &lt;CODE&gt;search&lt;/CODE&gt; command to the &lt;CODE&gt;join&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | join namespace
     [search source="/var/log/lag/mongostats.txt" namespace=* earliest=-12h@s 
     | eval namespace=trim(replace(namespace,"vodcoe-vdm.",""))]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 17:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425032#M121871</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-08-23T17:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get a 400 stanza error when using a join command in searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425033#M121872</link>
      <description>&lt;P&gt;i hope this issue is not related to join command.. &lt;BR /&gt;
In the middle of the SPL, we can not have this &lt;CODE&gt;[source=abc .... ]&lt;/CODE&gt;, &lt;/P&gt;

&lt;P&gt;with a search command, it will become a complete SPL..&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;join namespace [source="/var/log/lag/mongostats.txt" namespace=* earliest=-12h@s &lt;BR /&gt;
     | eval namespace=trim(replace(namespace,"vodcoe-vdm.",""))]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 05:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425033#M121872</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-08-24T05:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get a 400 stanza error when using a join command in searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425034#M121873</link>
      <description>&lt;P&gt;i hope this issue is not related to join command.. &lt;BR /&gt;
In the middle of the SPL, we can not have this &lt;CODE&gt;[source=abc .... ]&lt;/CODE&gt;, &lt;/P&gt;

&lt;P&gt;with a search command, it will become a complete SPL..&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;join namespace [source="/var/log/lag/mongostats.txt" namespace=* earliest=-12h@s &lt;BR /&gt;
     | eval namespace=trim(replace(namespace,"vodcoe-vdm.",""))]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 05:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425034#M121873</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-08-24T05:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get a 400 stanza error when using a join command in searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425035#M121874</link>
      <description>&lt;P&gt;Searches/subsearches need to start with a command.  "source" is not a command, but &lt;CODE&gt;search&lt;/CODE&gt; is.  There is an implicit &lt;CODE&gt;search&lt;/CODE&gt; at the beginning of every query, but not in subsearches.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 18:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-I-get-a-400-stanza-error-when-using-a-join-command-in/m-p/425035#M121874</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-08-24T18:50:22Z</dc:date>
    </item>
  </channel>
</rss>

