<?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: Where Statement for exact numeric value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-yielding-an-error-with-Where-Statement-for-exact/m-p/606305#M210873</link>
    <description>&lt;P&gt;Try not to have special characters in field names - if you want to continue with them, put the field name in single quotes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where 'A.distance'=1&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 20 Jul 2022 08:14:22 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-07-20T08:14:22Z</dc:date>
    <item>
      <title>Why am I yielding an error with Where Statement for exact numeric value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-yielding-an-error-with-Where-Statement-for-exact/m-p/606303#M210872</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am experiencing an interesting Issue. I am trying to filter for a specific value in a numeric field. Following statement works finde:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="IndexA" 
| eval A.distance=trim('A.distance',"'") 
| eval A.distance='A.distance'/100 
| search A.distance=1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I am trying to replace the search with a where, I am getting the Error "&lt;SPAN&gt;&lt;EM&gt;Error in 'where' command: Type checking failed. The '==' operator received different types.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="IndexA" 
| eval A.distance=trim('A.distance',"'") 
| eval A.distance='A.distance'/100 
| where A.distance=1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Event Coverage if this value is 100% and all the values get for typeof() the result "Number". All of the values do not have a digit after the comma. We are using Splunk Enterprise 8.2.3.3 . Does someone know, why the where statement is yielding an error in this case?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-yielding-an-error-with-Where-Statement-for-exact/m-p/606303#M210872</guid>
      <dc:creator>blablabla</dc:creator>
      <dc:date>2022-07-20T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement for exact numeric value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-yielding-an-error-with-Where-Statement-for-exact/m-p/606305#M210873</link>
      <description>&lt;P&gt;Try not to have special characters in field names - if you want to continue with them, put the field name in single quotes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where 'A.distance'=1&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Jul 2022 08:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-yielding-an-error-with-Where-Statement-for-exact/m-p/606305#M210873</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-20T08:14:22Z</dc:date>
    </item>
  </channel>
</rss>

