<?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 'where' command: The 'in' function is unsupported or undefined. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371236#M174740</link>
    <description>&lt;P&gt;We can all celebrate v6.6.1:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/ReleaseNotes/NewSplunkCloudFeatures"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/ReleaseNotes/NewSplunkCloudFeatures&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Because this:&lt;BR /&gt;
New SQL-like IN SPL operator    New SPL operator that acts as a shorthand for multiple disjunctions of one field.   See Comparison and Conditional functions and search in the Search Reference manual.&lt;/P&gt;

&lt;P&gt;So this:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/SearchReference/ConditionalFunctions#in.28VALUE-LIST.29"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/SearchReference/ConditionalFunctions#in.28VALUE-LIST.29&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And this:&lt;BR /&gt;
You can use this function with the eval, fieldformat, and where commands, and as part of eval expressions with other commands.&lt;BR /&gt;
There is also an IN operator that is similar to the in(VALUE-LIST) function that you can use with the search and tstats commands.&lt;BR /&gt;
The following syntax is supported:&lt;BR /&gt;
...| where in(field,"value1","value2", ...)&lt;BR /&gt;
...| where field in("value1","value2", ...)&lt;BR /&gt;
...| eval new_field=in(field,"value1","value2", ...)&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 15:10:06 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-10-04T15:10:06Z</dc:date>
    <item>
      <title>Error in 'where' command: The 'in' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371230#M174734</link>
      <description>&lt;P&gt;Hi I tried to search as below, with where in(VALUELIST) function as described in: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/ConditionalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/ConditionalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=foo TradeEvent=NEW |where in( TradeID,"value1","value2") |fields TradeID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I got error as title. could you advise?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 05:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371230#M174734</guid>
      <dc:creator>leonjxtan</dc:creator>
      <dc:date>2017-05-10T05:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The 'in' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371231#M174735</link>
      <description>&lt;P&gt;Just to make sure; are you running Splunk 6.6.0?&lt;BR /&gt;
Because if you are on Splunk cloud (as tagged) the version is Splunk 6.5.1612&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 05:47:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371231#M174735</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-05-10T05:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The 'in' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371232#M174736</link>
      <description>&lt;P&gt;I'm using Splunk Enterprise 6.5.2.&lt;BR /&gt;
The Splunk-Enterprise tag for some reason is not allowed to use, error: The following topics are not present in the system, and you don't have permissions to create new ones: splunk-enterprise&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 05:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371232#M174736</guid>
      <dc:creator>leonjxtan</dc:creator>
      <dc:date>2017-05-10T05:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The 'in' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371233#M174737</link>
      <description>&lt;P&gt;@leonjxtan, in seems to be supported only in 6.6 onward...Following is the list of supported evaluation functions for 6.5.2&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 06:45:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371233#M174737</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-10T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The 'in' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371234#M174738</link>
      <description>&lt;P&gt;oh ic. thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 06:50:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371234#M174738</guid>
      <dc:creator>leonjxtan</dc:creator>
      <dc:date>2017-05-10T06:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The 'in' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371235#M174739</link>
      <description>&lt;P&gt;Splunk 6.6.x introuduces  IN clause similar to SQL. So if you are on 6.5.2 you won't have it.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.0/ReleaseNotes/MeetSplunk"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.0/ReleaseNotes/MeetSplunk&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; New SQL-like IN SPL operator   New SPL operator that acts as a shorthand for multiple disjunctions of one field.   See Comparison and Conditional functions and search in the Search Reference manual.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;6.5.2 Where operators: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Where"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Where&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 08:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371235#M174739</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-05-10T08:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The 'in' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371236#M174740</link>
      <description>&lt;P&gt;We can all celebrate v6.6.1:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/ReleaseNotes/NewSplunkCloudFeatures"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/ReleaseNotes/NewSplunkCloudFeatures&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Because this:&lt;BR /&gt;
New SQL-like IN SPL operator    New SPL operator that acts as a shorthand for multiple disjunctions of one field.   See Comparison and Conditional functions and search in the Search Reference manual.&lt;/P&gt;

&lt;P&gt;So this:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/SearchReference/ConditionalFunctions#in.28VALUE-LIST.29"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/SearchReference/ConditionalFunctions#in.28VALUE-LIST.29&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And this:&lt;BR /&gt;
You can use this function with the eval, fieldformat, and where commands, and as part of eval expressions with other commands.&lt;BR /&gt;
There is also an IN operator that is similar to the in(VALUE-LIST) function that you can use with the search and tstats commands.&lt;BR /&gt;
The following syntax is supported:&lt;BR /&gt;
...| where in(field,"value1","value2", ...)&lt;BR /&gt;
...| where field in("value1","value2", ...)&lt;BR /&gt;
...| eval new_field=in(field,"value1","value2", ...)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 15:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-in-function-is-unsupported-or/m-p/371236#M174740</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-10-04T15:10:06Z</dc:date>
    </item>
  </channel>
</rss>

