<?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 expression is malformed. Expected ). in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684247#M233577</link>
    <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; operator only works in the &lt;FONT face="courier new,courier"&gt;search &lt;/FONT&gt;command.&amp;nbsp; In &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; you must use the &lt;FONT face="courier new,courier"&gt;in&lt;/FONT&gt; function.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| loadjob savedsearch="name:search:cust_info"
| where in(AccountType,$AccountType$)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2024 14:11:47 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-04-15T14:11:47Z</dc:date>
    <item>
      <title>Error in 'where' command: The expression is malformed. Expected ).</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684245#M233576</link>
      <description>&lt;P&gt;So I am creating a dashboard and&amp;nbsp;I keep getting this error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Error in 'where' command: The expression is malformed. Expected ).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is what I have:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| loadjob savedsearch="name:search:cust_info"
| where AccountType IN ($AccountType$)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I created a multiselect filter on AccountType and I want the SPL to query on those selected.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What could I be missing or another way to achieve this query to filter on AccountType?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 14:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684245#M233576</guid>
      <dc:creator>sumarri</dc:creator>
      <dc:date>2024-04-15T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The expression is malformed. Expected ).</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684247#M233577</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; operator only works in the &lt;FONT face="courier new,courier"&gt;search &lt;/FONT&gt;command.&amp;nbsp; In &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; you must use the &lt;FONT face="courier new,courier"&gt;in&lt;/FONT&gt; function.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| loadjob savedsearch="name:search:cust_info"
| where in(AccountType,$AccountType$)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 14:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684247#M233577</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-15T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The expression is malformed. Expected ).</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684248#M233578</link>
      <description>&lt;P&gt;Hey! I still get the same error. But thank you for trying! Let me know if something else clicks. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 14:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684248#M233578</guid>
      <dc:creator>sumarri</dc:creator>
      <dc:date>2024-04-15T14:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The expression is malformed. Expected ).</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684252#M233581</link>
      <description>&lt;P&gt;What does the $AccountType$ token expand to?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 14:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684252#M233581</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-15T14:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The expression is malformed. Expected ).</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684254#M233583</link>
      <description>&lt;P&gt;So, it is expected to get the AccountTypes selected from the user on the dashboard from the multiselect filter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 14:40:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684254#M233583</guid>
      <dc:creator>sumarri</dc:creator>
      <dc:date>2024-04-15T14:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'where' command: The expression is malformed. Expected ).</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684258#M233587</link>
      <description>&lt;P&gt;I have soled the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I needed to add quotes to the AccountType:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| where AccountType IN ("$AccountType$")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also needed to change the delimiter:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This solved the problem for me! Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 15:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-where-command-The-expression-is-malformed-Expected/m-p/684258#M233587</guid>
      <dc:creator>sumarri</dc:creator>
      <dc:date>2024-04-15T15:54:39Z</dc:date>
    </item>
  </channel>
</rss>

