<?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 with eval expression using eventstats command in Splunk Datamodel in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463270#M130596</link>
    <description>&lt;P&gt;As I said &lt;CODE&gt;eventstats&lt;/CODE&gt; is not an &lt;CODE&gt;eval&lt;/CODE&gt; function so you need to find another way to create the needed time fields in the datamodel - Sorry.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 20:07:34 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2019-12-09T20:07:34Z</dc:date>
    <item>
      <title>Error with eval expression using eventstats command in Splunk Datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463265#M130591</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to create below search using splunk DataModel:&lt;BR /&gt;
index="oqa_pub" sourcetype="idesk_db_inc"  |search RESOLVERGROUP="ABC" |eventstats earliest(_time) as ticket_start_time |eventstats latest(_time) as ticket_end_time| where isnotnull(LAST_RESOLVED_DATE) AND (LAST_RESOLVED_DATE &amp;gt;= ticket_start_time AND LAST_RESOLVED_DATE &amp;lt;= ticket_end_time)  | where NOT DETAILED_DECRIPTION   like "%bamAudit%" |where STATUS !=6|dedup INCIDENT_NUMBER|chart count(INCIDENT_NUMBER)&lt;/P&gt;

&lt;P&gt;but when I am trying to put "ticket_start_time" and "ticket_end_time" in eval expression, it gives me an error in pivot &lt;BR /&gt;
"Error in 'eval' command: The expression is malformed. "&lt;/P&gt;

&lt;P&gt;Any help would be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463265#M130591</guid>
      <dc:creator>mogoe2</dc:creator>
      <dc:date>2020-09-30T03:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error with eval expression using eventstats command in Splunk Datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463266#M130592</link>
      <description>&lt;P&gt;Can you add the eval command line here? &lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 15:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463266#M130592</guid>
      <dc:creator>aberkow</dc:creator>
      <dc:date>2019-12-09T15:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error with eval expression using eventstats command in Splunk Datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463267#M130593</link>
      <description>&lt;P&gt;While creating splunk data model, I am using eval expression as &lt;BR /&gt;
Eval ticket_start_time= eventstats earliest(_time)&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463267#M130593</guid>
      <dc:creator>mogoe2</dc:creator>
      <dc:date>2020-09-30T03:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error with eval expression using eventstats command in Splunk Datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463268#M130594</link>
      <description>&lt;P&gt;Hi mogoe2,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;eventstats&lt;/CODE&gt; is not an &lt;CODE&gt;eval&lt;/CODE&gt; function. You can find all &lt;CODE&gt;eval&lt;/CODE&gt; functions here &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Eval#Functions"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Eval#Functions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As for your use case, you might have to provide some samples and more detail what it is that you want to achieve.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 19:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463268#M130594</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-12-09T19:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error with eval expression using eventstats command in Splunk Datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463269#M130595</link>
      <description>&lt;P&gt;Thanks..&lt;BR /&gt;
From this query, I am.looking to find out number of incidents which have been resolved by my team during particular duration.&lt;BR /&gt;
Intent is to create splunk data model and provide it to my team to find themselves incident count.&lt;BR /&gt;
While creating splunk data model, I.am unable to find how do I use ticket_start_time" and "ticket_end_time" in eval expression as it is only option I have in splunk data model creation. As soon as I go to pivot to analyse my data model, I start getting error "Error in 'eval' command: The expression is malformed".&lt;BR /&gt;
Hope I have been able to explain.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463269#M130595</guid>
      <dc:creator>mogoe2</dc:creator>
      <dc:date>2020-09-30T03:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error with eval expression using eventstats command in Splunk Datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463270#M130596</link>
      <description>&lt;P&gt;As I said &lt;CODE&gt;eventstats&lt;/CODE&gt; is not an &lt;CODE&gt;eval&lt;/CODE&gt; function so you need to find another way to create the needed time fields in the datamodel - Sorry.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 20:07:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-eval-expression-using-eventstats-command-in-Splunk/m-p/463270#M130596</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-12-09T20:07:34Z</dc:date>
    </item>
  </channel>
</rss>

