<?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: data models deliver wrong values in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245197#M7970</link>
    <description>&lt;P&gt;excuse the delayed answer. I will test this and the results item sometime. &lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2016 07:21:05 GMT</pubDate>
    <dc:creator>denis_roehr</dc:creator>
    <dc:date>2016-03-14T07:21:05Z</dc:date>
    <item>
      <title>data models deliver wrong values</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245192#M7965</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I deal with data models for a couple of days and i have  trouble with different values.&lt;BR /&gt;
My query delivers the value "3252" for all active users. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=msad admonEventType!=Schema admonEventType!=Start sourcetype=ActiveDirectory  | dedup objectGUID |  regex objectClass="(?i)\|user$"  |  search (userAccountControl="512" OR userAccountControl="66048" OR userAccountControl="66080") | search admonEventType!="Deleted" | stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The data model with pivot returns "3312" active Users?! &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| pivot ROOT AD_Object_Management splitrow objectGUID splitrow userAccountControl splitrow admonEventType splitrow objectClass  | dedup objectGUID | regex objectClass="(?i)\|user$" | search (userAccountControl="512" OR userAccountControl="66048" OR userAccountControl="66080") | stats count(objectGUID)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;AD_Object_Management contains only this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=msad admonEventType!=Schema admonEventType!=Start sourcetype=ActiveDirectory  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;what do I make wrong?&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245192#M7965</guid>
      <dc:creator>denis_roehr</dc:creator>
      <dc:date>2020-09-29T09:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: data models deliver wrong values</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245193#M7966</link>
      <description>&lt;P&gt;Your non-pivot query has an extra &lt;CODE&gt;search admonEventType!="Deleted"&lt;/CODE&gt;, that might drop those 60 users?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 22:51:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245193#M7966</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-03-10T22:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: data models deliver wrong values</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245194#M7967</link>
      <description>&lt;P&gt;Thank you for your remark. &lt;BR /&gt;
this attribute the difference remains like whether with or without. Gives unusual features still question it at pivot? &lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 06:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245194#M7967</guid>
      <dc:creator>denis_roehr</dc:creator>
      <dc:date>2016-03-11T06:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: data models deliver wrong values</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245195#M7968</link>
      <description>&lt;P&gt;Thanks but...&lt;/P&gt;

&lt;P&gt;The search    &lt;CODE&gt;search admonEventType!="Deleted"&lt;/CODE&gt; has no effect on the return value .&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 09:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245195#M7968</guid>
      <dc:creator>denis_roehr</dc:creator>
      <dc:date>2016-03-11T09:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: data models deliver wrong values</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245196#M7969</link>
      <description>&lt;P&gt;There's also a difference of &lt;CODE&gt;stats count&lt;/CODE&gt; vs &lt;CODE&gt;stats count(objectGUID)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 23:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245196#M7969</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-03-11T23:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: data models deliver wrong values</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245197#M7970</link>
      <description>&lt;P&gt;excuse the delayed answer. I will test this and the results item sometime. &lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 07:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245197#M7970</guid>
      <dc:creator>denis_roehr</dc:creator>
      <dc:date>2016-03-14T07:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: data models deliver wrong values</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245198#M7971</link>
      <description>&lt;P&gt;I have found a solution. The data models have a problem with the deduplication of the GUIDs. I have tried out different things and have reached the following knowledge. Root Events do not seem to be suitable for such queries.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| pivot model splitrow objectGUID | dedup objectGUID    or    | pivot model splitrow objectGUID | stats latest(*) AS * by objectGUID    or    | pivot model splitrow objectGUID | stats first(*) AS * by objectGUID 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Different admonEventTypes in active directory (Sync, Update, Deleted, Start, Schema). The deduplication of the objectGUID does not process these dependences correctly, because deleted objects are nevertheless displayed in the result. &lt;BR /&gt;
I have added a Root Search to data model and now we have the correctly results.&lt;/P&gt;

&lt;P&gt;here my is my root search code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=msad sourcetype=ActiveDirectory | regex objectClass="(?i)\|user$" | stats latest(*) AS * by objectGUID | search admonEventType!=Deleted 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now only the last admonEventTypes per objectGUID is in the result. &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 07:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/data-models-deliver-wrong-values/m-p/245198#M7971</guid>
      <dc:creator>denis_roehr</dc:creator>
      <dc:date>2016-03-15T07:22:07Z</dc:date>
    </item>
  </channel>
</rss>

