<?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 does my search return error &amp;quot;Unable to parse the search: Comparator '=' is missing a term on the right hand side&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270033#M81258</link>
    <description>&lt;P&gt;This is a saner method for sure&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 13:49:42 GMT</pubDate>
    <dc:creator>jplumsdaine22</dc:creator>
    <dc:date>2017-01-31T13:49:42Z</dc:date>
    <item>
      <title>Why does my search return error "Unable to parse the search: Comparator '=' is missing a term on the right hand side"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270029#M81254</link>
      <description>&lt;P&gt;I had this search working and now it seems to have stopped gives an error.  Thoughts?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Search:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=symantec sourcetype=file Host_Name=[search index=dhcp "*ip address*" "DHCPACK" AND "RENEW"| sort by _time desc | rex "\((?.*?)\)"| dedup Hostname | table Hostname | return $Hostname] | dedup user | eval time=strftime(_time, "%m/%d/%Y %H:%M:%S") | table time,Host_Name,user,_raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'search' command: Unable to parse the search: Comparator '=' is missing a term on the right hand side.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2017 22:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270029#M81254</guid>
      <dc:creator>HealyDPS</dc:creator>
      <dc:date>2017-01-30T22:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return error "Unable to parse the search: Comparator '=' is missing a term on the right hand side"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270030#M81255</link>
      <description>&lt;P&gt;Try using it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=symantec sourcetype=file [search index=dhcp "Require for all Events or Make "*"" "DHCPACK" AND "RENEW"| sort by _time desc | rex "\((?.*?)\)"| dedup Hostname | table Hostname | rename Hostname as Host_Name] | dedup user | eval time=strftime(_time, "%m/%d/%Y %H:%M:%S") | table time,Host_Name,user,_raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Removed the comparator and used subsearch.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 07:17:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270030#M81255</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2017-01-31T07:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return error "Unable to parse the search: Comparator '=' is missing a term on the right hand side"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270031#M81256</link>
      <description>&lt;P&gt;The error is most likely triggereing because the subsearch &lt;CODE&gt;[search index=dhcp "Require for all Events or Make "*"" "DHCPACK" AND "RENEW"| sort by _time desc | rex "\((?.*?)\)"| dedup Hostname | table Hostname | return $Hostname]&lt;/CODE&gt; is resolving to NULL, therefore your outer search is being run as &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=symantec sourcetype=file Host_Name= | ... etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check that your subsearch returns results, either by running the search on its own or look in the job inspector&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 09:23:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270031#M81256</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2017-01-31T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return error "Unable to parse the search: Comparator '=' is missing a term on the right hand side"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270032#M81257</link>
      <description>&lt;P&gt;I did the sub search and I get the information I am looking for. So how would I fix this now? Also I put in the information wrong. I am added a more correct search string.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270032#M81257</guid>
      <dc:creator>HealyDPS</dc:creator>
      <dc:date>2017-01-31T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return error "Unable to parse the search: Comparator '=' is missing a term on the right hand side"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270033#M81258</link>
      <description>&lt;P&gt;This is a saner method for sure&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 13:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270033#M81258</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2017-01-31T13:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return error "Unable to parse the search: Comparator '=' is missing a term on the right hand side"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270034#M81259</link>
      <description>&lt;P&gt;&lt;STRONG&gt;So I did this:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;index=symantec sourcetype=&lt;EM&gt;symantecfield&lt;/EM&gt; [search index=dhcp "&lt;EM&gt;ip&lt;/EM&gt;" "DHCPACK" AND "RENEW"| sort by _time desc | rex "((?.*?))"| dedup Hostname | table Hostname | return $Hostname] | dedup user | eval time=strftime(_time, "%m/%d/%Y %H:%M:%S") | table time,Host_Name,user,_raw&lt;/P&gt;

&lt;P&gt;No longer getting error but I am getting &lt;EM&gt;no results&lt;/EM&gt;. But if I put the results of the subsearch in search I will get the results I want. Both searches seems to work by themselves but not together.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270034#M81259</guid>
      <dc:creator>HealyDPS</dc:creator>
      <dc:date>2020-09-29T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return error "Unable to parse the search: Comparator '=' is missing a term on the right hand side"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270035#M81260</link>
      <description>&lt;P&gt;Thanks that worked. Plus I figured out why no results were coming back. Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 14:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270035#M81260</guid>
      <dc:creator>HealyDPS</dc:creator>
      <dc:date>2017-01-31T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return error "Unable to parse the search: Comparator '=' is missing a term on the right hand side"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270036#M81261</link>
      <description>&lt;P&gt;Check the macro definition in macros.conf at the location /opt/splunk/etc/apps/digitalguardian_web . In my case, the marco was wrongly defined.&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME$/etc/apps/digitalguardian_web/local/macros.conf&lt;BR /&gt;
&lt;STRONG&gt;Wrong Definition&lt;/STRONG&gt; - &lt;BR /&gt;
[index_macro]&lt;BR /&gt;
definition = index=digitalguardian&lt;BR /&gt;
&lt;STRONG&gt;Right Definition&lt;/STRONG&gt;&lt;BR /&gt;
[index_macro]&lt;BR /&gt;
definition = digitalguardian&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-search-return-error-quot-Unable-to-parse-the-search/m-p/270036#M81261</guid>
      <dc:creator>abhinav_maxonic</dc:creator>
      <dc:date>2020-09-29T14:55:20Z</dc:date>
    </item>
  </channel>
</rss>

