<?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 Message About Literals in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-Message-About-Literals/m-p/465651#M191736</link>
    <description>&lt;P&gt;&lt;CODE&gt;IN&lt;/CODE&gt; requires a comma-separated list of field names, numbers, or strings.  Run the subsearches alone and you'll find they are not returning such output.  Creative use of the &lt;CODE&gt;format&lt;/CODE&gt; command may be able to remedy that.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 14:46:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-10-24T14:46:53Z</dc:date>
    <item>
      <title>Error Message About Literals</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-Message-About-Literals/m-p/465650#M191735</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
One of my biggest pet peeves about software is the lack of information around error messages. Obviously, a developer wrote the error code and its associated message. However, most software has a vast black hole around such messages.&lt;/P&gt;

&lt;P&gt;Case is point.&lt;BR /&gt;
&lt;STRONG&gt;"Error in 'search' command: Unable to parse the search: Right hand side of IN must be a collection of literals. '(localrefid = "WW201929400001699")' is not a literal."&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If I Google this error &lt;STRONG&gt;"Unable to parse the search: Right hand side of IN must be a collection of literals. "&lt;/STRONG&gt;, I receive ONE hit.&lt;BR /&gt;
&lt;A href="http://splunk476.rssing.com/chan-54950717/all_p1789.html"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Searching this page for &lt;STRONG&gt;literal&lt;/STRONG&gt; leads to&lt;BR /&gt;
&lt;A href="http://splunk476.rssing.com/browser.php?indx=54950717&amp;amp;item=35772"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Which in turn leads to NOWHERE, none of the links work.&lt;/P&gt;

&lt;P&gt;Here is my code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test"
    AND priority="INFO"
    AND ("STARTED" OR "FINISHED") 
    AND (localrefid IN 
    [ search index="test"
        AND priority="INFO"
        AND (localrefid!="12345" AND localrefid!="null" OR localrefid!="")
        AND ("STARTED" OR "FINISHED") 
    | dedup localrefid 
    | table localrefid ]
    OR token IN
    [ search index="test"
        AND priority="INFO"
        AND localrefid!="12345"
        AND (token!="null" AND token!="")
        AND ("STARTED" OR "FINISHED") 
    | dedup token 
    | table token ] ) 
| dedup _raw
| rex field=_raw "(FINISHED|STARTED\s)\:\s(?&amp;lt;transMethod&amp;gt;\w*)\s" 
| rex field=_raw "Total Time\s(?&amp;lt;methodTime&amp;gt;\d*\.?\d*)\sseconds" 
| eval methodTime=round(methodTime,3) 
| transaction localrefid, token
| sort +_time, localrefid, token 
| table _time, appName, transMethod, localrefid, token, eventcount, methodTime, _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance for your assistance with this undocumented error (at least in my search of the Internet), and for dealing with my pet peeve. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-Message-About-Literals/m-p/465650#M191735</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2019-10-24T14:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message About Literals</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-Message-About-Literals/m-p/465651#M191736</link>
      <description>&lt;P&gt;&lt;CODE&gt;IN&lt;/CODE&gt; requires a comma-separated list of field names, numbers, or strings.  Run the subsearches alone and you'll find they are not returning such output.  Creative use of the &lt;CODE&gt;format&lt;/CODE&gt; command may be able to remedy that.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-Message-About-Literals/m-p/465651#M191736</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-24T14:46:53Z</dc:date>
    </item>
  </channel>
</rss>

