<?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 'eval' type check failed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-type-check-failed/m-p/583458#M203176</link>
    <description>Another option is rename those fields to something without dot in their names.</description>
    <pubDate>Wed, 02 Feb 2022 22:19:18 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2022-02-02T22:19:18Z</dc:date>
    <item>
      <title>Error in 'eval' type check failed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-type-check-failed/m-p/583285#M203098</link>
      <description>&lt;P&gt;I have a json data from file generated from the okla speedtest -f json command. I have tried to cast it or eval in different ways but I am doing something wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;Error in 'eval' command: Type checking failed. '*' only takes numbers.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My search command is:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="SpeedTest"
| eval dmbs=(download.bandwidth)*8/1000000 
| table _time download.bandwidth dmbs&lt;/LI-CODE&gt;&lt;P&gt;And the example json is injected like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
   download: { [-]
     bandwidth: 10420951
     bytes: 81587520
     elapsed: 7908
   }
   interface: { [+]
   }
   isp: Vivo
   packetLoss: 0
   ping: { [+]
   }
   result: { [+]
   }
   server: { [+]
   }
   timestamp: 2022-02-01T22:00:31Z
   type: result
   upload: { [-]
     bandwidth: 5706691
     bytes: 80526240
     elapsed: 14946
   }
}&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;</description>
      <pubDate>Tue, 01 Feb 2022 22:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-type-check-failed/m-p/583285#M203098</guid>
      <dc:creator>jenkinsta</dc:creator>
      <dc:date>2022-02-01T22:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' type check failed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-type-check-failed/m-p/583287#M203100</link>
      <description>&lt;P&gt;Try single quotes around field names with dots in (otherwise it looks like you are trying to concatenate two strings which produces a type check error when you try to multiply the concatenated string).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="SpeedTest"
| eval dmbs='download.bandwidth'*8/1000000 
| table _time download.bandwidth dmbs&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Feb 2022 22:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-type-check-failed/m-p/583287#M203100</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-01T22:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' type check failed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-type-check-failed/m-p/583458#M203176</link>
      <description>Another option is rename those fields to something without dot in their names.</description>
      <pubDate>Wed, 02 Feb 2022 22:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-type-check-failed/m-p/583458#M203176</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-02-02T22:19:18Z</dc:date>
    </item>
  </channel>
</rss>

