<?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' command: The expression is malformed in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615634#M50539</link>
    <description>&lt;P&gt;Issue has been solved&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 11:41:28 GMT</pubDate>
    <dc:creator>Druffin1</dc:creator>
    <dc:date>2022-10-03T11:41:28Z</dc:date>
    <item>
      <title>How to troubleshoot this Error in 'eval' command: The expression is malformed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615177#M50469</link>
      <description>&lt;P&gt;I am trying to execute a Dashboard in splunk and I'm getting this error message. It has to do time. Be is the code. Im new to splunk and having a issue with formatting the eval function. I had to commit out the CASE number but see if you can find out why the eval sttament is not woring in the query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="salesforce" source="/informatica/pmrootdir/Splunk_SFDC_Logs/*-eventlogfile-splunk.csv" host="louapplps2024" CASE(xxxxxxxxxxxxxx) earliest=-7d latest=now (EVENT_TYPE="ApexExecution") QUIDDITY IN (R,V,W,H,X,M,L,K,I,E) IS_LONG_RUNNING_REQUEST=1 | dedup REQUEST_ID | eval oraDbTime=IF(!isnull(sdbDbTime),round(oraDbTime/1000000,0),oraDbTime) | eval dbCpuTime=IF(!isnull(sdbDbTime),round(dbCpuTime/1000000,0),dbCpuTime) | eval sdbDbTime=round(sdbDbTime/1000000,0) | eval reqIsNull=IF(isnull(requestId) AND entryPoint="TRIGGERS","YES","NO")| where reqIsNull="NO" | eval permitTime= (runTime-5000) | eval permitTimeInSecs= (permitTime/1000) | eval runTimeInSecs= (runTime/1000) | eval endTime=_time | eval startTime=(_time-runTimeInSecs) | eval conTime=(_time-permitTimeInSecs)
$org_token$ EVENT_TYPE="LightningPageView" OR EVENT_TYPE="LightningPerformance" APP_NAME="siteforce:communityApp" $userId$ $app$ | timechart span=$timespan$ dc(USER_ID) as Views&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>Thu, 29 Sep 2022 14:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615177#M50469</guid>
      <dc:creator>Druffin1</dc:creator>
      <dc:date>2022-09-29T14:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The expression is malformed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615178#M50470</link>
      <description>&lt;P&gt;What is the value of org_token as it seems to have been appended to the eval command - is this the eval command in question?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 11:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615178#M50470</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-29T11:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The expression is malformed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615180#M50471</link>
      <description>&lt;P&gt;It's helpful if you post your search inside the code tags like below.&amp;nbsp; That may help you troubleshoot as well.&amp;nbsp; At a glance, I would say whatever is happening after your last eval is the problem.&amp;nbsp; Looks like maybe some tokens from the dashboard are just shoved in a random condition down there?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And you can always start eliminating pipes until the error goes away which can help you determine which one is problematic.&amp;nbsp; For example, remove the timehart and run the search.&amp;nbsp; Then the last eval, run the search....then next to last eval and so on.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="salesforce" source="/informatica/pmrootdir/Splunk_SFDC_Logs/*-eventlogfile-splunk.csv" host="louapplps2024" CASE(xxxxxxxxxxxxxx) earliest=-7d latest=now (EVENT_TYPE="ApexExecution") QUIDDITY IN (R,V,W,H,X,M,L,K,I,E) IS_LONG_RUNNING_REQUEST=1 
| dedup REQUEST_ID 
| eval oraDbTime=IF(!isnull(sdbDbTime),round(oraDbTime/1000000,0),oraDbTime) 
| eval dbCpuTime=IF(!isnull(sdbDbTime),round(dbCpuTime/1000000,0),dbCpuTime) 
| eval sdbDbTime=round(sdbDbTime/1000000,0) 
| eval reqIsNull=IF(isnull(requestId) AND entryPoint="TRIGGERS","YES","NO")
| where reqIsNull="NO" 
| eval permitTime= (runTime-5000) 
| eval permitTimeInSecs= (permitTime/1000) 
| eval runTimeInSecs= (runTime/1000) 
| eval endTime=_time 
| eval startTime=(_time-runTimeInSecs) 
| eval conTime=(_time-permitTimeInSecs)
$org_token$ EVENT_TYPE="LightningPageView" OR EVENT_TYPE="LightningPerformance" APP_NAME="siteforce:communityApp" $userId$ $app$ 
| timechart span=$timespan$ dc(USER_ID) as Views&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 11:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615180#M50471</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2022-09-29T11:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The expression is malformed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615208#M50473</link>
      <description>&lt;P&gt;I have tried it and I am still getting he same error&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 13:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615208#M50473</guid>
      <dc:creator>Druffin1</dc:creator>
      <dc:date>2022-09-29T13:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The expression is malformed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615209#M50474</link>
      <description>&lt;P&gt;How do I check the Org_Token&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 13:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615209#M50474</guid>
      <dc:creator>Druffin1</dc:creator>
      <dc:date>2022-09-29T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The expression is malformed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615210#M50475</link>
      <description>&lt;P&gt;It will be set somewhere in your dashboard - you could try adding it to title of a panel to see what the value is&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 13:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615210#M50475</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-29T13:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The expression is malformed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615224#M50476</link>
      <description>&lt;P&gt;The code runs when I use the search option&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 14:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615224#M50476</guid>
      <dc:creator>Druffin1</dc:creator>
      <dc:date>2022-09-29T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The expression is malformed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615633#M50538</link>
      <description>&lt;P&gt;Yes my issue has been solved&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 11:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615633#M50538</guid>
      <dc:creator>Druffin1</dc:creator>
      <dc:date>2022-10-03T11:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The expression is malformed</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615634#M50539</link>
      <description>&lt;P&gt;Issue has been solved&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 11:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-troubleshoot-this-Error-in-eval-command-The-expression-is/m-p/615634#M50539</guid>
      <dc:creator>Druffin1</dc:creator>
      <dc:date>2022-10-03T11:41:28Z</dc:date>
    </item>
  </channel>
</rss>

