<?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 Filtering NULL values after STATS in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-NULL-values-after-STATS/m-p/500170#M85227</link>
    <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;First of all, than you all for such great community.&lt;/P&gt;

&lt;P&gt;I have a question. I am running a query in which I am using appendcols to append the results of a subsearch to my initial search. I am doing this because I am managing large datasets and I want to avoid using the JOIN command. My query is the following one:&lt;/P&gt;

&lt;P&gt;index=active_directory (source="&lt;EM&gt;ACTIVE_DIRECTORY&lt;/EM&gt;") &lt;BR /&gt;
| dedup NUUMA&lt;BR /&gt;
| eval NUUMA=tostring(upper(NUUMA)) &lt;BR /&gt;
| table NUUMA DISPLAYNAME UserAcControl&lt;/P&gt;

&lt;P&gt;| appendcols [search index=active_directory source="&lt;EM&gt;APP1&lt;/EM&gt;" | dedup USERNAME | fields USERNAME UserAcControl |eval NUUMA=tostring(upper(USERNAME)) | fillnull value=NULL UserAcControl]&lt;/P&gt;

&lt;P&gt;| stats values(UserAcControl) count by NUUMA&lt;/P&gt;

&lt;P&gt;I am getting the results that I need, but after the STATS command, I need to select the UserAcControl attribute with NULL values. I have tried doing something like this, but it is not working:&lt;/P&gt;

&lt;P&gt;…| stats values(UserAcControl) count by NUUMA | where isnull(UserAcControl)&lt;/P&gt;

&lt;P&gt;I am attaching a screenshot showing the the values that I want to capture.&lt;/P&gt;

&lt;P&gt;Any thoughts??&lt;/P&gt;

&lt;P&gt;Thank you!!&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/291803-example-splunk.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:27:37 GMT</pubDate>
    <dc:creator>gmartinv</dc:creator>
    <dc:date>2020-09-30T05:27:37Z</dc:date>
    <item>
      <title>Filtering NULL values after STATS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-NULL-values-after-STATS/m-p/500170#M85227</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;First of all, than you all for such great community.&lt;/P&gt;

&lt;P&gt;I have a question. I am running a query in which I am using appendcols to append the results of a subsearch to my initial search. I am doing this because I am managing large datasets and I want to avoid using the JOIN command. My query is the following one:&lt;/P&gt;

&lt;P&gt;index=active_directory (source="&lt;EM&gt;ACTIVE_DIRECTORY&lt;/EM&gt;") &lt;BR /&gt;
| dedup NUUMA&lt;BR /&gt;
| eval NUUMA=tostring(upper(NUUMA)) &lt;BR /&gt;
| table NUUMA DISPLAYNAME UserAcControl&lt;/P&gt;

&lt;P&gt;| appendcols [search index=active_directory source="&lt;EM&gt;APP1&lt;/EM&gt;" | dedup USERNAME | fields USERNAME UserAcControl |eval NUUMA=tostring(upper(USERNAME)) | fillnull value=NULL UserAcControl]&lt;/P&gt;

&lt;P&gt;| stats values(UserAcControl) count by NUUMA&lt;/P&gt;

&lt;P&gt;I am getting the results that I need, but after the STATS command, I need to select the UserAcControl attribute with NULL values. I have tried doing something like this, but it is not working:&lt;/P&gt;

&lt;P&gt;…| stats values(UserAcControl) count by NUUMA | where isnull(UserAcControl)&lt;/P&gt;

&lt;P&gt;I am attaching a screenshot showing the the values that I want to capture.&lt;/P&gt;

&lt;P&gt;Any thoughts??&lt;/P&gt;

&lt;P&gt;Thank you!!&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/291803-example-splunk.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-NULL-values-after-STATS/m-p/500170#M85227</guid>
      <dc:creator>gmartinv</dc:creator>
      <dc:date>2020-09-30T05:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering NULL values after STATS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-NULL-values-after-STATS/m-p/500171#M85228</link>
      <description>&lt;P&gt;&lt;CODE&gt;NULL&lt;/CODE&gt; is nothing, not "NULL" string.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| stats values(UserAcControl) count by NUUMA | where isnull(UserAcControl)&lt;/CODE&gt; &lt;BR /&gt;
 → &lt;CODE&gt;| stats values(UserAcControl) as UserAcControl count by NUUMA | where UserAcControl="NULL"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 22:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-NULL-values-after-STATS/m-p/500171#M85228</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-17T22:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering NULL values after STATS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-NULL-values-after-STATS/m-p/500172#M85229</link>
      <description>&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 23:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-NULL-values-after-STATS/m-p/500172#M85229</guid>
      <dc:creator>gmartinv</dc:creator>
      <dc:date>2020-05-17T23:15:30Z</dc:date>
    </item>
  </channel>
</rss>

