<?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 subsearch error in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/subsearch-error/m-p/88702#M22706</link>
    <description>&lt;P&gt;I tried to use subsearch to find the &lt;EM&gt;2nd last&lt;/EM&gt; synchronization event by using the following:&lt;/P&gt;

&lt;P&gt;synchronization [search synchronization | head 1 | eval earliest=relative_time(_time,"-1H") | eval latest=_time | fields earliest, latest]&lt;/P&gt;

&lt;P&gt;but I received the error message&lt;/P&gt;

&lt;P&gt;Error in 'search' command: Unable to parse the search: 'AND' operator is missing a clause on the left hand side.&lt;/P&gt;

&lt;P&gt;What is wrong here and what is the fix? Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:58:04 GMT</pubDate>
    <dc:creator>myli12</dc:creator>
    <dc:date>2020-09-28T09:58:04Z</dc:date>
    <item>
      <title>subsearch error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-error/m-p/88702#M22706</link>
      <description>&lt;P&gt;I tried to use subsearch to find the &lt;EM&gt;2nd last&lt;/EM&gt; synchronization event by using the following:&lt;/P&gt;

&lt;P&gt;synchronization [search synchronization | head 1 | eval earliest=relative_time(_time,"-1H") | eval latest=_time | fields earliest, latest]&lt;/P&gt;

&lt;P&gt;but I received the error message&lt;/P&gt;

&lt;P&gt;Error in 'search' command: Unable to parse the search: 'AND' operator is missing a clause on the left hand side.&lt;/P&gt;

&lt;P&gt;What is wrong here and what is the fix? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-error/m-p/88702#M22706</guid>
      <dc:creator>myli12</dc:creator>
      <dc:date>2020-09-28T09:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-error/m-p/88703#M22707</link>
      <description>&lt;P&gt;It would be a lot easier and fast to get the second last one with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;synchronization | head 2 | tail 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;But the explanation for your error is &lt;A href="http://splunk-base.splunk.com/answers/8271/error-in-unifiedsearch-unable-to-parse-the-missing-lhs-for-and-search-error-when-searching-for-surrounding-events-why"&gt;http://splunk-base.splunk.com/answers/8271/error-in-unifiedsearch-unable-to-parse-the-missing-lhs-for-and-search-error-when-searching-for-surrounding-events-why&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;synchronization [search synchronization | head 1 | eval earliest=relative_time(_time,"-1H") | eval latest=_time | fields earliest, latest | format "(" "(" " " ")" "OR" ")" ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Oct 2011 00:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-error/m-p/88703#M22707</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-10-08T00:01:08Z</dc:date>
    </item>
  </channel>
</rss>

