<?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 'search' command: Unable to parse the search: Right hand side of IN must be a collection of literals. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-in-search-command-Unable-to-parse-the-search-Right-hand/m-p/630585#M219076</link>
    <description>&lt;P&gt;Fixed it by adding&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;          | dedup feature
          | fields feature
          | format "" "" "" "" "," ""
          | eval search=replace (search, "feature=", "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 06:28:21 GMT</pubDate>
    <dc:creator>buttsurfer</dc:creator>
    <dc:date>2023-02-13T06:28:21Z</dc:date>
    <item>
      <title>Error in 'search' command: Unable to parse the search: Right hand side of IN must be a collection of literals?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-search-command-Unable-to-parse-the-search-Right-hand/m-p/630583#M219075</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=index1 type=1 feature IN ([search index=index1 type=type2 application=weather_app
    | dedup feature
    | fields feature
    | format
    ])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above code returns this error and i cant seem to figure out how to fix it. Any help would be appreciated&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Error in 'search' command: Unable to parse the search: Right hand side of IN must be a collection of literals. '((feature = "feature1") OR (feature = "feature2") OR (feature = "feature3") OR (feature = "feature4") is not a literal.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 17:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-search-command-Unable-to-parse-the-search-Right-hand/m-p/630583#M219075</guid>
      <dc:creator>buttsurfer</dc:creator>
      <dc:date>2023-02-13T17:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'search' command: Unable to parse the search: Right hand side of IN must be a collection of literals.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-search-command-Unable-to-parse-the-search-Right-hand/m-p/630585#M219076</link>
      <description>&lt;P&gt;Fixed it by adding&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;          | dedup feature
          | fields feature
          | format "" "" "" "" "," ""
          | eval search=replace (search, "feature=", "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 06:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-search-command-Unable-to-parse-the-search-Right-hand/m-p/630585#M219076</guid>
      <dc:creator>buttsurfer</dc:creator>
      <dc:date>2023-02-13T06:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'search' command: Unable to parse the search: Right hand side of IN must be a collection of literals.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-search-command-Unable-to-parse-the-search-Right-hand/m-p/630598#M219080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252798"&gt;@buttsurfer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can also use this easier solution:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index1 type=1 [search index=index1 type=type2 application=weather_app | rename feature AS query | fields query ]
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-search-command-Unable-to-parse-the-search-Right-hand/m-p/630598#M219080</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-13T07:17:20Z</dc:date>
    </item>
  </channel>
</rss>

