<?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: how to remove null values from result in Installation</title>
    <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281017#M4248</link>
    <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;         index=_internal source=*license_usage.log type=usage |eval gb=round((b/1024/1024/1024), 2) | lookup index_name indexname AS idx OUTPUT baname  | timechart usenull=f span=1d sum(gb) as total_usage by baname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above will give you the usage in GB spread across time window. If you still want this to be sorted on total_usage, then try below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;             index=_internal source=*license_usage.log type=usage |eval gb=round((b/1024/1024/1024), 2) | lookup index_name indexname AS idx OUTPUT baname  | timechart usenull=f span=1d sum(gb) as total_usage by baname|untable _time baname total_usage|sort - total_usage
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Feb 2016 03:42:51 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2016-02-15T03:42:51Z</dc:date>
    <item>
      <title>How to remove null values from search results?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281010#M4241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My below given query for License usage logs showing me data but there is "NULL" column is also coming in that with some data so how to get rid of this NULL column? When I am clicking on NULL column to see the events it contains nothing. Any suggestions would be appreciated.&lt;/P&gt;

&lt;P&gt;Query -&lt;BR /&gt;
index=_internal source=*license_usage.log type=usage | lookup index_name indexname AS idx OUTPUT baname | timechart span=1d sum(b) as total_usage by baname&lt;/P&gt;

&lt;P&gt;I have used already below given parameters but still null values are showing-&lt;/P&gt;

&lt;P&gt;| stats values(&lt;EM&gt;) as * by Id&lt;BR /&gt;
| streamstats count as Id | stats values(&lt;/EM&gt;) as * by Id&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281010#M4241</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2020-09-29T08:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove null values from result</title>
      <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281011#M4242</link>
      <description>&lt;P&gt;Use the fillnull command:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/fillnull"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/fillnull&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2016 14:11:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281011#M4242</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-14T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove null values from result</title>
      <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281012#M4243</link>
      <description>&lt;P&gt;A NULL series is created for events that do not contain the split-by field. In your case, it might be some events where baname is not present.&lt;/P&gt;

&lt;P&gt;You can remove NULL from timechart by adding the option &lt;CODE&gt;usenull=f&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type=usage | lookup index_name indexname AS idx OUTPUT baname  | timechart usenull=f span=1d sum(b) as total_usage by baname
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Feb 2016 14:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281012#M4243</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2016-02-14T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove null values from result</title>
      <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281013#M4244</link>
      <description>&lt;P&gt;hi sunnyparmar,&lt;/P&gt;

&lt;P&gt;try like this, use the command &lt;CODE&gt;fields - NULL&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type=usage | lookup index_name indexname AS idx OUTPUT baname | timechart span=1d sum(b) as total_usage by baname |fields - NULL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Feb 2016 16:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281013#M4244</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2016-02-14T16:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove null values from result</title>
      <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281014#M4245</link>
      <description>&lt;P&gt;From the official documentation at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/chart"&gt;http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/chart&lt;/A&gt;&lt;BR /&gt;
"the search uses the usenull=f argument to exclude fields that don't have a value. "&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2016 21:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281014#M4245</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-02-14T21:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove null values from result</title>
      <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281015#M4246</link>
      <description>&lt;P&gt;Thanks for the help. it works but i have one more query related to the same. Currently it is showing me values in bytes for daily basis. If I have to convert it into GB's so how could I do that with the same query?&lt;/P&gt;

&lt;P&gt;I am using parameter something like this but didn't give me the exact result-&lt;/P&gt;

&lt;P&gt;| eval total_usage = round((total_usage/1024/1024/1024), 2) |  sort -total_usage&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281015#M4246</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2020-09-29T08:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove null values from result</title>
      <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281016#M4247</link>
      <description>&lt;P&gt;Thanks for the answer. it works but i have one more query related to the same. Currently it is showing me values in bytes for daily basis. If I have to convert it into GB's so how could I do that with the same query?&lt;/P&gt;

&lt;P&gt;I am using parameter something like this but didn't give me the exact result-&lt;/P&gt;

&lt;P&gt;| eval total_usage = round((total_usage/1024/1024/1024), 2) |  sort -total_usage&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:48:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281016#M4247</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2020-09-29T08:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove null values from result</title>
      <link>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281017#M4248</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;         index=_internal source=*license_usage.log type=usage |eval gb=round((b/1024/1024/1024), 2) | lookup index_name indexname AS idx OUTPUT baname  | timechart usenull=f span=1d sum(gb) as total_usage by baname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above will give you the usage in GB spread across time window. If you still want this to be sorted on total_usage, then try below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;             index=_internal source=*license_usage.log type=usage |eval gb=round((b/1024/1024/1024), 2) | lookup index_name indexname AS idx OUTPUT baname  | timechart usenull=f span=1d sum(gb) as total_usage by baname|untable _time baname total_usage|sort - total_usage
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Feb 2016 03:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-remove-null-values-from-search-results/m-p/281017#M4248</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2016-02-15T03:42:51Z</dc:date>
    </item>
  </channel>
</rss>

