<?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 Hiding null value results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671062#M229979</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to find a command that will allow me to create a table and only display values. when using the user agent field in my table, there are some values that are null. I only want values to display.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 18:37:21 GMT</pubDate>
    <dc:creator>Bo3432</dc:creator>
    <dc:date>2023-12-06T18:37:21Z</dc:date>
    <item>
      <title>Hiding null value results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671062#M229979</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to find a command that will allow me to create a table and only display values. when using the user agent field in my table, there are some values that are null. I only want values to display.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 18:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671062#M229979</guid>
      <dc:creator>Bo3432</dc:creator>
      <dc:date>2023-12-06T18:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding null value results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671066#M229981</link>
      <description>&lt;P&gt;Use the where command to filter out results with empty fields.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull(user_agent) AND user_agent!=""&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 19:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671066#M229981</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-12-06T19:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding null value results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671072#M229982</link>
      <description>&lt;P&gt;Can this be used with a table?&amp;nbsp; This is my command but it is giving no results.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=azure sourcetype="azure:monitor:aad" action=*&lt;BR /&gt;| where isnotnull(properties.userAgent) AND properties.userAgent!=""&lt;BR /&gt;|table _time user properties.deviceDetail.displayName properties.userAgent action&lt;BR /&gt;|sort -_time&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 19:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671072#M229982</guid>
      <dc:creator>Bo3432</dc:creator>
      <dc:date>2023-12-06T19:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding null value results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671076#M229985</link>
      <description>&lt;P&gt;Yes, it can be used with a table and all other visualizations.&lt;/P&gt;&lt;P&gt;When you say "it is giving no results" does that mean the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command is not filtering as expected or you are getting nothing at all from the query?&amp;nbsp; If the former, then it's possible the userAgent field is all spaces so the filter should be modified to handle that.&amp;nbsp; For the latter, try renaming the fields to eliminate dots.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=azure sourcetype="azure:monitor:aad" action=*
| rename properties.* as *
| where isnotnull(userAgent) AND userAgent!=""
|table _time user deviceDetail.displayName userAgent action
|sort -_time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 20:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671076#M229985</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-12-06T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding null value results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671086#M229992</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248673"&gt;@Bo3432&lt;/a&gt;&amp;nbsp;The where clause takes an eval statement and in eval statements you need to wrap 'odd' field names with single quotes. In your case&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;properties.userAgent&lt;/SPAN&gt;&lt;/STRONG&gt; contains a full-stop, so you need to use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull('properties.userAgent') AND 'properties.userAgent'!=""&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 21:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671086#M229992</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-12-06T21:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding null value results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671098#M229995</link>
      <description>&lt;P&gt;That did it. Much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 23:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hiding-null-value-results/m-p/671098#M229995</guid>
      <dc:creator>Bo3432</dc:creator>
      <dc:date>2023-12-06T23:42:47Z</dc:date>
    </item>
  </channel>
</rss>

