<?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: nested eval with stats count not working while using Data Model in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456791#M129123</link>
    <description>&lt;P&gt;I get it working by renaming the fields from "wells.resp_code" to "resp_code". I don't know why dataset name with fields not working under eval expressions.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:11:26 GMT</pubDate>
    <dc:creator>nagar57</dc:creator>
    <dc:date>2020-09-30T01:11:26Z</dc:date>
    <item>
      <title>nested eval with stats count not working while using Data Model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456789#M129121</link>
      <description>&lt;P&gt;Below is my query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|datamodel testing search
|search wells.API="enroll"
|stats count(eval(wells.resp_code="S" OR (wells.resp_code="F" AND wells.error_code="NGENR000"))) AS Success
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;wells is the nodename and resp_code and API are extracted fields in Data Model. &lt;BR /&gt;
When I run this query with index as a normal search query it is working, but with Data model it is not.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 09:09:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456789#M129121</guid>
      <dc:creator>nagar57</dc:creator>
      <dc:date>2019-07-05T09:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: nested eval with stats count not working while using Data Model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456790#M129122</link>
      <description>&lt;P&gt;Can someone help?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2019 07:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456790#M129122</guid>
      <dc:creator>nagar57</dc:creator>
      <dc:date>2019-07-06T07:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: nested eval with stats count not working while using Data Model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456791#M129123</link>
      <description>&lt;P&gt;I get it working by renaming the fields from "wells.resp_code" to "resp_code". I don't know why dataset name with fields not working under eval expressions.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:11:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456791#M129123</guid>
      <dc:creator>nagar57</dc:creator>
      <dc:date>2020-09-30T01:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: nested eval with stats count not working while using Data Model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456792#M129124</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;look in the job inspector to see how the search is expanded&lt;BR /&gt;
try to disable search optimization&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Aboutoptimization"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Aboutoptimization&lt;/A&gt; &lt;BR /&gt;
also make sure all the fields you use are defined in the datamodel or they would be filtered out&lt;BR /&gt;
+ try renaming your fields without nodename that is easier to work with with eval&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2019 09:41:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456792#M129124</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2019-07-06T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: nested eval with stats count not working while using Data Model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456793#M129125</link>
      <description>&lt;P&gt;It's because you removed the ".". If you wanted not rename the field you would need to add quotes around it, e.g. "wells.resp_code"="...&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 18:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/nested-eval-with-stats-count-not-working-while-using-Data-Model/m-p/456793#M129125</guid>
      <dc:creator>wgawhh5hbnht</dc:creator>
      <dc:date>2020-04-23T18:39:02Z</dc:date>
    </item>
  </channel>
</rss>

